| @@ 276-287 (lines=12) @@ | ||
| 273 | return $result; |
|
| 274 | } |
|
| 275 | ||
| 276 | public function removeCustomNoteType($params) |
|
| 277 | { |
|
| 278 | $result = Route4Me::makeRequst(array( |
|
| 279 | 'url' => Endpoint::NOTE_CUSTOM_TYPES_V4, |
|
| 280 | 'method' => 'DELETE', |
|
| 281 | 'body' => array( |
|
| 282 | 'id' => isset($params['id']) ? $params['id'] : null |
|
| 283 | ) |
|
| 284 | )); |
|
| 285 | ||
| 286 | return $result; |
|
| 287 | } |
|
| 288 | ||
| 289 | public function getAllCustomNoteTypes() |
|
| 290 | { |
|
| @@ 89-100 (lines=12) @@ | ||
| 86 | return $response; |
|
| 87 | } |
|
| 88 | ||
| 89 | public static function getUser($params) |
|
| 90 | { |
|
| 91 | $response = Route4Me::makeRequst(array( |
|
| 92 | 'url' => Endpoint::USER_V4, |
|
| 93 | 'method' => 'GET', |
|
| 94 | 'query' => array( |
|
| 95 | 'member_id' => isset($params['member_id']) ? $params['member_id'] : null |
|
| 96 | ) |
|
| 97 | )); |
|
| 98 | ||
| 99 | return $response; |
|
| 100 | } |
|
| 101 | ||
| 102 | public static function getUserLocations($param) |
|
| 103 | { |
|
| @@ 477-489 (lines=13) @@ | ||
| 474 | return $route; |
|
| 475 | } |
|
| 476 | ||
| 477 | public function GetAssetTracking(array $params) |
|
| 478 | { |
|
| 479 | $route = Route4Me::makeRequst(array( |
|
| 480 | 'url' => Endpoint::STATUS_V4, |
|
| 481 | 'method' => 'GET', |
|
| 482 | 'query' => array( |
|
| 483 | 'api_key' => Route4Me::getApiKey(), |
|
| 484 | 'tracking' => isset($params['tracking']) ? $params['tracking'] : null |
|
| 485 | ) |
|
| 486 | )); |
|
| 487 | ||
| 488 | return $route; |
|
| 489 | } |
|
| 490 | } |
|
| 491 | ||