Content Resources
Content is some text associated with an account. They are use to generate email. Content items can include placeholder tags following the Handlebars standard.
Content is an experimental feature and is not available to all users.
Content Summary
- Description
- Gets a summary of the content item
- Method
- GET
- URL
- https://api.iwannaticket.com.au/api/v2/content/{id}
Output
Name | Type | Description |
---|---|---|
firstName | String | The first name of the user |
lastName | String | The last name of the user |
String | The email address of the user | |
mobilePhone | String | The mobile phone of the user |
Creates a new content item
- Method
- POST
- URL
- https://api.iwannaticket.com.au/api/v2/content/
Output
Name | Type | Description |
---|---|---|
name | String | The first name of the user |
description | String | The last name of the user |
type | ContentType | The email address of the user |
text | String | The text content of the email. Use Handlebars interpolation. |
html | String | The HTML content of the email. Use Handlebars interpolation. |
mjml | String | The MJML content of the email. Use Handlebars interpolation. MJML is not yet supported. |
subject | String | The subject of the email. Use Handlebars interpolation. |
senderName | String | The name of the sender of the email. |
senderEmail | String | The email address of the sender of the email. This must be an email address that IWannaTicket is permitted to send as, |
frameType | ContentFrameType | The type of frame to send the content in. This is not yet used and defaults to ACCOUNT. |
customFrame | optional Number | The ID of the content item to use as the frame, if the frameType is CUSTOM. |
List all content
- Method
- GET
- URL
- https://api.iwannaticket.com.au/api/v2/content/list
This method lists all content items for the account. There is no paging option (yet).