Push Templates API

Overview of push templates API methods

get
Get Template

https://api.codemash.io/:version/notifications/push/templates/:id
Gets a push notification template.
Request
Response
Request
Path Parameters
version
required
string
The version of API endpoint. Current latest v1.
id
required
string
ID of a template to get.
Headers
Authorization
required
string
Your project's secret key.
x-cm-projectid
required
string
Your project's ID. Can be passed as query parameter.
Response
200: OK
Returns an ID of created notification group.
{
Result: ""
}
401: Unauthorized
Returns if the user does not have a valid permission to call this method.
500: Internal Server Error
.NET
Node
.NET
var client = new CodeMashClient(apiKey, projectId);
var pushService = new CodeMashPushService(client);
var response = await pushService.GetTemplateAsync(
new GetNotificationTemplateRequest
{
Id = Guid.Parse("{TEMPLATEID_ID}")
}
);
Node

get
Get Templates

https://api.codemash.io/:version/notifications/push/templates
Gets many push notification templates.
Request
Response
Request
Path Parameters
version
required
string
The version of API endpoint. Current latest v1.
Headers
Authorization
required
string
Your project's secret key.
x-cm-projectid
required
string
Your project's ID. Can be passed as query parameter.
Response
200: OK
Returns an ID of created notification group.
{
Result: ""
}
401: Unauthorized
Returns if the user does not have a valid permission to call this method.
500: Internal Server Error
.NET
.NET
var client = new CodeMashClient(apiKey, projectId);
var pushService = new CodeMashPushService(client);
var response = await pushService.GetTemplatesAsync(
new GetNotificationTemplatesRequest()
);