@@ 271-285 (lines=15) @@ | ||
268 | return $response; |
|
269 | } |
|
270 | ||
271 | public static function memberAuthentication($body) |
|
272 | { |
|
273 | $response = Route4Me::makeRequst(array( |
|
274 | 'url' => Endpoint::AUTHENTICATE, |
|
275 | 'method' => 'POST', |
|
276 | 'body' => array( |
|
277 | 'strEmail' => isset($body->strEmail) ? $body->strEmail : null, |
|
278 | 'strPassword' => isset($body->strPassword) ? $body->strPassword : null, |
|
279 | 'format' => isset($body->format) ? $body->format : null |
|
280 | ), |
|
281 | 'HTTPHEADER' => 'Content-Type: multipart/form-data' |
|
282 | )); |
|
283 | ||
284 | return $response; |
|
285 | } |
|
286 | ||
287 | public static function webinarRegistration($body) |
|
288 | { |
@@ 55-68 (lines=14) @@ | ||
52 | return $territory; |
|
53 | } |
|
54 | ||
55 | public static function getTerritories($params) |
|
56 | { |
|
57 | $response = Route4Me::makeRequst(array( |
|
58 | 'url' => Endpoint::TERRITORY_V4, |
|
59 | 'method' => 'GET', |
|
60 | 'query' => array( |
|
61 | 'offset' => isset($params->offset) ? $params->offset : null, |
|
62 | 'limit' => isset($params->limit) ? $params->limit : null, |
|
63 | 'addresses' => isset($params['addresses']) ? $params['addresses'] : null, |
|
64 | ) |
|
65 | )); |
|
66 | ||
67 | return $response; |
|
68 | } |
|
69 | ||
70 | public static function addTerritory($params) |
|
71 | { |