@@ 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 | { |
@@ 204-218 (lines=15) @@ | ||
201 | return $response; |
|
202 | } |
|
203 | ||
204 | public static function get($params) |
|
205 | { |
|
206 | $ablocations = Route4Me::makeRequst(array( |
|
207 | 'url' => Endpoint::ADDRESS_BOOK_V4, |
|
208 | 'method' => 'ADD', |
|
209 | 'query' => array( |
|
210 | 'first_name' => isset($params->first_name) ? $params->first_name : null, |
|
211 | 'address_1' => isset($params->address_1) ? $params->address_1 : null, |
|
212 | 'cached_lat' => isset($params->cached_lat) ? $params->cached_lat : null, |
|
213 | 'cached_lng' => isset($params->cached_lng) ? $params->cached_lng : null, |
|
214 | ) |
|
215 | )); |
|
216 | ||
217 | return $ablocations; |
|
218 | } |
|
219 | ||
220 | public static function validateScheduleMode($scheduleMode) |
|
221 | { |