public class HubSpotClientImpl extends Object implements HubSpotClient
Constructor and Description |
---|
HubSpotClientImpl(String urlAPI,
String urlAuth,
String APIVersion,
String clientId,
String hubId,
String scope,
String callbackUrl) |
public String authenticate(String userId, Map<String,Object> headers) throws HubSpotConnectorException
authenticate
in interface HubSpotClient
HubSpotConnectorException
public ContactList getAllContacts(String accessToken, String userId, String count, String contactOffset) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
getAllContacts
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public ContactList getRecentContacts(String accessToken, String userId, String count, String timeOffset, String contactOffset) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
getRecentContacts
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public Contact getContactById(String accessToken, String userId, String contactId) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
getContactById
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public Contact getContactByEmail(String accessToken, String userId, String contactEmail) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
getContactByEmail
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public Contact getContactByUserToken(String accessToken, String userId, String contactUserToken) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
getContactByUserToken
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public ContactQuery getContactsByQuery(String accessToken, String userId, String query, String count) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
getContactsByQuery
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public ContactDeleted deleteContact(String accessToken, String userId, String contactId) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
deleteContact
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public void updateContact(String accessToken, String userId, String contactId, ContactProperties contactProperties) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
updateContact
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public Contact createContact(String accessToken, String userId, ContactProperties contactProperties) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
createContact
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public ContactStatistics getContactStatistics(String accessToken, String userId) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
getContactStatistics
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public HubSpotListLists getContactsLists(String accessToken, String userId, String count, String offset) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
getContactsLists
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public HubSpotList getContactListById(String accessToken, String userId, String listId) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
getContactListById
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public HubSpotListLists getDynamicContactLists(String accessToken, String userId, String count, String offset) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
getDynamicContactLists
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public ContactList getContactsInAList(String accessToken, String userId, String listId, String count, String property, String offset) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
getContactsInAList
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public EmailSubscription getEmailSubscriptions(String accessToken, String userId, String hubId) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
getEmailSubscriptions
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public EmailSubscriptionStatus getEmailSubscriptionStatus(String accessToken, String userId, String hubId, String email) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
getEmailSubscriptionStatus
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public EmailSubscriptionStatusResult updateEmailSubscriptionStatus(String accessToken, String userId, String hubId, String email, List<EmailSubscriptionStatusStatuses> statuses) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
updateEmailSubscriptionStatus
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public EmailSubscriptionStatusResult updateEmailSubscriptionStatusUnsubscribeFromAll(String accessToken, String userId, String hubId, String email) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
public List<CustomContactProperty> getAllCustomProperties(String accessToken, String userId) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
getAllCustomProperties
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public CustomContactProperty createCustomProperty(String accessToken, String userId, CustomContactProperty contactProperty) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
createCustomProperty
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public CustomContactProperty updateCustomProperty(String accessToken, String userId, String propertyName, CustomContactProperty contactProperty) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
updateCustomProperty
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public void deleteCustomProperty(String accessToken, String userId, String contactPropertyName) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
deleteCustomProperty
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public CustomContactPropertyGroup getCustomPropertyGroup(String accessToken, String userId, String groupName) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
getCustomPropertyGroup
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public CustomContactPropertyGroup createCustomPropertyGroup(String accessToken, String userId, CustomContactPropertyGroup customContactPropertyGroup) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
createCustomPropertyGroup
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public CustomContactPropertyGroup updateCustomPropertyGroup(String accessToken, String userId, String groupName, CustomContactPropertyGroup customContactPropertyGroup) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
updateCustomPropertyGroup
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public HubSpotListAddContactToListResponse addExistingContactInAList(String accessToken, String userId, String listId, String contactId) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
addExistingContactInAList
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public HubSpotList createContactList(String accessToken, String userId, HubSpotNewList list, List<HubSpotListFilters> filters) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
createContactList
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public void deleteCustomPropertyGroup(String accessToken, String userId, String groupName) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
deleteCustomPropertyGroup
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
public void refreshToken(HubSpotCredentialsManager objectStoreCredentials, String userId) throws HubSpotConnectorException, HubSpotConnectorNoAccessTokenException, HubSpotConnectorAccessTokenExpiredException
refreshToken
in interface HubSpotClient
HubSpotConnectorException
HubSpotConnectorNoAccessTokenException
HubSpotConnectorAccessTokenExpiredException
Copyright © 2010–2016. All rights reserved.