A simple async client for the Decipher API
npm install --save decipher-api-client
- Import your module
- Initialize module with your API_KEY(Mandatory) and headers(Optional)
- Send your request
const decipher = require('decipher-api-client')
decipher.initialize({api_key:'YOUR_API_KEY',headers:{'OPTIONAL HEADERS'}})
decipher.get().users()
List of Implemented API endpoints
surveyData(surveyID required,params optional)
decipher.get().surveyData('12/123',{format:'json',fields:'email,ipAddress',cond:'qualified'})
users(params optional)
decipher.get().users()
decipher.get().companies()
companySurveys(companyID optional Defaults to 'all')
decipher.get().companySurveys()
bounced(params required) -can pass in as an array of emails ['email1,email2'] or object {emails:['email1,email2']}
decipher.post().bounced({emails:['email1,email2']})
TBD
TBD
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning.