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4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-WEB3-26
- dev-update-interface
- dev-update-reimbursement-model
- dev-develop
- dev-rf-list-requests
- dev-MOBILE-214
- dev-WEB-204
- dev-WEB-203
- dev-WEB-187
- dev-VW-439
- dev-issue-180
- dev-issue-173
- dev-issue-147
- dev-issue-143
- dev-issue-142
This package is not auto-updated.
Last update: 2025-04-04 20:44:21 UTC
README
https://vapi.vademecumonline.com.tr/doc/
https://vapi.vademecumonline.com.tr/doc/tr
Using the Library
When the dependency is set. using composer update or install will download the required libraries to your system. You can start using it by using something similar:
#!php
<?php
require_once "vendor/autoload.php";
$api = new \vdmcworld\Api("username", "password");
$api->setSandbox();
$api->auth();
var_dump($api->getToken());
To make basic requests and get data you can use the following:
#!php
<?php
// Create the $api object as above...
$request = new \vdmcworld\api\request\lists\ProductListRequest();
$response = $request->fetchData($api);
foreach ($response as $p) {
var_dump($p->getName());
}
For an advanced usage to get the raw result with Http Response you can use the following code:
#!php
<?php
// Create the $api object as above...
$request = new \vdmcworld\api\request\lists\ProductListRequest();
$response = $api->send($request);
var_dump($response->getResponse());