@@ 204-224 (lines=21) @@ | ||
201 | return $result; |
|
202 | } |
|
203 | ||
204 | public function AddAddressNote($params) |
|
205 | { |
|
206 | $result = Route4Me::makeRequst(array( |
|
207 | 'url' => Endpoint::ROUTE_NOTES_ADD, |
|
208 | 'method' => 'POST', |
|
209 | 'query' => array( |
|
210 | 'route_id' => isset($params['route_id']) ? $params['route_id'] : null, |
|
211 | 'address_id' => isset($params['address_id']) ? $params['address_id'] : null, |
|
212 | 'dev_lat' => isset($params['dev_lat']) ? $params['dev_lat'] : null, |
|
213 | 'dev_lng' => isset($params['dev_lng']) ? $params['dev_lng'] : null, |
|
214 | 'device_type' => isset($params['device_type']) ? $params['device_type'] : null |
|
215 | ), |
|
216 | 'body' => array( |
|
217 | 'strNoteContents' => isset($params['strNoteContents']) ? $params['strNoteContents'] : null, |
|
218 | 'strUpdateType' => isset($params['strUpdateType']) ? $params['strUpdateType'] : null |
|
219 | ), |
|
220 | 'HTTPHEADER' => 'Content-Type: multipart/form-data' |
|
221 | )); |
|
222 | ||
223 | return $result; |
|
224 | } |
|
225 | ||
226 | public function AddNoteFile($params) |
|
227 | { |
|
@@ 226-246 (lines=21) @@ | ||
223 | return $result; |
|
224 | } |
|
225 | ||
226 | public function AddNoteFile($params) |
|
227 | { |
|
228 | $result = Route4Me::fileUploadRequest(array( |
|
229 | 'url' => Endpoint::ROUTE_NOTES_ADD, |
|
230 | 'method' => 'POST', |
|
231 | 'query' => array( |
|
232 | 'route_id' => isset($params['route_id']) ? $params['route_id'] : null, |
|
233 | 'address_id' => isset($params['address_id']) ? $params['address_id'] : null, |
|
234 | 'dev_lat' => isset($params['dev_lat']) ? $params['dev_lat'] : null, |
|
235 | 'dev_lng' => isset($params['dev_lng']) ? $params['dev_lng'] : null, |
|
236 | 'device_type' => isset($params['device_type']) ? $params['device_type'] : null, |
|
237 | 'strUpdateType' => isset($params['strUpdateType']) ? $params['strUpdateType'] : null |
|
238 | ), |
|
239 | 'body' => array( |
|
240 | 'strFilename' => isset($params['strFilename']) ? $params['strFilename'] : null |
|
241 | ), |
|
242 | 'HTTPHEADER' => 'Content-Type: multipart/form-data' |
|
243 | )); |
|
244 | ||
245 | return $result; |
|
246 | } |
|
247 | ||
248 | public function createCustomNoteType($params) |
|
249 | { |