Skip to content

Latest commit

 

History

History
67 lines (44 loc) · 1.73 KB

AccountApi.md

File metadata and controls

67 lines (44 loc) · 1.73 KB

Wordlift\Client\AccountApi

All URIs are relative to https://api.wordlift.io, except if the operation defines another base path.

Method HTTP request Description
getMe() GET /accounts/me Get

getMe()

getMe(): \Wordlift\Client\Model\AccountInfo

Get

Get the account data for the current account identified by its key.

Example

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


// Configure API key authorization: ApiKey
$config = Wordlift\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Wordlift\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');


$apiInstance = new Wordlift\Client\Api\AccountApi(
    // 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->getMe();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountApi->getMe: ', $e->getMessage(), PHP_EOL;
}

Parameters

This endpoint does not need any parameter.

Return type

\Wordlift\Client\Model\AccountInfo

Authorization

ApiKey

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/vnd.wordlift.account-info.v2+json

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