Send push notification to a specific subscriber
Last updated 11 months ago
const response = await fetch('https://api.pushpushgo.com/core/projects/{project}/external_ids/{externalId}', { method: 'GET', headers: {}, }); const data = await response.json();
{ "externalId": "text", "subscriberIds": [ "text" ] }
const response = await fetch('https://api.pushpushgo.com/core/projects/{project}/external_ids/forgot/{externalId}', { method: 'DELETE', headers: {}, }); const data = await response.json();
{ "success": false }
const response = await fetch('https://api.pushpushgo.com/core/projects/{project}/external_ids/unassign/{subscriberId}', { method: 'DELETE', headers: {}, }); const data = await response.json();
subscriberIds field returns always current state of given externalId
const response = await fetch('https://api.pushpushgo.com/core/projects/{project}/external_ids/assign', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();
const response = await fetch('https://api.pushpushgo.com/core/projects/{project}/pushes/transaction', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();
{ "messageId": "text" }
const response = await fetch('https://api.pushpushgo.com/core/projects/{project}/pushes/transaction/external_id', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();
const response = await fetch('https://api.pushpushgo.com/core/projects/{project}/pushes/transaction/bulk', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();
{ "messageIds": [ "text" ] }
const response = await fetch('https://api.pushpushgo.com/core/projects/{project}/pushes/transaction/external_id/bulk', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();