ContentApi
All URIs are relative to //api.estuary.tech/
Method | HTTP request | Description |
---|---|---|
adminInvitesCodePost | POST /admin/invites/{code} | Create an Estuary invite |
adminInvitesGet | GET /admin/invites | Get Estuary invites |
contentAddCarPost | POST /content/add-car | Add Car object |
contentAddIpfsPost | POST /content/add-ipfs | Add IPFS object |
contentAddPost | POST /content/add | Add new content |
contentAggregatedContentGet | GET /content/aggregated/{content} | Get aggregated content stats |
contentAllDealsGet | GET /content/all-deals | Get all deals for a user |
contentBwUsageContentGet | GET /content/bw-usage/{content} | Get content bandwidth |
contentContentsGet | GET /content/contents | Get user contents |
contentCreatePost | POST /content/create | Add a new content |
contentDealsGet | GET /content/deals | Content with deals |
contentEnsureReplicationDatacidGet | GET /content/ensure-replication/{datacid} | Ensure Replication |
contentFailuresContentGet | GET /content/failures/{content} | List all failures for a content |
contentIdGet | GET /content/{id} | Content |
contentListGet | GET /content/list | List all pinned content |
contentStagingZonesGet | GET /content/staging-zones | Get staging zone for user, excluding its contents |
contentStagingZonesStagingZoneContentsGet | GET /content/staging-zones/{staging_zone}/contents | Get contents for a staging zone |
contentStagingZonesStagingZoneGet | GET /content/staging-zones/{staging_zone} | Get staging zone without its contents field populated |
contentStatsGet | GET /content/stats | Get content statistics |
contentStatusIdGet | GET /content/status/{id} | Content Status |
adminInvitesCodePost
String adminInvitesCodePost(code)
Create an Estuary invite
This endpoint is used to create an estuary invite.
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ContentApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
ContentApi apiInstance = new ContentApi();
String code = "code_example"; // String | Invite code to be created
try {
String result = apiInstance.adminInvitesCodePost(code);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContentApi#adminInvitesCodePost");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
code | String | Invite code to be created |
Return type
String
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
adminInvitesGet
String adminInvitesGet()
Get Estuary invites
This endpoint is used to list all estuary invites.
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ContentApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
ContentApi apiInstance = new ContentApi();
try {
String result = apiInstance.adminInvitesGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContentApi#adminInvitesGet");
e.printStackTrace();
}
Parameters
This endpoint does not need any parameter.
Return type
String
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
contentAddCarPost
UtilContentAddResponse contentAddCarPost(body, ignoreDupes, filename)
Add Car object
This endpoint is used to add a car object to the network. The object can be a file or a directory.
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ContentApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
ContentApi apiInstance = new ContentApi();
String body = "body_example"; // String | Car
String ignoreDupes = "ignoreDupes_example"; // String | Ignore Dupes
String filename = "filename_example"; // String | Filename
try {
UtilContentAddResponse result = apiInstance.contentAddCarPost(body, ignoreDupes, filename);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContentApi#contentAddCarPost");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
body | String | Car | |
ignoreDupes | String | Ignore Dupes | [optional] |
filename | String | Filename | [optional] |
Return type
Authorization
HTTP request headers
- Content-Type: /
- Accept: application/json
contentAddIpfsPost
String contentAddIpfsPost(body, ignoreDupes, overwrite)
Add IPFS object
This endpoint is used to add an IPFS object to the network. The object can be a file or a directory.
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ContentApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
ContentApi apiInstance = new ContentApi();
TypesIpfsPin body = new TypesIpfsPin(); // TypesIpfsPin | IPFS Body
String ignoreDupes = "ignoreDupes_example"; // String | Ignore Dupes
String overwrite = "overwrite_example"; // String | Overwrite conflicting files in collections
try {
String result = apiInstance.contentAddIpfsPost(body, ignoreDupes, overwrite);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContentApi#contentAddIpfsPost");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
body | TypesIpfsPin | IPFS Body | |
ignoreDupes | String | Ignore Dupes | [optional] |
overwrite | String | Overwrite conflicting files in collections | [optional] |
Return type
String
Authorization
HTTP request headers
- Content-Type: /
- Accept: application/json
contentAddPost
UtilContentAddResponse contentAddPost(data, filename, coluuid, replication, ignoreDupes, overwrite, lazyProvide, dir)
Add new content
This endpoint is used to upload new content.
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ContentApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
ContentApi apiInstance = new ContentApi();
File data = new File("data_example"); // File |
String filename = "filename_example"; // String |
String coluuid = "coluuid_example"; // String | Collection UUID
Integer replication = 56; // Integer | Replication value
String ignoreDupes = "ignoreDupes_example"; // String | Ignore Dupes true/false
String overwrite = "overwrite_example"; // String | Overwrite files with the same path on same collection
String lazyProvide = "lazyProvide_example"; // String | Lazy Provide true/false
String dir = "dir_example"; // String | Directory
try {
UtilContentAddResponse result = apiInstance.contentAddPost(data, filename, coluuid, replication, ignoreDupes, overwrite, lazyProvide, dir);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContentApi#contentAddPost");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
data | File | ||
filename | String | ||
coluuid | String | Collection UUID | [optional] |
replication | Integer | Replication value | [optional] |
ignoreDupes | String | Ignore Dupes true/false | [optional] |
overwrite | String | Overwrite files with the same path on same collection | [optional] |
lazyProvide | String | Lazy Provide true/false | [optional] |
dir | String | Directory | [optional] |
Return type
Authorization
HTTP request headers
- Content-Type: multipart/form-data
- Accept: application/json
contentAggregatedContentGet
String contentAggregatedContentGet(content)
Get aggregated content stats
This endpoint returns aggregated content stats
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ContentApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
ContentApi apiInstance = new ContentApi();
String content = "content_example"; // String | Content ID
try {
String result = apiInstance.contentAggregatedContentGet(content);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContentApi#contentAggregatedContentGet");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
content | String | Content ID |
Return type
String
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
contentAllDealsGet
String contentAllDealsGet(begin, duration, all)
Get all deals for a user
This endpoint is used to get all deals for a user
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ContentApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
ContentApi apiInstance = new ContentApi();
String begin = "begin_example"; // String | Begin
String duration = "duration_example"; // String | Duration
String all = "all_example"; // String | All
try {
String result = apiInstance.contentAllDealsGet(begin, duration, all);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContentApi#contentAllDealsGet");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
begin | String | Begin | |
duration | String | Duration | |
all | String | All |
Return type
String
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
contentBwUsageContentGet
String contentBwUsageContentGet(content)
Get content bandwidth
This endpoint returns content bandwidth
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ContentApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
ContentApi apiInstance = new ContentApi();
String content = "content_example"; // String | Content ID
try {
String result = apiInstance.contentBwUsageContentGet(content);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContentApi#contentBwUsageContentGet");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
content | String | Content ID |
Return type
String
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
contentContentsGet
String contentContentsGet(limit, offset)
Get user contents
This endpoint is used to get user contents
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ContentApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
ContentApi apiInstance = new ContentApi();
String limit = "limit_example"; // String | limit
String offset = "offset_example"; // String | offset
try {
String result = apiInstance.contentContentsGet(limit, offset);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContentApi#contentContentsGet");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
limit | String | limit | |
offset | String | offset |
Return type
String
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
contentCreatePost
String contentCreatePost(body, ignoreDupes)
Add a new content
This endpoint adds a new content
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ContentApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
ContentApi apiInstance = new ContentApi();
UtilContentCreateBody body = new UtilContentCreateBody(); // UtilContentCreateBody | Content
String ignoreDupes = "ignoreDupes_example"; // String | Ignore Dupes
try {
String result = apiInstance.contentCreatePost(body, ignoreDupes);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContentApi#contentCreatePost");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
body | UtilContentCreateBody | Content | |
ignoreDupes | String | Ignore Dupes | [optional] |
Return type
String
Authorization
HTTP request headers
- Content-Type: /
- Accept: application/json
contentDealsGet
String contentDealsGet(limit, offset)
Content with deals
This endpoint lists all content with deals
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ContentApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
ContentApi apiInstance = new ContentApi();
Integer limit = 56; // Integer | Limit
Integer offset = 56; // Integer | Offset
try {
String result = apiInstance.contentDealsGet(limit, offset);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContentApi#contentDealsGet");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
limit | Integer | Limit | [optional] |
offset | Integer | Offset | [optional] |
Return type
String
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
contentEnsureReplicationDatacidGet
String contentEnsureReplicationDatacidGet(datacid)
Ensure Replication
This endpoint ensures that the content is replicated to the specified number of providers
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ContentApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
ContentApi apiInstance = new ContentApi();
String datacid = "datacid_example"; // String | Data CID
try {
String result = apiInstance.contentEnsureReplicationDatacidGet(datacid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContentApi#contentEnsureReplicationDatacidGet");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
datacid | String | Data CID |
Return type
String
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
contentFailuresContentGet
String contentFailuresContentGet(content)
List all failures for a content
This endpoint returns all failures for a content
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ContentApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
ContentApi apiInstance = new ContentApi();
String content = "content_example"; // String | Content ID
try {
String result = apiInstance.contentFailuresContentGet(content);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContentApi#contentFailuresContentGet");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
content | String | Content ID |
Return type
String
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
contentIdGet
String contentIdGet(id)
Content
This endpoint returns a content by its ID
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ContentApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
ContentApi apiInstance = new ContentApi();
Integer id = 56; // Integer | Content ID
try {
String result = apiInstance.contentIdGet(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContentApi#contentIdGet");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | Content ID |
Return type
String
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
contentListGet
String contentListGet()
List all pinned content
This endpoint lists all content
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ContentApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
ContentApi apiInstance = new ContentApi();
try {
String result = apiInstance.contentListGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContentApi#contentListGet");
e.printStackTrace();
}
Parameters
This endpoint does not need any parameter.
Return type
String
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
contentStagingZonesGet
String contentStagingZonesGet()
Get staging zone for user, excluding its contents
This endpoint is used to get staging zone for user, excluding its contents.
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ContentApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
ContentApi apiInstance = new ContentApi();
try {
String result = apiInstance.contentStagingZonesGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContentApi#contentStagingZonesGet");
e.printStackTrace();
}
Parameters
This endpoint does not need any parameter.
Return type
String
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
contentStagingZonesStagingZoneContentsGet
String contentStagingZonesStagingZoneContentsGet(stagingZone, limit, offset)
Get contents for a staging zone
This endpoint is used to get the contents for a staging zone
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ContentApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
ContentApi apiInstance = new ContentApi();
Integer stagingZone = 56; // Integer | Staging Zone Content ID
String limit = "limit_example"; // String | limit
String offset = "offset_example"; // String | offset
try {
String result = apiInstance.contentStagingZonesStagingZoneContentsGet(stagingZone, limit, offset);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContentApi#contentStagingZonesStagingZoneContentsGet");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
stagingZone | Integer | Staging Zone Content ID | |
limit | String | limit | |
offset | String | offset |
Return type
String
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
contentStagingZonesStagingZoneGet
String contentStagingZonesStagingZoneGet(stagingZone)
Get staging zone without its contents field populated
This endpoint is used to get a staging zone, excluding its contents.
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ContentApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
ContentApi apiInstance = new ContentApi();
Integer stagingZone = 56; // Integer | Staging Zone Content ID
try {
String result = apiInstance.contentStagingZonesStagingZoneGet(stagingZone);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContentApi#contentStagingZonesStagingZoneGet");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
stagingZone | Integer | Staging Zone Content ID |
Return type
String
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
contentStatsGet
String contentStatsGet(limit, offset)
Get content statistics
This endpoint is used to get content statistics. Every content stored in the network (estuary) is tracked by a unique ID which can be used to get information about the content. This endpoint will allow the consumer to get the collected stats of a content
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ContentApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
ContentApi apiInstance = new ContentApi();
String limit = "limit_example"; // String | limit
String offset = "offset_example"; // String | offset
try {
String result = apiInstance.contentStatsGet(limit, offset);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContentApi#contentStatsGet");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
limit | String | limit | |
offset | String | offset |
Return type
String
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
contentStatusIdGet
String contentStatusIdGet(id)
Content Status
This endpoint returns the status of a content
Example
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ContentApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
ContentApi apiInstance = new ContentApi();
Integer id = 56; // Integer | Content ID
try {
String result = apiInstance.contentStatusIdGet(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContentApi#contentStatusIdGet");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | Content ID |
Return type
String
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json