1 | <?php |
||
15 | class JawboneUP extends AbstractService |
||
16 | { |
||
17 | /** |
||
18 | * Defined scopes |
||
19 | * |
||
20 | * |
||
21 | * @link https://jawbone.com/up/developer/authentication |
||
22 | */ |
||
23 | // general information scopes |
||
24 | const SCOPE_BASIC_READ = 'basic_read'; |
||
25 | const SCOPE_EXTENDED_READ = 'extended_read'; |
||
26 | const SCOPE_LOCATION_READ = 'location_read'; |
||
27 | const SCOPE_FRIENDS_READ = 'friends_read'; |
||
28 | // mood scopes |
||
29 | const SCOPE_MOOD_READ = 'mood_read'; |
||
30 | const SCOPE_MOOD_WRITE = 'mood_write'; |
||
31 | // move scopes |
||
32 | const SCOPE_MOVE_READ = 'move_read'; |
||
33 | const SCOPE_MOVE_WRITE = 'move_write'; |
||
34 | // sleep scopes |
||
35 | const SCOPE_SLEEP_READ = 'sleep_read'; |
||
36 | const SCOPE_SLEEP_WRITE = 'sleep_write'; |
||
37 | // meal scopes |
||
38 | const SCOPE_MEAL_READ = 'meal_read'; |
||
39 | const SCOPE_MEAL_WRITE = 'meal_write'; |
||
40 | // weight scopes |
||
41 | const SCOPE_WEIGHT_READ = 'weight_read'; |
||
42 | const SCOPE_WEIGHT_WRITE = 'weight_write'; |
||
43 | // generic event scopes |
||
44 | const SCOPE_GENERIC_EVENT_READ = 'generic_event_read'; |
||
45 | const SCOPE_GENERIC_EVENT_WRITE = 'generic_event_write'; |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | protected function init() |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function getAuthorizationUri(array $additionalParameters = array()) |
||
81 | |||
82 | /** |
||
83 | * {@inheritdoc} |
||
84 | */ |
||
85 | public function getAuthorizationEndpoint() |
||
89 | |||
90 | /** |
||
91 | * {@inheritdoc} |
||
92 | */ |
||
93 | public function getAccessTokenEndpoint() |
||
97 | |||
98 | /** |
||
99 | * {@inheritdoc} |
||
100 | */ |
||
101 | protected function getAuthorizationMethod() |
||
105 | |||
106 | /** |
||
107 | * {@inheritdoc} |
||
108 | */ |
||
109 | protected function parseAccessTokenResponse($responseBody) |
||
135 | } |
||
136 |