Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.47 KB

AuthApi.md

File metadata and controls

57 lines (39 loc) · 1.47 KB

Swagger\Client\AuthApi

All URIs are relative to https://dev.suppliers.knawat.io/api/

Method HTTP request Description
tokenPost POST /token Get token for supplier

tokenPost

\Swagger\Client\Model\Auth tokenPost($body)

Get token for supplier

Get token from supplier key and secret.

Example

<?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;
}
?>

Parameters

Name Type Description Notes
body object

Return type

\Swagger\Client\Model\Auth

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]