Skip to content
This repository has been archived by the owner on Sep 19, 2022. It is now read-only.

Latest commit

 

History

History
70 lines (45 loc) · 2.04 KB

PortfolioApi.md

File metadata and controls

70 lines (45 loc) · 2.04 KB

Criteo\Marketing\PortfolioApi

All URIs are relative to https://api.criteo.com/marketing

Method HTTP request Description
getPortfolio GET /v1/portfolio Gets portfolio

getPortfolio

\Criteo\Marketing\Model\PortfolioMessage[] getPortfolio($authorization)

Gets portfolio

Example

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


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


$apiInstance = new Criteo\Marketing\Api\PortfolioApi(
    // 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
);
$authorization = 'Bearer VALID_JWT_TOKEN_BASE64'; // string | JWT Bearer Token

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

Parameters

Name Type Description Notes
authorization string JWT Bearer Token [default to 'Bearer VALID_JWT_TOKEN_BASE64']

Return type

\Criteo\Marketing\Model\PortfolioMessage[]

Authorization

Authorization

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json, application/xml, text/xml, text/html

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