Skip to content

Instantly share code, notes, and snippets.

https://vrapi.verticalresponse.com/api/v1/messages/emails/8796093022831/stats/bounces
-H "Authorization: Bearer tndttwx95skdhfjsdhfnk8w8kvc" | python -mjson.tool
https://vrapi.verticalresponse.com/api/v1/contacts?status=bounced
-H "Authorization: Bearer tndttwx95dy52mfxnk8w8kvc" | python -mjson.tool
require 'list'
list = VerticalResponse::API::List.find(<List ID>)
list.stats
require 'contact'
# List all active contacts
VerticalResponse::API::Contact.all({ :status => 'active' })
# List all inactive contacts (bounced and unsubscribed)
VerticalResponse::API::Contact.all({ :status => 'inactive' })
# List bounced contacts only
VerticalResponse::API::Contact.all({ :status => 'bounced' })
curl https://vrapi.verticalresponse.com/api/v1/contacts?status=active
-H "Authorization: Bearer tndttwx95dy52mfxnk8w8kvc" | python -mjson.tool
{
"url": "https://vrapi.verticalresponse.com/api/v1/contacts?status=active",
"items": [
{
"url": "https://vrapi.verticalresponse.com/api/v1/contacts/8796093022211",
"attributes": {
"id": 8796093022211,
"first_name": "Harry",
"last_name": "Potter",
"email": "hpotter@verticalresponse.com",
{
"url": "https://vrapi.verticalresponse.com/api/v1/messages/emails/8796093022831/stats/bounces",
"items": [],
"success": {
"code": 200,
"message": "Email has no bounced contacts."
},
"links": {
"up": {
"url": "https://vrapi.verticalresponse.com/api/v1/messages/emails/8796093022831/stats"
{
"url": "https://vrapi.verticalresponse.com/api/v1/messages/emails/8796093022831/stats/clicks",
"items": [
{
"attributes": {
"url": "http://youtu.be/2jdKJWJkZsQ",
"click_count": "2",
"unique_count": "2"
}
},
{
"url": "https://vrapi.verticalresponse.com/api/v1/messages?message_type=email",
"items": [
{
"url": "https://vrapi.verticalresponse.com/api/v1/messages/emails/8796093022506",
"attributes": {
"id": 8796093022506,
"name": "",
"subject": null,
"status": "draft",
curl https://vrapi.verticalresponse.com/api/v1/messages?message_type=email
-H "Authorization: Bearer tndttwxsdfk32fxnk8w8kvc" | python -mjson.tool