Push Templates API

Overview of push templates API methods

Get Template

GET https://api.codemash.io/:version/notifications/push/templates/:id

Gets a push notification template.

Path Parameters

NameTypeDescription

version

string

The version of the API endpoint. Current latest v1.

id

string

The ID of a template to get.

Headers

NameTypeDescription

Authorization

string

Your project's secret key.

x-cm-projectid

string

Your project's ID. Can be passed as a query parameter.

{
    Result: ""
}
var client = new CodeMashClient(apiKey, projectId);
var pushService = new CodeMashPushService(client);

var response = await pushService.GetTemplateAsync(
    new GetNotificationTemplateRequest
    {
        Id = Guid.Parse("{TEMPLATEID_ID}")
    }
);

Get Templates

GET https://api.codemash.io/:version/notifications/push/templates

Gets many push notification templates.

Path Parameters

NameTypeDescription

version

string

The version of the API endpoint. Current latest v1.

Headers

NameTypeDescription

Authorization

string

Your project's secret key.

x-cm-projectid

string

Your project's ID. Can be passed as a query parameter.

{
    Result: ""
}
var client = new CodeMashClient(apiKey, projectId);
var pushService = new CodeMashPushService(client);

var response = await pushService.GetTemplatesAsync(
    new GetNotificationTemplatesRequest()
);

Last updated