Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. <?php
  2. // Classifiers - get Vehicle types [Key => Title]
  3. // Demo:
  4. // https://erp-demo.mogo.mk/api/v3/pazar3/classifiers/vehicle/types?token=cQy5lGyBj73uv252
  5.  
  6. $request = new HttpRequest();
  7. $request->setUrl('https://public-api.mogo.mk:4434/api/v3/pazar3/classifiers/vehicle/types');
  8. $request->setMethod(HTTP_METH_GET);
  9.  
  10. $request->setQueryData(array(
  11. 'token' => 'cQy5lGyBj73uv252'
  12. ));
  13.  
  14. try {
  15. $response = $request->send();
  16.  
  17. echo $response->getBody();
  18. } catch (HttpException $ex) {
  19. echo $ex;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement