Skip to content

Latest commit

 

History

History
271 lines (188 loc) · 7.93 KB

File metadata and controls

271 lines (188 loc) · 7.93 KB

ContentSharingRecommendApi

All URIs are relative to https://app.statflo.com

Method HTTP request Description
contentSharingRecommendedCreate POST /v4/api/content-sharing-recommend
contentSharingRecommendedDelete DELETE /v4/api/content-sharing-recommend/{id}
contentSharingRecommendedGet GET /v4/api/content-sharing-recommend/{id}
contentSharingRecommendedSearch GET /v4/api/content-sharing-recommend
contentSharingRecommendedUpdate PUT /v4/api/content-sharing-recommend/{id}

contentSharingRecommendedCreate

ContentSharingRecommended contentSharingRecommendedCreate(body)

Create a content sharing recommendation.

Example

// Import classes:
//import com.statflo.client.ApiClient;
//import com.statflo.client.ApiException;
//import com.statflo.client.Configuration;
//import com.statflo.client.auth.*;
//import com.statflo.client.api.ContentSharingRecommendApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();


ContentSharingRecommendApi apiInstance = new ContentSharingRecommendApi();
ContentSharingRecommendedCreate body = new ContentSharingRecommendedCreate(); // ContentSharingRecommendedCreate | 
try {
    ContentSharingRecommended result = apiInstance.contentSharingRecommendedCreate(body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ContentSharingRecommendApi#contentSharingRecommendedCreate");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
body ContentSharingRecommendedCreate [optional]

Return type

ContentSharingRecommended

Authorization

Bearer

HTTP request headers

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

contentSharingRecommendedDelete

contentSharingRecommendedDelete(id)

Remove a content sharing recommendation.

Example

// Import classes:
//import com.statflo.client.ApiClient;
//import com.statflo.client.ApiException;
//import com.statflo.client.Configuration;
//import com.statflo.client.auth.*;
//import com.statflo.client.api.ContentSharingRecommendApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();


ContentSharingRecommendApi apiInstance = new ContentSharingRecommendApi();
String id = "id_example"; // String | 
try {
    apiInstance.contentSharingRecommendedDelete(id);
} catch (ApiException e) {
    System.err.println("Exception when calling ContentSharingRecommendApi#contentSharingRecommendedDelete");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String

Return type

null (empty response body)

Authorization

Bearer

HTTP request headers

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

contentSharingRecommendedGet

ContentSharingRecommended contentSharingRecommendedGet(id)

Retrieve a content sharing recommendation.

Example

// Import classes:
//import com.statflo.client.ApiClient;
//import com.statflo.client.ApiException;
//import com.statflo.client.Configuration;
//import com.statflo.client.auth.*;
//import com.statflo.client.api.ContentSharingRecommendApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();


ContentSharingRecommendApi apiInstance = new ContentSharingRecommendApi();
String id = "id_example"; // String | 
try {
    ContentSharingRecommended result = apiInstance.contentSharingRecommendedGet(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ContentSharingRecommendApi#contentSharingRecommendedGet");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String

Return type

ContentSharingRecommended

Authorization

Bearer

HTTP request headers

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

contentSharingRecommendedSearch

ContentSharingRecommendPaginationResponse contentSharingRecommendedSearch(filter, query, page, perPage, sort)

Get a list of all recommendations

Example

// Import classes:
//import com.statflo.client.ApiClient;
//import com.statflo.client.ApiException;
//import com.statflo.client.Configuration;
//import com.statflo.client.auth.*;
//import com.statflo.client.api.ContentSharingRecommendApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();


ContentSharingRecommendApi apiInstance = new ContentSharingRecommendApi();
java.util.HashMap filter = new java.util.HashMap(); // java.util.HashMap | 
String query = "query_example"; // String | 
Integer page = 56; // Integer | 
Integer perPage = 56; // Integer | 
String sort = "sort_example"; // String | 
try {
    ContentSharingRecommendPaginationResponse result = apiInstance.contentSharingRecommendedSearch(filter, query, page, perPage, sort);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ContentSharingRecommendApi#contentSharingRecommendedSearch");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
filter java.util.HashMap [optional]
query String [optional]
page Integer [optional]
perPage Integer [optional]
sort String [optional]

Return type

ContentSharingRecommendPaginationResponse

Authorization

Bearer

HTTP request headers

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

contentSharingRecommendedUpdate

ContentSharingRecommended contentSharingRecommendedUpdate(id, body)

Update a content sharing recommendation.

Example

// Import classes:
//import com.statflo.client.ApiClient;
//import com.statflo.client.ApiException;
//import com.statflo.client.Configuration;
//import com.statflo.client.auth.*;
//import com.statflo.client.api.ContentSharingRecommendApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();


ContentSharingRecommendApi apiInstance = new ContentSharingRecommendApi();
String id = "id_example"; // String | 
ContentSharingRecommendedUpdate body = new ContentSharingRecommendedUpdate(); // ContentSharingRecommendedUpdate | 
try {
    ContentSharingRecommended result = apiInstance.contentSharingRecommendedUpdate(id, body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ContentSharingRecommendApi#contentSharingRecommendedUpdate");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String
body ContentSharingRecommendedUpdate [optional]

Return type

ContentSharingRecommended

Authorization

Bearer

HTTP request headers

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