public interface SnippetsApi
| Modifier and Type | Method and Description |
|---|---|
DeleteSnippetResponse |
deleteSnippet(String siteId)
Removes your snippet from a Square Online site.
|
CompletableFuture<DeleteSnippetResponse> |
deleteSnippetAsync(String siteId)
Removes your snippet from a Square Online site.
|
RetrieveSnippetResponse |
retrieveSnippet(String siteId)
Retrieves your snippet from a Square Online site.
|
CompletableFuture<RetrieveSnippetResponse> |
retrieveSnippetAsync(String siteId)
Retrieves your snippet from a Square Online site.
|
UpsertSnippetResponse |
upsertSnippet(String siteId,
UpsertSnippetRequest body)
Adds a snippet to a Square Online site or updates the existing snippet on the site.
|
CompletableFuture<UpsertSnippetResponse> |
upsertSnippetAsync(String siteId,
UpsertSnippetRequest body)
Adds a snippet to a Square Online site or updates the existing snippet on the site.
|
DeleteSnippetResponse deleteSnippet(String siteId) throws ApiException, IOException
siteId - Required parameter: The ID of the site that contains the snippet.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<DeleteSnippetResponse> deleteSnippetAsync(String siteId)
siteId - Required parameter: The ID of the site that contains the snippet.RetrieveSnippetResponse retrieveSnippet(String siteId) throws ApiException, IOException
siteId - Required parameter: The ID of the site that contains the snippet.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<RetrieveSnippetResponse> retrieveSnippetAsync(String siteId)
siteId - Required parameter: The ID of the site that contains the snippet.UpsertSnippetResponse upsertSnippet(String siteId, UpsertSnippetRequest body) throws ApiException, IOException
siteId - Required parameter: The ID of the site where you want to add or update the
snippet.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<UpsertSnippetResponse> upsertSnippetAsync(String siteId, UpsertSnippetRequest body)
siteId - Required parameter: The ID of the site where you want to add or update the
snippet.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.Copyright © 2022. All rights reserved.