ReplyApp: http://replyapp.io
ReplyApp api docs: http://support.replyapp.io/category/46-api
This api utilizes the python __getattr__
and __call__
functions to make requests from dot-notation.
pip install replyapp-python
from replyapp import ReplyApp
ra = ReplyApp('Api_Key')
#Mark person as replied
ra.actions.markasreplied(method='POST', data={'email': '[email protected]'})
ra.actions.markasreplied(method='POST', data={'domain': 'company.com'})
#Push person to the campaign
ra.actions.pushtocampaign(method='POST', data={'campaignId': 121, 'email': '[email protected]'})
#Add person and push to campaign
data = {
"campaignId": 121,
"email": "[email protected]",
"firstName": "James",
"lastName": "Smith",
"company": "Global Tech",
"city": "San Francisco",
"state": "CA",
"country": "US",
"title": "VP off Marketing"
}
ra.actions.addandpushtocampaign(method='POST', data=data)
#Remove person from campaign by Id
ra.actions.removepersonfromcampaignbyid(method='POST', data={'campaignId': 121, 'email': '[email protected]'})
#Remove person from all campaigns
ra.actions.removepersonfromallcampaigns(method='POST', data={'email': '[email protected]'})
#Listing people
ra.people()
#Getting people from id
ra.people.{{ID}}()
#Getting people from email
ra.people(data={'email': '[email protected]'})
#Saving people
ra.people(method='POST', data={'id': 2232, 'email': [email protected]', 'firstName': 'James', 'lastName': 'Smith', 'company': 'Global Tech', 'title': 'VP of Marketing'})
#Deleting people
ra.people(method='DELETE', data={'email': '[email protected]'})
ra.people.{{ID}}(method='DELETE')
#Listing campaigns
ra.campaigns()
#Getting Campaigns
ra.campaigns.{{ID}}()
ra.campaigns(data={'name': 'Name Of Campaigns'})
#Listing Email Accounts
ra.emailAccounts()