Interface MarketoClient
public interface MarketoClient
A client for interacting with Marketo's API.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve an API token used for interacting with the Marketo API.getFields(MarketoClientConfiguration config) Retrieve all of the available forms from the current organization in Marketo.getForms(MarketoClientConfiguration config) Retrieve all of the available forms from the current organization in Marketo.org.apache.http.impl.client.CloseableHttpClientRetrieve a HttpClient for interacting with the Marketo API
-
Method Details
-
getApiToken
Retrieve an API token used for interacting with the Marketo API.- Parameters:
config- the configuration to use to retrieve the token- Returns:
- a valid Marketo API Token
- Throws:
IOException- an error occurs retrieving the tokenMarketoApiException
-
getHttpClient
Retrieve a HttpClient for interacting with the Marketo API- Returns:
- the httpclient
-
getForms
@Nonnull List<MarketoForm> getForms(@Nonnull MarketoClientConfiguration config) throws MarketoApiException Retrieve all of the available forms from the current organization in Marketo.- Parameters:
config- the configuration for this request- Returns:
- the full list of available forms
- Throws:
IOException- an exception occurs interacting with the APIMarketoApiException
-
getFields
@Nonnull List<MarketoField> getFields(@Nonnull MarketoClientConfiguration config) throws MarketoApiException Retrieve all of the available forms from the current organization in Marketo.- Parameters:
config- the configuration for this request- Returns:
- the full list of available forms
- Throws:
IOException- an exception occurs interacting with the APIMarketoApiException
-