| @@ 62-76 (lines=15) @@ | ||
| 59 | return $activity; |
|
| 60 | } |
|
| 61 | ||
| 62 | public static function searcActivities($params) |
|
| 63 | { |
|
| 64 | $activity = Route4Me::makeRequst(array( |
|
| 65 | 'url' => Endpoint::GET_ACTIVITIES, |
|
| 66 | 'method' => 'GET', |
|
| 67 | 'query' => array( |
|
| 68 | 'route_id' => isset($params->route_id) ? $params->route_id : null, |
|
| 69 | 'limit' => isset($params->limit) ? $params->limit : null, |
|
| 70 | 'offset' => isset($params->offset) ? $params->offset : null, |
|
| 71 | 'activity_type' => isset($params->activity_type) ? $params->activity_type : null, |
|
| 72 | ) |
|
| 73 | )); |
|
| 74 | ||
| 75 | return $activity; |
|
| 76 | } |
|
| 77 | ||
| 78 | public static function sendUserMessage($postParameters) |
|
| 79 | { |
|
| @@ 210-224 (lines=15) @@ | ||
| 207 | return $response; |
|
| 208 | } |
|
| 209 | ||
| 210 | public static function get($params) |
|
| 211 | { |
|
| 212 | $ablocations = Route4Me::makeRequst(array( |
|
| 213 | 'url' => Endpoint::ADDRESS_BOOK_V4, |
|
| 214 | 'method' => 'ADD', |
|
| 215 | 'query' => array( |
|
| 216 | 'first_name' => isset($params->first_name) ? $params->first_name : null, |
|
| 217 | 'address_1' => isset($params->address_1) ? $params->address_1 : null, |
|
| 218 | 'cached_lat' => isset($params->cached_lat) ? $params->cached_lat : null, |
|
| 219 | 'cached_lng' => isset($params->cached_lng) ? $params->cached_lng : null, |
|
| 220 | ) |
|
| 221 | )); |
|
| 222 | ||
| 223 | return $ablocations; |
|
| 224 | } |
|
| 225 | ||
| 226 | public static function validateScheduleMode($scheduleMode) |
|
| 227 | { |
|