Brand Brand

API

To push notification to your subscribers you need to send POST request to:
https://pushapp.pro/publisherapi/pushes/
with JSON containing:

Bash

curl -H "Content-Type: application/json" -X POST -d '{"apikey":"YOUR-API-KEY", "url":"https://example.com/breaking-news/", "content":"Check this out! #flightdeal"}' https://pushapp.pro/publisherapi/pushes/

PHP

$payload = array(
    'apikey' => "YOUR-API-KEY",
    'url' => 'https://example.com/breaking-news/',
    'content' => 'Check this out! #flightdeal'
);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://pushapp.pro/publisherapi/pushes/");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
$result = curl_exec($ch);

Python

import requests

payload = {'apikey':'YOUR-API-KEY', 'url':'https://example.com/breaking-news/', 'content':'Check this out! #flightdeal'}

r = requests.post('https://pushapp.pro/publisherapi/pushes/', json=payload)