All URIs are relative to https://api.criteo.com/marketing
Method | HTTP request | Description |
---|---|---|
getPortfolio | GET /v1/portfolio | Gets portfolio |
\Criteo\Marketing\Model\PortfolioMessage[] getPortfolio($authorization)
Gets portfolio
<?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;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | JWT Bearer Token | [default to 'Bearer VALID_JWT_TOKEN_BASE64'] |
\Criteo\Marketing\Model\PortfolioMessage[]
- 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]