In order to run tests, it's necessary to have an access token (can be obtained from the dashboard), a machine, an email sequence, a lead and a tag registered (can be done via dashboard). After that, add the following environment variables to the file tests/settings.local.php
.
putenv('TOKEN=your_access_token');
putenv('MACHINE_CODE=your_machine_code');
putenv('SEQUENCE_CODE=your_sequence_code');
putenv('LEAD_EMAIL=your_lead_email');
putenv('LEAD_CODE=your_lead_code');
putenv('TAG_ID=your_tag_id');
- EmailSequences - Retrieve email sequence collection - http://apill.azurewebsites.net/#operation/EmailSequences_Get
- Levels - Retrieve levels from email sequence - http://apill.azurewebsites.net/webapi/Levels
- Lead - Remove lead from sequence/funnel - http://apill.azurewebsites.net/webapi/Lead/Funnel
- Lead - Retrieve a lead by email - http://apill.azurewebsites.net/webapi/Lead
- Lead - Update and if needed insert lead data
- Lead - Insert a new lead - http://apill.azurewebsites.net/webapi/Lead
- Lead - Remove lead from machine - http://apill.azurewebsites.net/webapi/Lead
- Lead - Update lead data
- LeadLocation - Retrieve lead location - http://apill.azurewebsites.net/webapi/LeadLocation
- LeadLocation - Move lead location - http://apill.azurewebsites.net/webapi/LeadLocation
- Score - Add score to lead - http://apill.azurewebsites.net/webapi/Score
- Forms - Retrieve machine forms collection - http://apill.azurewebsites.net/webapi/Forms
- Machines - Retrieve machines from account - http://apill.azurewebsites.net/webapi/Machines
- Machines - Retrieve machine info by id - http://apill.azurewebsites.net/webapi/Machines
- Pages - Retrieve machine pages collection - http://apill.azurewebsites.net/webapi/Pages
- Pages - Update page data
- Tag - Retrieve list of lead tags - http://apill.azurewebsites.net/webapi/Tag/Lead
- Tag - Add tag to a lead by phone
- Tag - Add tag to a lead - http://apill.azurewebsites.net/webapi/Tag
- Tag - Delete tag from a lead - http://apill.azurewebsites.net/webapi/Tag
- TagChecker - Check if tag is from user - http://apill.azurewebsites.net/webapi/TagChecker
- Tags - Get a tag collection from user - http://apill.azurewebsites.net/webapi/Tags
- Tags - Update user tag
- Tags - Create user tag
- Tags - Delete user tag
- User - Retrieve user account data - http://apill.azurewebsites.net/webapi/ListDataAccount
- User - Get user code - http://apill.azurewebsites.net/webapi/UserCode
- User - Get user information - http://apill.azurewebsites.net/webapi/User
API | Dashboard |
---|---|
EmailSequence | Funnel |