This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl https://vrapi.verticalresponse.com/api/v1/contacts | |
| -H "Authorization: Bearer tndttwx95dsdfsfsfskvc" | |
| -H "Content-Type:application/json" | |
| --request POST --data | |
| '{"email":"albusd@verticalresponse.com","first_name":"Albus"}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'contact' | |
| VerticalResponse::API::Contact.create( | |
| { | |
| :email => 'albusd@verticalresponse.com', | |
| :first_name => 'Albus', | |
| :last_name => 'Dumbledore' | |
| } | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl https://vrapi.verticalresponse.com/api/v1/contacts/1099513934856 | |
| -H "Authorization: Bearer tndttwx95dsdfsfsfskvc" | python -mjson.tool |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl https://vrapi.verticalresponse.com/api/v1/lists | |
| -H "Authorization: Bearer tndttwx95dsdfsfsfskvc" | |
| -H "Content-Type:application/json" | |
| --request POST --data '{"name":"Dumbledore Army List"}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl https://vrapi.verticalresponse.com/api/v1/lists/1099511658997?type=all | |
| -H "Authorization: Bearer tndttwx95dsdfsfsfskvc" | python -mjson.tool |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl https://vrapi.verticalresponse.com/api/v1/lists/1099511658997/contacts | |
| -H "Authorization: Bearer tndttwx95dsdfsfsfskvc" | |
| -H "Content-Type:application/json" | |
| --request POST --data '{"email":" sblack@test.com "}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl https://vrapi.verticalresponse.com/api/v1/lists/1099511658997/contacts | |
| -H "Authorization: Bearer tndttwx95dsdfsfsfskvc" | |
| -H "Content-Type:application/json" | |
| --request POST --data '{"email":"fweasley@verticalresponse.com", "first_name":"Fred", "last_name":"Weasley"}' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl https://vrapi.verticalresponse.com/api/v1/messages/emails | |
| -H "Content-Type:application/json" | |
| -H "Authorization: Bearer tndttwx95dsdfsfsfskvc" | |
| --request POST --data '{"name":"My Email Campaign for January", | |
| "subject":"Exciting new deals in January","message":"Our inventory is overstock and now half price.", | |
| "company":"My Company", | |
| "from_address":info@mycompany.com, | |
| "from_label":"My Company", | |
| "message":"We have lots of great stuff for sale now…", | |
| "postal_address":"1234 Main Street. Seattle WA." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl https://vrapi.verticalresponse.com/api/v1/messages/emails/1099511656162 | |
| -H "Authorization: Bearer tndttwx95dsdfsfsfskvc" | |
| -H "Content-Type:application/json" | |
| --request POST --data '{"list_ids":["1099511658955"]}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'email' | |
| email = VerticalResponse::API::Email.find(<Email ID>) | |
| email.launch( | |
| { | |
| :list_ids => [ <List IDs to send email to> ] | |
| } | |
| ) |
OlderNewer