This repository has been archived by the owner on Feb 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Campaigns API Endpoints
JaymeP edited this page Feb 10, 2022
·
6 revisions
These APIs access information in the campaigns
table.
/api/campaigns/:campaignId
Example query: https://murmuring-headland-63935.herokuapp.com/api/campaigns/4
A JSON object with information for a single, specific campaign identified by id
.
Example return object:
{
"campaign": {
"id": 1,
"organization": "M4BL",
"name": "The Breath Act",
"cause": "Civic Rights",
"type": "Grant",
"page_url": "www.thebreatheact.org",
"letters_sent": 0
}
}
GET /api/campaigns
Example query: https://murmuring-headland-63935.herokuapp.com/api/campaigns
An array of JSON objects with information for each campaign in the campaigns
table.
Example return object:
{
"Campaigns": [
{
"id": 1,
"organization": "M4BL",
"name": "The Breath Act",
"cause": "Civic Rights",
"type": "Grant",
"page_url": "www.thebreatheact.org",
"letters_sent": 0
},
{
"id": 2,
"organization": "AAAJ",
"name": "AAAJ",
"cause": "Education",
"type": "Accelerator",
"page_url": "www.aaaj.org",
"letters_sent": 0
}
]
}
POST /api/campaigns
- Home
- API Quick Reference
- Amplify API reference
- Lob Mailing API integration
- Stripe API integration