Skip to content

JordanRClark/replyapp-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReplyApp Python wrapper for Python 3.

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.

Installation:

pip install replyapp-python

Examples:

from replyapp import ReplyApp
ra = ReplyApp('Api_Key')

Actions:

#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]'})

People

#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')

Campaigns

#Listing campaigns
ra.campaigns()

#Getting Campaigns
ra.campaigns.{{ID}}()
ra.campaigns(data={'name': 'Name Of Campaigns'})

Email Accounts

#Listing Email Accounts
ra.emailAccounts()

About

ReplyApp python 3 wrapper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages