Email lists
List all email lists
- GET /fast-events/v1/admin/emaillists
List all email lists across the authorized events.
Optional query parameters
- _fields
A comma separated string of fields included in the response. For example
event_id,total
.
Example request
$ curl \ -H "X-FE-API-KEY: 3zo58AUYP9zOE6YT" \ -H "Content-Type: application/json" \ -u "test:4ZAN O5OY OAvZ FZb2 Lslv JnJG" \ https://exampledomain.com/wp-json/fast-events/v1/admin/emaillists
<?php $ch = curl_init(); $url = 'https://exampledomain.com/wp-json/fast-events/v1/admin/emaillists'; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, 'test:4ZAN O5OY OAvZ FZb2 Lslv JnJG'); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'X-FE-API-KEY: 3zo58AUYP9zOE6YT') ); $result = curl_exec($ch); echo $result;
import requests from requests.auth import HTTPBasicAuth URL = 'https://exampledomain.com/wp-json/fast-events/v1/admin/emaillists' HEADERS = {'X-FE-API-KEY':'3zo58AUYP9zOE6YT'} AUTH = HTTPBasicAuth('test', '4ZAN O5OY OAvZ FZb2 Lslv JnJG') response = requests.get(URL, headers=HEADERS, auth=AUTH) print(response.json())
Example response
[ { "event_id": 10, "total": 212, "_links": { "self": [ { "href": "https://vinyl-openair.com/wp-json/fast-events/v1/admin/emaillists/10" } ], "collection": [ { "href": "https://vinyl-openair.com/wp-json/fast-events/v1/admin/emaillists" } ] } }, { "event_id": 14, "total": 949, "_links": { "self": [ { "href": "https://vinyl-openair.com/wp-json/fast-events/v1/admin/emaillists/14" } ], "collection": [ { "href": "https://vinyl-openair.com/wp-json/fast-events/v1/admin/emaillists" } ] } } ]
Changelog
Version
Description
2.0
Introduced.
List email list
- GET /fast-events/v1/admin/emaillists/(integer: id)
Retrieve details of a single email list.
Optional query parameters
- _fields
A comma separated string of fields included in the response. For example
name,price
.
Example request
$ curl \ -H "X-FE-API-KEY: 3zo58AUYP9zOE6YT" \ -H "Content-Type: application/json" \ -u "test:4ZAN O5OY OAvZ FZb2 Lslv JnJG" \ https://exampledomain.com/wp-json/fast-events/v1/admin/emaillists/10
<?php $ch = curl_init(); $url = 'https://exampledomain.com/wp-json/fast-events/v1/admin/emaillists/10'; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, 'test:4ZAN O5OY OAvZ FZb2 Lslv JnJG'); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'X-FE-API-KEY: 3zo58AUYP9zOE6YT') ); $result = curl_exec($ch); echo $result;
import requests from requests.auth import HTTPBasicAuth URL = 'https://exampledomain.com/wp-json/fast-events/v1/admin/emaillists/10' HEADERS = {'X-FE-API-KEY':'3zo58AUYP9zOE6YT'} AUTH = HTTPBasicAuth('test', '4ZAN O5OY OAvZ FZb2 Lslv JnJG') response = requests.get(URL, headers=HEADERS, auth=AUTH) print(response.json())
Example response
{ "event_id": 10, "total": 212, "_links": { "self": [ { "href": "https://vinyl-openair.com/wp-json/fast-events/v1/admin/emaillists/10" } ], "collection": [ { "href": "https://vinyl-openair.com/wp-json/fast-events/v1/admin/emaillists" } ] } }
Changelog
Version
Description
2.0
Introduced.
Delete email list
- DELETE /fast-events/v1/admin/emaillists/(integer: id)
Delete a single ticket type.
Example request
$ curl \ -X DELETE \ -H "X-FE-API-KEY: 3zo58AUYP9zOE6YT" \ -H "Content-Type: application/json" \ -u "test:4ZAN O5OY OAvZ FZb2 Lslv JnJG" \ https://exampledomain.com/wp-json/fast-events/v1/admin/emaillists/10
<?php $ch = curl_init(); $url = 'https://exampledomain.com/wp-json/fast-events/v1/admin/emaillists/10'; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE"); curl_setopt($ch, CURLOPT_USERPWD, 'test:4ZAN O5OY OAvZ FZb2 Lslv JnJG'); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'X-FE-API-KEY: 3zo58AUYP9zOE6YT') ); $result = curl_exec($ch); echo $result;
import requests from requests.auth import HTTPBasicAuth URL = 'https://exampledomain.com/wp-json/fast-events/v1/admin/emaillists/10' HEADERS = {'X-FE-API-KEY':'3zo58AUYP9zOE6YT'} AUTH = HTTPBasicAuth('test', '4ZAN O5OY OAvZ FZb2 Lslv JnJG') response = requests.delete(URL, headers=HEADERS, auth=AUTH) print(response.json())
Example response
{ "deleted": true, }
Changelog
Version
Description
2.0
Introduced.
Create email list
- POST /fast-events/v1/admin/emaillists/(integer: id)
Create a new email list from a CSV-file. Create a spreadsheet with the name in the first column, the email address in the second column and the maximum number of tickets the person can buy in the third column, and save it as a csv-file. Use a comma (
,
) as field separator. Emailaddresses in the file need to be unique!Example request
$ curl \ -X POST \ -H "X-FE-API-KEY: 3zo58AUYP9zOE6YT" \ -H "Content-Type: application/json" \ -u "test:4ZAN O5OY OAvZ FZb2 Lslv JnJG" \ -F "file=@path/to/local/file/emaillist.csv" \ https://exampledomain.com/wp-json/fast-events/v1/admin/emaillists/10
<?php $post = array ( 'file' => curl_file_create ('./emaillist.csv'); ); $ch = curl_init(); $url = 'https://exampledomain.com/wp-json/fast-events/v1/admin/emaillists/10'; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_USERPWD, 'test:4ZAN O5OY OAvZ FZb2 Lslv JnJG'); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'X-FE-API-KEY: 3zo58AUYP9zOE6YT') ); curl_setopt($ch, CURLOPT_POSTFIELDS, $post); $result = curl_exec($ch); echo $result;
import requests from requests.auth import HTTPBasicAuth dfile = open("emaillist.csv", "rb") URL = 'https://exampledomain.com/wp-json/fast-events/v1/admin/emaillists/10' HEADERS = {'X-FE-API-KEY':'3zo58AUYP9zOE6YT'} AUTH = HTTPBasicAuth('test', '4ZAN O5OY OAvZ FZb2 Lslv JnJG') response = requests.patch(URL, headers=HEADERS, auth=AUTH, files={"file": dfile}) print(response.json())
Example response
{ "event_id": 10, "total": 212, "_links": { "self": [ { "href": "https://vinyl-openair.com/wp-json/fast-events/v1/admin/emaillists/10" } ], "collection": [ { "href": "https://vinyl-openair.com/wp-json/fast-events/v1/admin/emaillists" } ] } }
Changelog
Version
Description
2.0
Introduced.