Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Classifiers - get Vehicle types [Key => Title]
- // Demo:
- // https://erp-demo.mogo.mk/api/v3/pazar3/classifiers/vehicle/types?token=cQy5lGyBj73uv252
- $request = new HttpRequest();
- $request->setUrl('https://public-api.mogo.mk:4434/api/v3/pazar3/classifiers/vehicle/types');
- $request->setMethod(HTTP_METH_GET);
- $request->setQueryData(array(
- 'token' => 'cQy5lGyBj73uv252'
- ));
- try {
- $response = $request->send();
- echo $response->getBody();
- } catch (HttpException $ex) {
- echo $ex;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement