All URIs are relative to https://partnerexchange.azurewebsites.net
Method | HTTP request | Description |
---|---|---|
tokenPost | POST /token |
object tokenPost($grant_type, $username, $password)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new d2r_connectors\conficio\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()
);
$grant_type = 'password'; // string |
$username = 'username_example'; // string |
$password = 'password_example'; // string |
try {
$result = $apiInstance->tokenPost($grant_type, $username, $password);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AuthApi->tokenPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
grant_type | string | [default to 'password'] | |
username | string | [optional] | |
password | string | [optional] |
object
No authorization required
- Content-Type: application/x-www-form-urlencoded
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]