All URIs are relative to https://api.criteo.com/marketing
Method | HTTP request | Description |
---|---|---|
getPortfolio | GET /v1/portfolio | Gets portfolio |
List<PortfolioMessage> getPortfolio(authorization)
Gets portfolio
// Import classes:
import com.criteo.marketing.ApiClient;
import com.criteo.marketing.ApiException;
import com.criteo.marketing.Configuration;
import com.criteo.marketing.auth.*;
import com.criteo.marketing.models.*;
import com.criteo.marketing.api.PortfolioApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.criteo.com/marketing");
// Configure API key authorization: Authorization
ApiKeyAuth Authorization = (ApiKeyAuth) defaultClient.getAuthentication("Authorization");
Authorization.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.setApiKeyPrefix("Token");
PortfolioApi apiInstance = new PortfolioApi(defaultClient);
String authorization = "\"Bearer VALID_JWT_TOKEN_BASE64\""; // String | JWT Bearer Token
try {
List<PortfolioMessage> result = apiInstance.getPortfolio(authorization);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PortfolioApi#getPortfolio");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | JWT Bearer Token | [default to "Bearer VALID_JWT_TOKEN_BASE64"] |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, text/html
Status code | Description | Response headers |
---|---|---|
200 | Portfolio returned OK. | - |
401 | Authentication failed. | - |
429 | Throttling failure. Maximum sending rate exceeded. | - |
500 | Unknown error. | - |