diff --git a/index.php b/index.php index 4b940961151ca71c3d0f1ed44189d071518c57b5..ea2e3dfd1430cf4f2c1e8d0b64a07532b27d12d5 100755 --- a/index.php +++ b/index.php @@ -1,172 +1,172 @@ - 'https://api.occupie.com', - 'client' => 'trustedclient', - 'clientSecret' => '', - 'scope' => 'hubapi')); -?> - - - - Occupie API sample - - - - -
-
-
- isUserAuthenticated()) { ?> -

Log in

-

Logging in retrieves access token for the provided credentials. This token is then used for all calls to api, so credentials don't have to be kept.

-
-
- - -
-
- - -
- -
- - - -

Create Tracking Device

-
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
- -
- -

Tracking Devices Entries

- - - - - - - - - - - trackingEntries) foreach($oauth2->trackingEntries as $entry) { ?> - - - - - - - - -
IdNameTypeTime
{{entry.trackingentriesid}}{{entry.trackingentriesname}}{{entry.trackingtype}}{{entry.creationdate}}
- -

Add Tracking Entry

-
-
- - -
-
- - -
-
- - -
- -
- -
-

Tracking Devices

- trackingDevices) { ?> - - - - - - - - - - - trackingDevices as $key => $value) { ?> - - - - - - - - -
Idname
trackingdeviceid; ?>trackingdevicename; ?> - - show entries - - - - add entry - -
-

No data!

-
- - -
-
-
- - + 'https://api.occupie.com', + 'client' => 'trustedclient', + 'clientSecret' => 'you-client-secret-key-goes-here', + 'scope' => 'hubapi')); +?> + + + + Occupie API sample + + + + +
+
+
+ isUserAuthenticated()) { ?> +

Log in

+

Logging in retrieves access token for the provided credentials. This token is then used for all calls to api, so credentials don't have to be kept.

+
+
+ + +
+
+ + +
+ +
+ + + +

Create Tracking Device

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+ +

Tracking Devices Entries

+ + + + + + + + + + + trackingEntries) foreach($oauth2->trackingEntries as $entry) { ?> + + + + + + + + +
IdNameTypeTime
{{entry.trackingentriesid}}{{entry.trackingentriesname}}{{entry.trackingtype}}{{entry.creationdate}}
+ +

Add Tracking Entry

+
+
+ + +
+
+ + +
+
+ + +
+ +
+ +
+

Tracking Devices

+ trackingDevices) { ?> + + + + + + + + + + + trackingDevices as $key => $value) { ?> + + + + + + + + +
Idname
trackingdeviceid; ?>trackingdevicename; ?> + + show entries + + + + add entry + +
+

No data!

+
+ + +
+
+
+ +