Skip to content

Latest commit

 

History

History
317 lines (214 loc) · 9.16 KB

AccessIdentifiersApi.md

File metadata and controls

317 lines (214 loc) · 9.16 KB

Supla\ApiClient\AccessIdentifiersApi

All URIs are relative to https://YOUR_SUPLA_SERVER/api/v3.

Method HTTP request Description
createAccessIdentifier() POST /accessids Create a new Access Identifier
deleteAccessIdentifier() DELETE /accessids/{id} Delete the access identifier
getAccessIdentifier() GET /accessids/{id} Get AID by ID
getAccessIdentifiers() GET /accessids Get Access Identifiers
updateAccessIdentifier() PUT /accessids/{id} Update the access identifier

createAccessIdentifier()

createAccessIdentifier(): \Supla\ApiClient\Model\AccessIdentifier

Create a new Access Identifier

Example

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


// Configure Bearer authorization: BearerAuth
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Configure OAuth2 access token for authorization: OAuth2
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Supla\ApiClient\Api\AccessIdentifiersApi(
    // 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
);

try {
    $result = $apiInstance->createAccessIdentifier();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccessIdentifiersApi->createAccessIdentifier: ', $e->getMessage(), PHP_EOL;
}

Parameters

This endpoint does not need any parameter.

Return type

\Supla\ApiClient\Model\AccessIdentifier

Authorization

BearerAuth, OAuth2

HTTP request headers

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

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

deleteAccessIdentifier()

deleteAccessIdentifier($id)

Delete the access identifier

Example

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


// Configure Bearer authorization: BearerAuth
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Configure OAuth2 access token for authorization: OAuth2
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Supla\ApiClient\Api\AccessIdentifiersApi(
    // 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
);
$id = 56; // int | ID

try {
    $apiInstance->deleteAccessIdentifier($id);
} catch (Exception $e) {
    echo 'Exception when calling AccessIdentifiersApi->deleteAccessIdentifier: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id int ID

Return type

void (empty response body)

Authorization

BearerAuth, OAuth2

HTTP request headers

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

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

getAccessIdentifier()

getAccessIdentifier($id, $include): \Supla\ApiClient\Model\AccessIdentifier

Get AID by ID

Example

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


// Configure Bearer authorization: BearerAuth
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Configure OAuth2 access token for authorization: OAuth2
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Supla\ApiClient\Api\AccessIdentifiersApi(
    // 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
);
$id = 56; // int | ID
$include = array('include_example'); // string[] | List of extra fields to include in the response.

try {
    $result = $apiInstance->getAccessIdentifier($id, $include);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccessIdentifiersApi->getAccessIdentifier: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id int ID
include string[] List of extra fields to include in the response. [optional]

Return type

\Supla\ApiClient\Model\AccessIdentifier

Authorization

BearerAuth, OAuth2

HTTP request headers

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

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

getAccessIdentifiers()

getAccessIdentifiers($include): \Supla\ApiClient\Model\AccessIdentifier[]

Get Access Identifiers

Example

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


// Configure Bearer authorization: BearerAuth
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Configure OAuth2 access token for authorization: OAuth2
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Supla\ApiClient\Api\AccessIdentifiersApi(
    // 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
);
$include = array('include_example'); // string[] | List of extra fields to include in the response.

try {
    $result = $apiInstance->getAccessIdentifiers($include);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccessIdentifiersApi->getAccessIdentifiers: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
include string[] List of extra fields to include in the response. [optional]

Return type

\Supla\ApiClient\Model\AccessIdentifier[]

Authorization

BearerAuth, OAuth2

HTTP request headers

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

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

updateAccessIdentifier()

updateAccessIdentifier($id, $inlineObject): \Supla\ApiClient\Model\AccessIdentifier

Update the access identifier

Example

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


// Configure Bearer authorization: BearerAuth
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Configure OAuth2 access token for authorization: OAuth2
$config = Supla\ApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Supla\ApiClient\Api\AccessIdentifiersApi(
    // 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
);
$id = 56; // int | ID
$inlineObject = new \Supla\ApiClient\Model\InlineObject(); // \Supla\ApiClient\Model\InlineObject

try {
    $result = $apiInstance->updateAccessIdentifier($id, $inlineObject);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccessIdentifiersApi->updateAccessIdentifier: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id int ID
inlineObject \Supla\ApiClient\Model\InlineObject

Return type

\Supla\ApiClient\Model\AccessIdentifier

Authorization

BearerAuth, OAuth2

HTTP request headers

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

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