All Downloads are FREE. Search and download functionalities are using the official Maven repository.

travel.wink.sdk.affiliate.syndication.api.SyndicationPublisherApi Maven / Gradle / Ivy

The newest version!
package travel.wink.sdk.affiliate.syndication.api;

import travel.wink.sdk.affiliate.syndication.invoker.ApiClient;

import travel.wink.sdk.affiliate.syndication.model.ConsumeExternalUrlRequestAffiliate;
import travel.wink.sdk.affiliate.syndication.model.GenericErrorMessage;
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 = "2025-01-02T16:41:57.763280625+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 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(ConsumeExternalUrlRequestAffiliate consumeExternalUrlRequestAffiliate, String winkVersion) throws WebClientResponseException { Object postBody = consumeExternalUrlRequestAffiliate; // 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(); 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/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 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(ConsumeExternalUrlRequestAffiliate consumeExternalUrlRequestAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return consumeExternalUrlForSyndicationEntryRequestCreation(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 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(ConsumeExternalUrlRequestAffiliate consumeExternalUrlRequestAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return consumeExternalUrlForSyndicationEntryRequestCreation(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 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(ConsumeExternalUrlRequestAffiliate consumeExternalUrlRequestAffiliate, String winkVersion) throws WebClientResponseException { return consumeExternalUrlForSyndicationEntryRequestCreation(consumeExternalUrlRequestAffiliate, winkVersion); } /** * Create WinkLinks Category * Creates a new syndication category. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

201 - Created * @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(UpsertSyndicationCategoryAffiliate upsertSyndicationCategoryAffiliate, String winkVersion) throws WebClientResponseException { Object postBody = upsertSyndicationCategoryAffiliate; // 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(); 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/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 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(UpsertSyndicationCategoryAffiliate upsertSyndicationCategoryAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createSyndicationCategoryRequestCreation(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 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(UpsertSyndicationCategoryAffiliate upsertSyndicationCategoryAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createSyndicationCategoryRequestCreation(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 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(UpsertSyndicationCategoryAffiliate upsertSyndicationCategoryAffiliate, String winkVersion) throws WebClientResponseException { return createSyndicationCategoryRequestCreation(upsertSyndicationCategoryAffiliate, winkVersion); } /** * Create WinkLinks Entry * Creates a new syndication entry. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

201 - Created * @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(UpsertSyndicationEntryAffiliate upsertSyndicationEntryAffiliate, String winkVersion) throws WebClientResponseException { Object postBody = upsertSyndicationEntryAffiliate; // 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(); 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/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 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(UpsertSyndicationEntryAffiliate upsertSyndicationEntryAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createSyndicationEntryRequestCreation(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 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(UpsertSyndicationEntryAffiliate upsertSyndicationEntryAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createSyndicationEntryRequestCreation(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 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(UpsertSyndicationEntryAffiliate upsertSyndicationEntryAffiliate, String winkVersion) throws WebClientResponseException { return createSyndicationEntryRequestCreation(upsertSyndicationEntryAffiliate, winkVersion); } /** * Delete WinkLinks Category * Deletes a syndication category. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @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 removeSyndicationCategoryRequestCreation(String syndicationCategoryIdentifier, String winkVersion, String accept) throws WebClientResponseException { Object postBody = 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("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/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 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 removeSyndicationCategory(String syndicationCategoryIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return removeSyndicationCategoryRequestCreation(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 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> removeSyndicationCategoryWithHttpInfo(String syndicationCategoryIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return removeSyndicationCategoryRequestCreation(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 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 syndicationCategoryIdentifier, String winkVersion, String accept) throws WebClientResponseException { return removeSyndicationCategoryRequestCreation(syndicationCategoryIdentifier, winkVersion, accept); } /** * Delete WinkLinks Entry * Deletes a syndication entry. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @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 removeSyndicationEntryRequestCreation(String syndicationEntryIdentifier, String winkVersion, String accept) throws WebClientResponseException { Object postBody = 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("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/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 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 removeSyndicationEntry(String syndicationEntryIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return removeSyndicationEntryRequestCreation(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 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> removeSyndicationEntryWithHttpInfo(String syndicationEntryIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return removeSyndicationEntryRequestCreation(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 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 syndicationEntryIdentifier, String winkVersion, String accept) throws WebClientResponseException { return removeSyndicationEntryRequestCreation(syndicationEntryIdentifier, winkVersion, accept); } /** * Show WinkLinks Category * Retrieve syndication category. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @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 syndicationCategoryIdentifier, String winkVersion, String accept) throws WebClientResponseException { Object postBody = 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("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/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 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 syndicationCategoryIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showSyndicationCategoryRequestCreation(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 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 syndicationCategoryIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showSyndicationCategoryRequestCreation(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 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 syndicationCategoryIdentifier, String winkVersion, String accept) throws WebClientResponseException { return showSyndicationCategoryRequestCreation(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 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 winkVersion, String accept) throws WebClientResponseException { Object postBody = null; // create path and map variables final Map pathParams = new HashMap(); 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/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 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 winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showSyndicationCategoryListRequestCreation(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 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 winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showSyndicationCategoryListRequestCreation(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 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 winkVersion, String accept) throws WebClientResponseException { return showSyndicationCategoryListRequestCreation(winkVersion, accept); } /** * Show WinkLinks Entry * Retrieve syndication entry. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @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 syndicationEntryIdentifier, String winkVersion, String accept) throws WebClientResponseException { Object postBody = 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("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/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 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 syndicationEntryIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showSyndicationEntryRequestCreation(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 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 syndicationEntryIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showSyndicationEntryRequestCreation(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 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 syndicationEntryIdentifier, String winkVersion, String accept) throws WebClientResponseException { return showSyndicationEntryRequestCreation(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 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 winkVersion, String accept) throws WebClientResponseException { Object postBody = null; // create path and map variables final Map pathParams = new HashMap(); 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/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 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 winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showSyndicationEntryListRequestCreation(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 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 winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showSyndicationEntryListRequestCreation(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 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 winkVersion, String accept) throws WebClientResponseException { return showSyndicationEntryListRequestCreation(winkVersion, accept); } /** * Show WinkLinks Settings * Load WinkLinks settings. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @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 winkVersion, String accept) throws WebClientResponseException { Object postBody = null; // create path and map variables final Map pathParams = new HashMap(); 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/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 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 winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showSyndicationSettingsRequestCreation(winkVersion, accept).bodyToMono(localVarReturnType); } /** * Show WinkLinks Settings * Load WinkLinks settings. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @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 winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showSyndicationSettingsRequestCreation(winkVersion, accept).toEntity(localVarReturnType); } /** * Show WinkLinks Settings * Load WinkLinks settings. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @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 winkVersion, String accept) throws WebClientResponseException { return showSyndicationSettingsRequestCreation(winkVersion, accept); } /** * Sort WinkLink Entries * Re-sorts all list entries. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param sortedAffiliate List if ids and their new sort slot * @param winkVersion The winkVersion parameter * @return List<SyndicationEntryAffiliate> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec sortSyndicationEntryListRequestCreation(List sortedAffiliate, String winkVersion) throws WebClientResponseException { Object postBody = sortedAffiliate; // 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(); 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/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 sortedAffiliate List if ids and their new sort slot * @param winkVersion The winkVersion parameter * @return List<SyndicationEntryAffiliate> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux sortSyndicationEntryList(List sortedAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return sortSyndicationEntryListRequestCreation(sortedAffiliate, winkVersion).bodyToFlux(localVarReturnType); } /** * Sort WinkLink Entries * Re-sorts all list entries. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param sortedAffiliate List if ids and their new sort slot * @param winkVersion The winkVersion parameter * @return ResponseEntity<List<SyndicationEntryAffiliate>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono>> sortSyndicationEntryListWithHttpInfo(List sortedAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return sortSyndicationEntryListRequestCreation(sortedAffiliate, winkVersion).toEntityList(localVarReturnType); } /** * Sort WinkLink Entries * Re-sorts all list entries. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @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(List sortedAffiliate, String winkVersion) throws WebClientResponseException { return sortSyndicationEntryListRequestCreation(sortedAffiliate, winkVersion); } /** * Update WinkLinks Category * Updates an existing syndication category. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @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 syndicationCategoryIdentifier, UpsertSyndicationCategoryAffiliate upsertSyndicationCategoryAffiliate, String winkVersion) throws WebClientResponseException { Object postBody = upsertSyndicationCategoryAffiliate; // 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("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/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 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 syndicationCategoryIdentifier, UpsertSyndicationCategoryAffiliate upsertSyndicationCategoryAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updateSyndicationCategoryRequestCreation(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 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 syndicationCategoryIdentifier, UpsertSyndicationCategoryAffiliate upsertSyndicationCategoryAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updateSyndicationCategoryRequestCreation(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 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 syndicationCategoryIdentifier, UpsertSyndicationCategoryAffiliate upsertSyndicationCategoryAffiliate, String winkVersion) throws WebClientResponseException { return updateSyndicationCategoryRequestCreation(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 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 syndicationEntryIdentifier, UpsertSyndicationEntryAffiliate upsertSyndicationEntryAffiliate, String winkVersion) throws WebClientResponseException { Object postBody = upsertSyndicationEntryAffiliate; // 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("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)); 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/syndication/entry/{syndicationEntryIdentifier}", HttpMethod.PUT, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Update WinkLinks Entry * Updates an existing syndication entry. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @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 */ public Mono updateSyndicationEntry(String syndicationEntryIdentifier, UpsertSyndicationEntryAffiliate upsertSyndicationEntryAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updateSyndicationEntryRequestCreation(syndicationEntryIdentifier, upsertSyndicationEntryAffiliate, winkVersion).bodyToMono(localVarReturnType); } /** * Update WinkLinks Entry * Updates an existing syndication entry. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param syndicationEntryIdentifier Syndication entry 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> updateSyndicationEntryWithHttpInfo(String syndicationEntryIdentifier, UpsertSyndicationEntryAffiliate upsertSyndicationEntryAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updateSyndicationEntryRequestCreation(syndicationEntryIdentifier, upsertSyndicationEntryAffiliate, winkVersion).toEntity(localVarReturnType); } /** * Update WinkLinks Entry * Updates an existing syndication entry. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param syndicationEntryIdentifier Syndication entry 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 updateSyndicationEntryWithResponseSpec(String syndicationEntryIdentifier, UpsertSyndicationEntryAffiliate upsertSyndicationEntryAffiliate, String winkVersion) throws WebClientResponseException { return updateSyndicationEntryRequestCreation(syndicationEntryIdentifier, upsertSyndicationEntryAffiliate, winkVersion); } /** * Upsert WinkLinks Settings * Upsert a new syndication settings. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param upsertSyndicationSettingsAffiliate Request body * @param winkVersion The winkVersion parameter * @return SyndicationSettingsAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec upsertSyndicationSettingsRequestCreation(UpsertSyndicationSettingsAffiliate upsertSyndicationSettingsAffiliate, String winkVersion) throws WebClientResponseException { Object postBody = upsertSyndicationSettingsAffiliate; // verify the required parameter 'upsertSyndicationSettingsAffiliate' is set if (upsertSyndicationSettingsAffiliate == null) { throw new WebClientResponseException("Missing the required parameter 'upsertSyndicationSettingsAffiliate' when calling upsertSyndicationSettings", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); 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/syndication/settings", HttpMethod.PUT, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Upsert WinkLinks Settings * Upsert a new syndication settings. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param upsertSyndicationSettingsAffiliate Request body * @param winkVersion The winkVersion parameter * @return SyndicationSettingsAffiliate * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono upsertSyndicationSettings(UpsertSyndicationSettingsAffiliate upsertSyndicationSettingsAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return upsertSyndicationSettingsRequestCreation(upsertSyndicationSettingsAffiliate, winkVersion).bodyToMono(localVarReturnType); } /** * Upsert WinkLinks Settings * Upsert a new syndication settings. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param upsertSyndicationSettingsAffiliate Request body * @param winkVersion The winkVersion parameter * @return ResponseEntity<SyndicationSettingsAffiliate> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> upsertSyndicationSettingsWithHttpInfo(UpsertSyndicationSettingsAffiliate upsertSyndicationSettingsAffiliate, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return upsertSyndicationSettingsRequestCreation(upsertSyndicationSettingsAffiliate, winkVersion).toEntity(localVarReturnType); } /** * Upsert WinkLinks Settings * Upsert a new syndication settings. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param upsertSyndicationSettingsAffiliate Request body * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec upsertSyndicationSettingsWithResponseSpec(UpsertSyndicationSettingsAffiliate upsertSyndicationSettingsAffiliate, String winkVersion) throws WebClientResponseException { return upsertSyndicationSettingsRequestCreation(upsertSyndicationSettingsAffiliate, winkVersion); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy