Skip to content

Latest commit

 

History

History
68 lines (43 loc) · 1.95 KB

GatewayApi.md

File metadata and controls

68 lines (43 loc) · 1.95 KB

criteo\api\retailmedia\preview\GatewayApi

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

Method HTTP request Description
getCurrentApplication() GET /preview/retail-media/me

getCurrentApplication()

getCurrentApplication(): \criteo\api\retailmedia\preview\Model\ApplicationSummaryModelResponse

Get information about the currently logged application

Example

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


// Configure OAuth2 access token for authorization: oauth
$config = criteo\api\retailmedia\preview\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Configure OAuth2 access token for authorization: oauth
$config = criteo\api\retailmedia\preview\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new criteo\api\retailmedia\preview\Api\GatewayApi(
    // 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->getCurrentApplication();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GatewayApi->getCurrentApplication: ', $e->getMessage(), PHP_EOL;
}

Parameters

This endpoint does not need any parameter.

Return type

\criteo\api\retailmedia\preview\Model\ApplicationSummaryModelResponse

Authorization

oauth, oauth

HTTP request headers

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

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