Interface MarketoClient
-
public interface MarketoClientA client for interacting with Marketo's API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetApiToken(MarketoClientConfiguration config)Retrieve an API token used for interacting with the Marketo API.List<MarketoField>getFields(MarketoClientConfiguration config)Retrieve all of the available forms from the current organization in Marketo.List<MarketoForm>getForms(MarketoClientConfiguration config)Retrieve all of the available forms from the current organization in Marketo.
-
-
-
Method Detail
-
getApiToken
@Nonnull String getApiToken(@Nonnull MarketoClientConfiguration config) throws IOException
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 token
-
getForms
@Nonnull List<MarketoForm> getForms(@Nonnull MarketoClientConfiguration config) throws IOException
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 API
-
getFields
@Nonnull List<MarketoField> getFields(@Nonnull MarketoClientConfiguration config) throws IOException
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 API
-
-