All URIs are relative to https://dev.suppliers.knawat.io/api/
Method | HTTP request | Description |
---|---|---|
tokenPost | POST /token | Get token for supplier |
\Swagger\Client\Model\Auth tokenPost($body)
Get token for supplier
Get token from supplier key and secret.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\AuthApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$body = new \stdClass; // object |
try {
$result = $apiInstance->tokenPost($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AuthApi->tokenPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | object |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]