Skip to content

Latest commit

 

History

History
67 lines (45 loc) · 1.93 KB

TokenconsumerApi.md

File metadata and controls

67 lines (45 loc) · 1.93 KB

Tripletex\TokenconsumerApi

All URIs are relative to https://tripletex.no/v2

Method HTTP request Description
getByToken GET /token/consumer/byToken Get consumer token by token string.

getByToken

\Tripletex\Model\ResponseWrapperConsumerToken getByToken($token, $fields)

Get consumer token by token string.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: tokenAuthScheme
$config = Tripletex\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');


$apiInstance = new Tripletex\Api\TokenconsumerApi(
    // 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(),
    $config
);
$token = "token_example"; // string | Element ID
$fields = "fields_example"; // string | Fields filter pattern

try {
    $result = $apiInstance->getByToken($token, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TokenconsumerApi->getByToken: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
token string Element ID
fields string Fields filter pattern [optional]

Return type

\Tripletex\Model\ResponseWrapperConsumerToken

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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