travel.wink.sdk.affiliate.syndication.api.SyndicationPublisherApi Maven / Gradle / Ivy
Show all versions of affiliate-winklinks-sdk-java Show documentation
package travel.wink.sdk.affiliate.syndication.api;
import travel.wink.sdk.affiliate.syndication.invoker.ApiClient;
import travel.wink.sdk.affiliate.syndication.model.BooleanResponseAffiliate;
import travel.wink.sdk.affiliate.syndication.model.ConsumeExternalUrlRequestAffiliate;
import travel.wink.sdk.affiliate.syndication.model.GenericErrorMessage;
import travel.wink.sdk.affiliate.syndication.model.RemoveEntryResponseAffiliate;
import travel.wink.sdk.affiliate.syndication.model.ShowSyndicationSettings400Response;
import travel.wink.sdk.affiliate.syndication.model.SortedAffiliate;
import travel.wink.sdk.affiliate.syndication.model.SyndicationCategoryAffiliate;
import travel.wink.sdk.affiliate.syndication.model.SyndicationEntryAffiliate;
import travel.wink.sdk.affiliate.syndication.model.SyndicationSettingsAffiliate;
import travel.wink.sdk.affiliate.syndication.model.UpsertSyndicationCategoryAffiliate;
import travel.wink.sdk.affiliate.syndication.model.UpsertSyndicationEntryAffiliate;
import travel.wink.sdk.affiliate.syndication.model.UpsertSyndicationSettingsAffiliate;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.web.reactive.function.client.WebClient.ResponseSpec;
import org.springframework.web.reactive.function.client.WebClientResponseException;
import org.springframework.core.io.FileSystemResource;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import reactor.core.publisher.Mono;
import reactor.core.publisher.Flux;
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-08-12T22:09:12.115640008+07:00[Asia/Bangkok]")
public class SyndicationPublisherApi {
private ApiClient apiClient;
public SyndicationPublisherApi() {
this(new ApiClient());
}
@Autowired
public SyndicationPublisherApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
public ApiClient getApiClient() {
return apiClient;
}
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Consume External URL
* Utility method for reading Open Graph data from an external URL.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Consume URL for this owner identifier.
* @param consumeExternalUrlRequestAffiliate Body payload filtering and sorting preferences
* @param winkVersion The winkVersion parameter
* @return UpsertSyndicationEntryAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec consumeExternalUrlForSyndicationEntryRequestCreation(String companyIdentifier, ConsumeExternalUrlRequestAffiliate consumeExternalUrlRequestAffiliate, String winkVersion) throws WebClientResponseException {
Object postBody = consumeExternalUrlRequestAffiliate;
// verify the required parameter 'companyIdentifier' is set
if (companyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling consumeExternalUrlForSyndicationEntry", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'consumeExternalUrlRequestAffiliate' is set
if (consumeExternalUrlRequestAffiliate == null) {
throw new WebClientResponseException("Missing the required parameter 'consumeExternalUrlRequestAffiliate' when calling consumeExternalUrlForSyndicationEntry", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("companyIdentifier", companyIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/affiliate/{companyIdentifier}/syndication/entry/consume-url", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Consume External URL
* Utility method for reading Open Graph data from an external URL.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Consume URL for this owner identifier.
* @param consumeExternalUrlRequestAffiliate Body payload filtering and sorting preferences
* @param winkVersion The winkVersion parameter
* @return UpsertSyndicationEntryAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono consumeExternalUrlForSyndicationEntry(String companyIdentifier, ConsumeExternalUrlRequestAffiliate consumeExternalUrlRequestAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return consumeExternalUrlForSyndicationEntryRequestCreation(companyIdentifier, consumeExternalUrlRequestAffiliate, winkVersion).bodyToMono(localVarReturnType);
}
/**
* Consume External URL
* Utility method for reading Open Graph data from an external URL.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Consume URL for this owner identifier.
* @param consumeExternalUrlRequestAffiliate Body payload filtering and sorting preferences
* @param winkVersion The winkVersion parameter
* @return ResponseEntity<UpsertSyndicationEntryAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> consumeExternalUrlForSyndicationEntryWithHttpInfo(String companyIdentifier, ConsumeExternalUrlRequestAffiliate consumeExternalUrlRequestAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return consumeExternalUrlForSyndicationEntryRequestCreation(companyIdentifier, consumeExternalUrlRequestAffiliate, winkVersion).toEntity(localVarReturnType);
}
/**
* Consume External URL
* Utility method for reading Open Graph data from an external URL.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Consume URL for this owner identifier.
* @param consumeExternalUrlRequestAffiliate Body payload filtering and sorting preferences
* @param winkVersion The winkVersion parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec consumeExternalUrlForSyndicationEntryWithResponseSpec(String companyIdentifier, ConsumeExternalUrlRequestAffiliate consumeExternalUrlRequestAffiliate, String winkVersion) throws WebClientResponseException {
return consumeExternalUrlForSyndicationEntryRequestCreation(companyIdentifier, consumeExternalUrlRequestAffiliate, winkVersion);
}
/**
* Create WinkLinks Category
* Creates a new syndication category.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
201 - Created
* @param companyIdentifier Create category for this owner identifier.
* @param upsertSyndicationCategoryAffiliate Request body
* @param winkVersion The winkVersion parameter
* @return SyndicationCategoryAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec createSyndicationCategoryRequestCreation(String companyIdentifier, UpsertSyndicationCategoryAffiliate upsertSyndicationCategoryAffiliate, String winkVersion) throws WebClientResponseException {
Object postBody = upsertSyndicationCategoryAffiliate;
// verify the required parameter 'companyIdentifier' is set
if (companyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling createSyndicationCategory", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'upsertSyndicationCategoryAffiliate' is set
if (upsertSyndicationCategoryAffiliate == null) {
throw new WebClientResponseException("Missing the required parameter 'upsertSyndicationCategoryAffiliate' when calling createSyndicationCategory", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("companyIdentifier", companyIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/affiliate/{companyIdentifier}/syndication/category", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Create WinkLinks Category
* Creates a new syndication category.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
201 - Created
* @param companyIdentifier Create category for this owner identifier.
* @param upsertSyndicationCategoryAffiliate Request body
* @param winkVersion The winkVersion parameter
* @return SyndicationCategoryAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono createSyndicationCategory(String companyIdentifier, UpsertSyndicationCategoryAffiliate upsertSyndicationCategoryAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return createSyndicationCategoryRequestCreation(companyIdentifier, upsertSyndicationCategoryAffiliate, winkVersion).bodyToMono(localVarReturnType);
}
/**
* Create WinkLinks Category
* Creates a new syndication category.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
201 - Created
* @param companyIdentifier Create category for this owner identifier.
* @param upsertSyndicationCategoryAffiliate Request body
* @param winkVersion The winkVersion parameter
* @return ResponseEntity<SyndicationCategoryAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> createSyndicationCategoryWithHttpInfo(String companyIdentifier, UpsertSyndicationCategoryAffiliate upsertSyndicationCategoryAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return createSyndicationCategoryRequestCreation(companyIdentifier, upsertSyndicationCategoryAffiliate, winkVersion).toEntity(localVarReturnType);
}
/**
* Create WinkLinks Category
* Creates a new syndication category.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
201 - Created
* @param companyIdentifier Create category for this owner identifier.
* @param upsertSyndicationCategoryAffiliate Request body
* @param winkVersion The winkVersion parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec createSyndicationCategoryWithResponseSpec(String companyIdentifier, UpsertSyndicationCategoryAffiliate upsertSyndicationCategoryAffiliate, String winkVersion) throws WebClientResponseException {
return createSyndicationCategoryRequestCreation(companyIdentifier, upsertSyndicationCategoryAffiliate, winkVersion);
}
/**
* Create WinkLinks Entry
* Creates a new syndication entry.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
201 - Created
* @param companyIdentifier Create entry for this owner identifier.
* @param upsertSyndicationEntryAffiliate Request body
* @param winkVersion The winkVersion parameter
* @return SyndicationEntryAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec createSyndicationEntryRequestCreation(String companyIdentifier, UpsertSyndicationEntryAffiliate upsertSyndicationEntryAffiliate, String winkVersion) throws WebClientResponseException {
Object postBody = upsertSyndicationEntryAffiliate;
// verify the required parameter 'companyIdentifier' is set
if (companyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling createSyndicationEntry", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'upsertSyndicationEntryAffiliate' is set
if (upsertSyndicationEntryAffiliate == null) {
throw new WebClientResponseException("Missing the required parameter 'upsertSyndicationEntryAffiliate' when calling createSyndicationEntry", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("companyIdentifier", companyIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/affiliate/{companyIdentifier}/syndication/entry", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Create WinkLinks Entry
* Creates a new syndication entry.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
201 - Created
* @param companyIdentifier Create entry for this owner identifier.
* @param upsertSyndicationEntryAffiliate Request body
* @param winkVersion The winkVersion parameter
* @return SyndicationEntryAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono createSyndicationEntry(String companyIdentifier, UpsertSyndicationEntryAffiliate upsertSyndicationEntryAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return createSyndicationEntryRequestCreation(companyIdentifier, upsertSyndicationEntryAffiliate, winkVersion).bodyToMono(localVarReturnType);
}
/**
* Create WinkLinks Entry
* Creates a new syndication entry.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
201 - Created
* @param companyIdentifier Create entry for this owner identifier.
* @param upsertSyndicationEntryAffiliate Request body
* @param winkVersion The winkVersion parameter
* @return ResponseEntity<SyndicationEntryAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> createSyndicationEntryWithHttpInfo(String companyIdentifier, UpsertSyndicationEntryAffiliate upsertSyndicationEntryAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return createSyndicationEntryRequestCreation(companyIdentifier, upsertSyndicationEntryAffiliate, winkVersion).toEntity(localVarReturnType);
}
/**
* Create WinkLinks Entry
* Creates a new syndication entry.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
201 - Created
* @param companyIdentifier Create entry for this owner identifier.
* @param upsertSyndicationEntryAffiliate Request body
* @param winkVersion The winkVersion parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec createSyndicationEntryWithResponseSpec(String companyIdentifier, UpsertSyndicationEntryAffiliate upsertSyndicationEntryAffiliate, String winkVersion) throws WebClientResponseException {
return createSyndicationEntryRequestCreation(companyIdentifier, upsertSyndicationEntryAffiliate, winkVersion);
}
/**
* Delete WinkLinks Category
* Deletes a syndication category.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Syndication category owned by this owner identifier.
* @param syndicationCategoryIdentifier Syndication category identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return RemoveEntryResponseAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec removeSyndicationCategoryRequestCreation(String companyIdentifier, String syndicationCategoryIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// verify the required parameter 'companyIdentifier' is set
if (companyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling removeSyndicationCategory", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'syndicationCategoryIdentifier' is set
if (syndicationCategoryIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'syndicationCategoryIdentifier' when calling removeSyndicationCategory", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("companyIdentifier", companyIdentifier);
pathParams.put("syndicationCategoryIdentifier", syndicationCategoryIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = { };
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/affiliate/{companyIdentifier}/syndication/category/{syndicationCategoryIdentifier}", HttpMethod.DELETE, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Delete WinkLinks Category
* Deletes a syndication category.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Syndication category owned by this owner identifier.
* @param syndicationCategoryIdentifier Syndication category identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return RemoveEntryResponseAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono removeSyndicationCategory(String companyIdentifier, String syndicationCategoryIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return removeSyndicationCategoryRequestCreation(companyIdentifier, syndicationCategoryIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Delete WinkLinks Category
* Deletes a syndication category.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Syndication category owned by this owner identifier.
* @param syndicationCategoryIdentifier Syndication category identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<RemoveEntryResponseAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> removeSyndicationCategoryWithHttpInfo(String companyIdentifier, String syndicationCategoryIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return removeSyndicationCategoryRequestCreation(companyIdentifier, syndicationCategoryIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Delete WinkLinks Category
* Deletes a syndication category.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Syndication category owned by this owner identifier.
* @param syndicationCategoryIdentifier Syndication category identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec removeSyndicationCategoryWithResponseSpec(String companyIdentifier, String syndicationCategoryIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return removeSyndicationCategoryRequestCreation(companyIdentifier, syndicationCategoryIdentifier, winkVersion, accept);
}
/**
* Delete WinkLinks Entry
* Deletes a syndication entry.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Syndication entry owned by this owner identifier.
* @param syndicationEntryIdentifier Syndication entry identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return RemoveEntryResponseAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec removeSyndicationEntryRequestCreation(String companyIdentifier, String syndicationEntryIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// verify the required parameter 'companyIdentifier' is set
if (companyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling removeSyndicationEntry", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'syndicationEntryIdentifier' is set
if (syndicationEntryIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'syndicationEntryIdentifier' when calling removeSyndicationEntry", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("companyIdentifier", companyIdentifier);
pathParams.put("syndicationEntryIdentifier", syndicationEntryIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = { };
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/affiliate/{companyIdentifier}/syndication/entry/{syndicationEntryIdentifier}", HttpMethod.DELETE, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Delete WinkLinks Entry
* Deletes a syndication entry.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Syndication entry owned by this owner identifier.
* @param syndicationEntryIdentifier Syndication entry identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return RemoveEntryResponseAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono removeSyndicationEntry(String companyIdentifier, String syndicationEntryIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return removeSyndicationEntryRequestCreation(companyIdentifier, syndicationEntryIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Delete WinkLinks Entry
* Deletes a syndication entry.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Syndication entry owned by this owner identifier.
* @param syndicationEntryIdentifier Syndication entry identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<RemoveEntryResponseAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> removeSyndicationEntryWithHttpInfo(String companyIdentifier, String syndicationEntryIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return removeSyndicationEntryRequestCreation(companyIdentifier, syndicationEntryIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Delete WinkLinks Entry
* Deletes a syndication entry.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Syndication entry owned by this owner identifier.
* @param syndicationEntryIdentifier Syndication entry identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec removeSyndicationEntryWithResponseSpec(String companyIdentifier, String syndicationEntryIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return removeSyndicationEntryRequestCreation(companyIdentifier, syndicationEntryIdentifier, winkVersion, accept);
}
/**
* Show WinkLinks Category
* Retrieve syndication category.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Syndication category owned by this owner identifier.
* @param syndicationCategoryIdentifier Syndication category identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return SyndicationCategoryAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showSyndicationCategoryRequestCreation(String companyIdentifier, String syndicationCategoryIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// verify the required parameter 'companyIdentifier' is set
if (companyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling showSyndicationCategory", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'syndicationCategoryIdentifier' is set
if (syndicationCategoryIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'syndicationCategoryIdentifier' when calling showSyndicationCategory", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("companyIdentifier", companyIdentifier);
pathParams.put("syndicationCategoryIdentifier", syndicationCategoryIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = { };
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/affiliate/{companyIdentifier}/syndication/category/{syndicationCategoryIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show WinkLinks Category
* Retrieve syndication category.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Syndication category owned by this owner identifier.
* @param syndicationCategoryIdentifier Syndication category identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return SyndicationCategoryAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono showSyndicationCategory(String companyIdentifier, String syndicationCategoryIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showSyndicationCategoryRequestCreation(companyIdentifier, syndicationCategoryIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Show WinkLinks Category
* Retrieve syndication category.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Syndication category owned by this owner identifier.
* @param syndicationCategoryIdentifier Syndication category identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<SyndicationCategoryAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> showSyndicationCategoryWithHttpInfo(String companyIdentifier, String syndicationCategoryIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showSyndicationCategoryRequestCreation(companyIdentifier, syndicationCategoryIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Show WinkLinks Category
* Retrieve syndication category.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Syndication category owned by this owner identifier.
* @param syndicationCategoryIdentifier Syndication category identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec showSyndicationCategoryWithResponseSpec(String companyIdentifier, String syndicationCategoryIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return showSyndicationCategoryRequestCreation(companyIdentifier, syndicationCategoryIdentifier, winkVersion, accept);
}
/**
* Show WinkLinks Categories
* Retrieve list of syndication categories.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List syndication categories owned by this owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<SyndicationCategoryAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showSyndicationCategoryListRequestCreation(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// verify the required parameter 'companyIdentifier' is set
if (companyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling showSyndicationCategoryList", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("companyIdentifier", companyIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = { };
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/affiliate/{companyIdentifier}/syndication/category/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show WinkLinks Categories
* Retrieve list of syndication categories.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List syndication categories owned by this owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<SyndicationCategoryAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux showSyndicationCategoryList(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showSyndicationCategoryListRequestCreation(companyIdentifier, winkVersion, accept).bodyToFlux(localVarReturnType);
}
/**
* Show WinkLinks Categories
* Retrieve list of syndication categories.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List syndication categories owned by this owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<List<SyndicationCategoryAffiliate>>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono>> showSyndicationCategoryListWithHttpInfo(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showSyndicationCategoryListRequestCreation(companyIdentifier, winkVersion, accept).toEntityList(localVarReturnType);
}
/**
* Show WinkLinks Categories
* Retrieve list of syndication categories.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List syndication categories owned by this owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec showSyndicationCategoryListWithResponseSpec(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return showSyndicationCategoryListRequestCreation(companyIdentifier, winkVersion, accept);
}
/**
* Show WinkLinks Entry
* Retrieve syndication entry.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Syndication entry owned by this owner identifier.
* @param syndicationEntryIdentifier Syndication entry identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return SyndicationEntryAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showSyndicationEntryRequestCreation(String companyIdentifier, String syndicationEntryIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// verify the required parameter 'companyIdentifier' is set
if (companyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling showSyndicationEntry", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'syndicationEntryIdentifier' is set
if (syndicationEntryIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'syndicationEntryIdentifier' when calling showSyndicationEntry", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("companyIdentifier", companyIdentifier);
pathParams.put("syndicationEntryIdentifier", syndicationEntryIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = { };
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/affiliate/{companyIdentifier}/syndication/entry/{syndicationEntryIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show WinkLinks Entry
* Retrieve syndication entry.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Syndication entry owned by this owner identifier.
* @param syndicationEntryIdentifier Syndication entry identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return SyndicationEntryAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono showSyndicationEntry(String companyIdentifier, String syndicationEntryIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showSyndicationEntryRequestCreation(companyIdentifier, syndicationEntryIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Show WinkLinks Entry
* Retrieve syndication entry.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Syndication entry owned by this owner identifier.
* @param syndicationEntryIdentifier Syndication entry identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<SyndicationEntryAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> showSyndicationEntryWithHttpInfo(String companyIdentifier, String syndicationEntryIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showSyndicationEntryRequestCreation(companyIdentifier, syndicationEntryIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Show WinkLinks Entry
* Retrieve syndication entry.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Syndication entry owned by this owner identifier.
* @param syndicationEntryIdentifier Syndication entry identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec showSyndicationEntryWithResponseSpec(String companyIdentifier, String syndicationEntryIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return showSyndicationEntryRequestCreation(companyIdentifier, syndicationEntryIdentifier, winkVersion, accept);
}
/**
* Show WinkLinks Entries
* Retrieve list of syndication entries.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List syndication entries owned by this owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<SyndicationEntryAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showSyndicationEntryListRequestCreation(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// verify the required parameter 'companyIdentifier' is set
if (companyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling showSyndicationEntryList", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("companyIdentifier", companyIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = { };
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/affiliate/{companyIdentifier}/syndication/entry/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show WinkLinks Entries
* Retrieve list of syndication entries.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List syndication entries owned by this owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<SyndicationEntryAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux showSyndicationEntryList(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showSyndicationEntryListRequestCreation(companyIdentifier, winkVersion, accept).bodyToFlux(localVarReturnType);
}
/**
* Show WinkLinks Entries
* Retrieve list of syndication entries.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List syndication entries owned by this owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<List<SyndicationEntryAffiliate>>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono>> showSyndicationEntryListWithHttpInfo(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showSyndicationEntryListRequestCreation(companyIdentifier, winkVersion, accept).toEntityList(localVarReturnType);
}
/**
* Show WinkLinks Entries
* Retrieve list of syndication entries.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List syndication entries owned by this owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec showSyndicationEntryListWithResponseSpec(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return showSyndicationEntryListRequestCreation(companyIdentifier, winkVersion, accept);
}
/**
* Show WinkLinks Settings
* Load WinkLinks settings.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List syndication entries owned by this owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return SyndicationSettingsAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showSyndicationSettingsRequestCreation(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// verify the required parameter 'companyIdentifier' is set
if (companyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling showSyndicationSettings", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("companyIdentifier", companyIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = { };
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/affiliate/{companyIdentifier}/syndication/settings", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show WinkLinks Settings
* Load WinkLinks settings.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List syndication entries owned by this owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return SyndicationSettingsAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono showSyndicationSettings(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showSyndicationSettingsRequestCreation(companyIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Show WinkLinks Settings
* Load WinkLinks settings.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List syndication entries owned by this owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<SyndicationSettingsAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> showSyndicationSettingsWithHttpInfo(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showSyndicationSettingsRequestCreation(companyIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Show WinkLinks Settings
* Load WinkLinks settings.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier List syndication entries owned by this owner identifier.
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec showSyndicationSettingsWithResponseSpec(String companyIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return showSyndicationSettingsRequestCreation(companyIdentifier, winkVersion, accept);
}
/**
* Sort WinkLink Entries
* Re-sorts all list entries.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Consume URL for this owner identifier.
* @param sortedAffiliate List if ids and their new sort slot
* @param winkVersion The winkVersion parameter
* @return BooleanResponseAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec sortSyndicationEntryListRequestCreation(String companyIdentifier, List sortedAffiliate, String winkVersion) throws WebClientResponseException {
Object postBody = sortedAffiliate;
// verify the required parameter 'companyIdentifier' is set
if (companyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling sortSyndicationEntryList", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'sortedAffiliate' is set
if (sortedAffiliate == null) {
throw new WebClientResponseException("Missing the required parameter 'sortedAffiliate' when calling sortSyndicationEntryList", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("companyIdentifier", companyIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/affiliate/{companyIdentifier}/syndication/entry/list/sort", HttpMethod.PATCH, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Sort WinkLink Entries
* Re-sorts all list entries.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Consume URL for this owner identifier.
* @param sortedAffiliate List if ids and their new sort slot
* @param winkVersion The winkVersion parameter
* @return BooleanResponseAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono sortSyndicationEntryList(String companyIdentifier, List sortedAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return sortSyndicationEntryListRequestCreation(companyIdentifier, sortedAffiliate, winkVersion).bodyToMono(localVarReturnType);
}
/**
* Sort WinkLink Entries
* Re-sorts all list entries.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Consume URL for this owner identifier.
* @param sortedAffiliate List if ids and their new sort slot
* @param winkVersion The winkVersion parameter
* @return ResponseEntity<BooleanResponseAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> sortSyndicationEntryListWithHttpInfo(String companyIdentifier, List sortedAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return sortSyndicationEntryListRequestCreation(companyIdentifier, sortedAffiliate, winkVersion).toEntity(localVarReturnType);
}
/**
* Sort WinkLink Entries
* Re-sorts all list entries.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Consume URL for this owner identifier.
* @param sortedAffiliate List if ids and their new sort slot
* @param winkVersion The winkVersion parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec sortSyndicationEntryListWithResponseSpec(String companyIdentifier, List sortedAffiliate, String winkVersion) throws WebClientResponseException {
return sortSyndicationEntryListRequestCreation(companyIdentifier, sortedAffiliate, winkVersion);
}
/**
* Update WinkLinks Category
* Updates an existing syndication category.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Create category for this owner identifier.
* @param syndicationCategoryIdentifier Syndication category identifier.
* @param upsertSyndicationCategoryAffiliate Request body
* @param winkVersion The winkVersion parameter
* @return SyndicationCategoryAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec updateSyndicationCategoryRequestCreation(String companyIdentifier, String syndicationCategoryIdentifier, UpsertSyndicationCategoryAffiliate upsertSyndicationCategoryAffiliate, String winkVersion) throws WebClientResponseException {
Object postBody = upsertSyndicationCategoryAffiliate;
// verify the required parameter 'companyIdentifier' is set
if (companyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling updateSyndicationCategory", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'syndicationCategoryIdentifier' is set
if (syndicationCategoryIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'syndicationCategoryIdentifier' when calling updateSyndicationCategory", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'upsertSyndicationCategoryAffiliate' is set
if (upsertSyndicationCategoryAffiliate == null) {
throw new WebClientResponseException("Missing the required parameter 'upsertSyndicationCategoryAffiliate' when calling updateSyndicationCategory", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("companyIdentifier", companyIdentifier);
pathParams.put("syndicationCategoryIdentifier", syndicationCategoryIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/affiliate/{companyIdentifier}/syndication/category/{syndicationCategoryIdentifier}", HttpMethod.PUT, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Update WinkLinks Category
* Updates an existing syndication category.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Create category for this owner identifier.
* @param syndicationCategoryIdentifier Syndication category identifier.
* @param upsertSyndicationCategoryAffiliate Request body
* @param winkVersion The winkVersion parameter
* @return SyndicationCategoryAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono updateSyndicationCategory(String companyIdentifier, String syndicationCategoryIdentifier, UpsertSyndicationCategoryAffiliate upsertSyndicationCategoryAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return updateSyndicationCategoryRequestCreation(companyIdentifier, syndicationCategoryIdentifier, upsertSyndicationCategoryAffiliate, winkVersion).bodyToMono(localVarReturnType);
}
/**
* Update WinkLinks Category
* Updates an existing syndication category.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Create category for this owner identifier.
* @param syndicationCategoryIdentifier Syndication category identifier.
* @param upsertSyndicationCategoryAffiliate Request body
* @param winkVersion The winkVersion parameter
* @return ResponseEntity<SyndicationCategoryAffiliate>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> updateSyndicationCategoryWithHttpInfo(String companyIdentifier, String syndicationCategoryIdentifier, UpsertSyndicationCategoryAffiliate upsertSyndicationCategoryAffiliate, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return updateSyndicationCategoryRequestCreation(companyIdentifier, syndicationCategoryIdentifier, upsertSyndicationCategoryAffiliate, winkVersion).toEntity(localVarReturnType);
}
/**
* Update WinkLinks Category
* Updates an existing syndication category.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Create category for this owner identifier.
* @param syndicationCategoryIdentifier Syndication category identifier.
* @param upsertSyndicationCategoryAffiliate Request body
* @param winkVersion The winkVersion parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec updateSyndicationCategoryWithResponseSpec(String companyIdentifier, String syndicationCategoryIdentifier, UpsertSyndicationCategoryAffiliate upsertSyndicationCategoryAffiliate, String winkVersion) throws WebClientResponseException {
return updateSyndicationCategoryRequestCreation(companyIdentifier, syndicationCategoryIdentifier, upsertSyndicationCategoryAffiliate, winkVersion);
}
/**
* Update WinkLinks Entry
* Updates an existing syndication entry.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param companyIdentifier Create entry for this owner identifier.
* @param syndicationEntryIdentifier Syndication entry identifier.
* @param upsertSyndicationEntryAffiliate Request body
* @param winkVersion The winkVersion parameter
* @return SyndicationEntryAffiliate
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec updateSyndicationEntryRequestCreation(String companyIdentifier, String syndicationEntryIdentifier, UpsertSyndicationEntryAffiliate upsertSyndicationEntryAffiliate, String winkVersion) throws WebClientResponseException {
Object postBody = upsertSyndicationEntryAffiliate;
// verify the required parameter 'companyIdentifier' is set
if (companyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling updateSyndicationEntry", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'syndicationEntryIdentifier' is set
if (syndicationEntryIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'syndicationEntryIdentifier' when calling updateSyndicationEntry", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'upsertSyndicationEntryAffiliate' is set
if (upsertSyndicationEntryAffiliate == null) {
throw new WebClientResponseException("Missing the required parameter 'upsertSyndicationEntryAffiliate' when calling updateSyndicationEntry", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("companyIdentifier", companyIdentifier);
pathParams.put("syndicationEntryIdentifier", syndicationEntryIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap