Get Started With ZuPago Push


Next
● GETTING STARTED WITH ZUPAGO WEB PUSH NOTIFICATION SYSTEM STEP:1 > Firstly get account @
https://zpush.zupago.pe/register
Next ●
STEPS TO CREATING A NEW APP ON YOUR ZuPago WebPush ACCOUNT

Step: 1 > Go to dashboard, click on the ADD A NEW APP button, a directive page will be displayed were you will
fill up the details of the app in which you want to ADD.

Step: 2 > With the aid of the demo video, fill the details of your App carefully, and click submit.
There you go, your App as been added successfully.
Next ●
HOW TO GENERATE PUSHER DATA

Step : 1> Login into ZuPago WebPush Account, click on the APP name, click on API Setting, click platform, a new
page is displayed. Now you can select which pusher data to activate. A new page is displayed for you to
input your App Url and click submit button, and your pusher data is activated successfully.

Step: 3> Now you can set your welcome push notification for your new subscribers, by clicking on welcome push.
See video for more details
Next ●
HOW TO GENERATE ACCESS TOKEN

Step:1 > On the Side Bar Click the API Setting

Step: 2 > Click on the API Setting Click (Token Generator), click (Personal Access Tokens) input the Name and create token..

Step: 3 > A page will be displayed with the new personal access token, copy and save it as it will not be
displayed again.

Web Configuration



Parameter Description
pushId
App Id E:g BF373CB6-82D7-48AE-BE8C-6B4F781C8755
pushKey
App Public Key 
E:g BGzrC++/Oq5FhZF9QAhi7B6KzuQasfviqziv47dLtZGB9UUXNIXU5bzaF5UVYCUWt0L3E25K6Fq+n+4Sk9KyZPo=
safariPushId
Safari WebPush Id
E:g web.pe.zupago.pe.ZuPago WebPusher
userToken
Generate Uuid for your user. Optional only use if CallBack Url Enabled
it used to identify when Automated Notification to a Particular user
i.e invoice Update, Payment status & more E.g 1232ef2332r324e324ref Enable CallBack Url Note A POST Request will be send to http://WebsiteUrl/zupago/?sudId={sudId}&userToken={userToken}

    
   
<head>
  <!-- ZuPago WebPush Data Version 2.0 -->
 <script src="https://zpush.zupago.pe/sdks/ZuPagoPush.js" async defer></script>
      <script> 

      var ZuPagoPusher = {
        pushId  : "Your App Id",
        pushKey : "Your App Public Key",
        safariPushId : "Your Safari WebPush Id",
        userToken : "Generate Uuid for your user", //Optional use if CallBack Url Enabled
      };
 </script>

</head>






Send Notification

https://zpush.zupago.pe/pusher/v2 
Requires Personal Access Tokens TO Send Push Notification Var Api. Get your ZuPago Push App Personal Access Tokens, check here.
ZuPago Push Enables all users to send push Notification to their subscriber across any platform of your choice
Curl, Php, Json, Java, Ruby, Node, Python

Example Code - Create notification

Send to all subscribers - Create notification Only pushuser, title & body Parameters REQUIRED Enable Safari
to send push to safari users the rest are optinal.

Parameter Type Description
pushuser
array_string
REQUIRED Your App Id  find out more here
title
string
REQUIRED Notification Title
body
string
REQUIRED Notification Message
safari
numeric
REQUIRED Send Notification To Safari Users
posticon
url_string
Notification Icoin Url i:e 
postUrl
url_string
where to send user after click on the Push notification
badge
url_string
The badge is a small monochrome icon that is used to portray 
a little more information to the user about where the notification is from
image
url_string
The image option can be used to display a larger image to the user. 
This is particularly useful to display a preview image to the user
aid1
string
Action Id 1
aurl1
url_string
Action Url 1 where to send user when onclick 
aicon1
url_string
Action icon Url 1 24px x 24px. 
atitle1
string
Action Title 1
aid2
string
Action Id 2
aurl2
url_string
Action Url 2 where to send user when onclick 
aicon2
url_string
Action icon Url 2 24px x 24px. 
atitle2
string
Action Title 2
options
string
Push Notification priority normal or high default normal
TTL
number
Time to Live in timestamp format.
dir
string
Display direction Right To Left (rtl) & Left To Right (ltr) default is auto
tag
string
The tag option is a string ID that “groups” notifications together,
providing an easy way to determine how multiple notifications are displayed to the user
renotify
boolean
This largely applies to mobile devices at the time of writing. 
Setting this option makes new notifications vibrate and play a system sound
default is false only enable this if you are using Tag
requireInteraction
boolean
To force a notification to stay visible until the user interacts with it
sound
url_string
sound url like mp3 not supported by all device
vibrate
array_string
The vibrate option allows you to define a vibration pattern 
that’ll run when a notification is displayed, assuming the user’s current
settings allow for vibrations



Method 1

curl -X POST \
  https://zpush.zupago.pe/pusher/v2 \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA1MDhkOGQzN2Y4MzY5ODY4N2U1NjNiYmE3YWUxZDU5NTJlMzYwODE3ZWNhNDE5MDI1OGYyNjBmNTkzNDM2MWFhYTMyM2Y5NDMzYjU4NzI1In0.eyJhdWQiOiIxQTc3MDE5RC0wMEY5LTQyOTItODkxMS1DQTE1RTQyOUNCOUMiLCJqdGkiOiIwNTA4ZDhkMzdmODM2OTg2ODdlNTYzYmJhN2FlMWQ1OTUyZTM2MDgxN2VjYTQxOTAyNThmMjYwZjU5MzQzNjFhYWEzMjNmOTQzM2I1ODcyNSIsImlhdCI6MTUxMzYxNTQzMSwibmJmIjoxNTEzNjE1NDMxLCJleHAiOjE1NDUxNTE0MzEsInN1YiI6IkM5NkQyMkVFLTNFM0QtNDY4NS04REFDLTBDMjg1RDU0RkYzRSIsInNjb3BlcyI6W119.DhTRixE9-l3v6JezQQIaJK1zgQVH7iWXCqHDs9wbFs709C59ONMjh3Cd3EpuMoryv4QN9wXW5d3IPgOY0se047XlY2sA2an2qjhUte2grghCdmyF7iu9KrDlFEQlGL-zAPZ6TDuVJKDmISL24Re3wVV3p8Tfq02nI1_gjH6Xg17L6PPdB1LYHfq8RGdr3zsvmNSkS_AEUnAWIJaCw20GelAMy7VCdJd-22kN4ObpqjdkZr7tE5Adb-Ay9nhH5_O0RDwmlP2uKjM1A82NDjocRyjmJcfokmurtxCxmoQQ-puxRitZESRCQtgRZCrzG1kncR7-LYcPLA4aXC_qCaksnmUTqsTCvUabg8CcYlovSqtLtspWjULBuMdg5bWNpDYoTPSzv7swhYuI7MOvN61HtvXJcH7hfWNqobyv_yMeA3o4rCyU-HqGBe4Y8KjiyRdoRAog4X1vhgSVf_EEB6vK-XN73vvaak_sOJMvzO9_wjyscvQjyRSsEan40tWOwQrxfzp6eHBhhXgy2nBh0XT6RCkXVImaEQlZj8v-7nUf4GWPUwbKYDM_aTWT9N8nIwPTvMRu4MbsXx8iTZlIEs5env4wYvQ23JryibN72lhFgVUT0Q42fIJ5ZacJvZ2fLa6AiOUKYVqhnvBGb3wVpIL7SW8feJIqwBYT4XT0vLrapqA' \
  -H 'content-type: multipart/form-data' \
  -d pushuser=04A6AE94-63FF-464C-BE26-E78FE6BE592D \
  -d 'title=ZPush Title ' \
  -d 'body=I love ZuPago Push' \
  -d 'safari=1' \
  -d posticon=https://ama.zupago.pe/favicon.ico \
  -d postUrl=https://blog.zupago.pe \
  -d badge=https://ama.zupago.pe/badge.ico \
  -d image=https://ama.zupago.pe/largeimage.png \
  -d aid1=coffee-action \
  -d aurl1=https://zpush.zupago.pe \
  -d aicon1=https://ama.zupago.pe/favicon.ico \
  -d atitle1=Accept \
  -d aid2=doughnut-action \
  -d aurl2=https://zpush.zupago.pe \
  -d aicon2=https://ama.zupago.pe/favicon.ico \
  -d atitle2=Cancel \
  -d options=normal \
  -d ttl=3600 \
  -d dir=auto \
  -d 'tag=news' \
  -d renotify=false \
  -d requireInteraction=false \
  -d sound=https://ama.zupago.pe/sound.mp3 \
  -d 'vibrate=500,110,500,110,450,110,200,110,170,40,450,110,200,110,170,40,500'


Method 2

curl --request POST \
  --url https://zpush.zupago.pe/pusher/v2 \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA1MDhkOGQzN2Y4MzY5ODY4N2U1NjNiYmE3YWUxZDU5NTJlMzYwODE3ZWNhNDE5MDI1OGYyNjBmNTkzNDM2MWFhYTMyM2Y5NDMzYjU4NzI1In0.eyJhdWQiOiIxQTc3MDE5RC0wMEY5LTQyOTItODkxMS1DQTE1RTQyOUNCOUMiLCJqdGkiOiIwNTA4ZDhkMzdmODM2OTg2ODdlNTYzYmJhN2FlMWQ1OTUyZTM2MDgxN2VjYTQxOTAyNThmMjYwZjU5MzQzNjFhYWEzMjNmOTQzM2I1ODcyNSIsImlhdCI6MTUxMzYxNTQzMSwibmJmIjoxNTEzNjE1NDMxLCJleHAiOjE1NDUxNTE0MzEsInN1YiI6IkM5NkQyMkVFLTNFM0QtNDY4NS04REFDLTBDMjg1RDU0RkYzRSIsInNjb3BlcyI6W119.DhTRixE9-l3v6JezQQIaJK1zgQVH7iWXCqHDs9wbFs709C59ONMjh3Cd3EpuMoryv4QN9wXW5d3IPgOY0se047XlY2sA2an2qjhUte2grghCdmyF7iu9KrDlFEQlGL-zAPZ6TDuVJKDmISL24Re3wVV3p8Tfq02nI1_gjH6Xg17L6PPdB1LYHfq8RGdr3zsvmNSkS_AEUnAWIJaCw20GelAMy7VCdJd-22kN4ObpqjdkZr7tE5Adb-Ay9nhH5_O0RDwmlP2uKjM1A82NDjocRyjmJcfokmurtxCxmoQQ-puxRitZESRCQtgRZCrzG1kncR7-LYcPLA4aXC_qCaksnmUTqsTCvUabg8CcYlovSqtLtspWjULBuMdg5bWNpDYoTPSzv7swhYuI7MOvN61HtvXJcH7hfWNqobyv_yMeA3o4rCyU-HqGBe4Y8KjiyRdoRAog4X1vhgSVf_EEB6vK-XN73vvaak_sOJMvzO9_wjyscvQjyRSsEan40tWOwQrxfzp6eHBhhXgy2nBh0XT6RCkXVImaEQlZj8v-7nUf4GWPUwbKYDM_aTWT9N8nIwPTvMRu4MbsXx8iTZlIEs5env4wYvQ23JryibN72lhFgVUT0Q42fIJ5ZacJvZ2fLa6AiOUKYVqhnvBGb3wVpIL7SW8feJIqwBYT4XT0vLrapqA' \
  --header 'content-type: multipart/form-data' \
  --form pushuser=04A6AE94-63FF-464C-BE26-E78FE6BE592D \
  --form 'title=ZPush Title ' \
  --form 'body=I love ZuPago Push' \
  --form 'safari=1' \
  --form posticon=https://ama.zupago.pe/favicon.ico \
  --form postUrl=https://blog.zupago.pe \
  --form badge=https://ama.zupago.pe/badge.ico \
  --form image=https://ama.zupago.pe/largeimage.png \
  --form aid1=coffee-action \
  --form aurl1=https://zpush.zupago.pe \
  --form aicon1=https://ama.zupago.pe/favicon.ico \
  --form atitle1=Accept \
  --form aid2=doughnut-action \
  --form aurl2=https://zpush.zupago.pe \
  --form aicon2=https://ama.zupago.pe/favicon.ico \
  --form atitle2=Cancel \
  --form options=normal \
  --form ttl=3600 \
  --form dir=auto \
  --form 'tag=news update' \
  --form renotify=false \
  --form requireInteraction=false \
  --form sound=https://ama.zupago.pe/sound.mp3 \
  --form 'vibrate=500,110,500,110,450,110,200,110,170,40,450,110,200,110,170,40,500'

  Note You can use other Curl Method it all work good

                        

Method 1

$client = new http\Client;
$request = new http\Client\Request;

$body = new http\Message\Body;
$body->addForm(array(
  'pushuser' => '04A6AE94-63FF-464C-BE26-E78FE6BE592D',
  'title' => 'ZPush Title ',
  'body' => 'I love ZuPago Push',
  'safari'=>1,
  'posticon' => 'https://ama.zupago.pe/favicon.ico',
  'postUrl' => 'https://blog.zupago.pe',
  'badge' => 'https://ama.zupago.pe/badge.ico',
  'image' => 'https://ama.zupago.pe/largeimage.png',
  'aid1' => 'coffee-action',
  'aurl1' => 'https://zpush.zupago.pe',
  'aicon1' => 'https://ama.zupago.pe/favicon.ico',
  'atitle1' => 'Accept',
  'aid2' => 'doughnut-action',
  'aurl2' => 'https://zpush.zupago.pe',
  'aicon2' => 'https://ama.zupago.pe/favicon.ico',
  'atitle2' => 'Cancel',
  'options' => 'normal',
  'ttl' => '3600',
  'dir' => 'auto',
  'tag' => 'news update',
  'renotify' => 'false',
  'requireInteraction' => 'false',
  'sound' => 'https://ama.zupago.pe/sound.mp3',
  'vibrate' => '500,110,500,110,450,110,200,110,170,40,450,110,200,110,170,40,500'
), NULL);

$request->setRequestUrl('https://zpush.zupago.pe/pusher/v2');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders(array(
  'Authorization' => 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA1MDhkOGQzN2Y4MzY5ODY4N2U1NjNiYmE3YWUxZDU5NTJlMzYwODE3ZWNhNDE5MDI1OGYyNjBmNTkzNDM2MWFhYTMyM2Y5NDMzYjU4NzI1In0.eyJhdWQiOiIxQTc3MDE5RC0wMEY5LTQyOTItODkxMS1DQTE1RTQyOUNCOUMiLCJqdGkiOiIwNTA4ZDhkMzdmODM2OTg2ODdlNTYzYmJhN2FlMWQ1OTUyZTM2MDgxN2VjYTQxOTAyNThmMjYwZjU5MzQzNjFhYWEzMjNmOTQzM2I1ODcyNSIsImlhdCI6MTUxMzYxNTQzMSwibmJmIjoxNTEzNjE1NDMxLCJleHAiOjE1NDUxNTE0MzEsInN1YiI6IkM5NkQyMkVFLTNFM0QtNDY4NS04REFDLTBDMjg1RDU0RkYzRSIsInNjb3BlcyI6W119.DhTRixE9-l3v6JezQQIaJK1zgQVH7iWXCqHDs9wbFs709C59ONMjh3Cd3EpuMoryv4QN9wXW5d3IPgOY0se047XlY2sA2an2qjhUte2grghCdmyF7iu9KrDlFEQlGL-zAPZ6TDuVJKDmISL24Re3wVV3p8Tfq02nI1_gjH6Xg17L6PPdB1LYHfq8RGdr3zsvmNSkS_AEUnAWIJaCw20GelAMy7VCdJd-22kN4ObpqjdkZr7tE5Adb-Ay9nhH5_O0RDwmlP2uKjM1A82NDjocRyjmJcfokmurtxCxmoQQ-puxRitZESRCQtgRZCrzG1kncR7-LYcPLA4aXC_qCaksnmUTqsTCvUabg8CcYlovSqtLtspWjULBuMdg5bWNpDYoTPSzv7swhYuI7MOvN61HtvXJcH7hfWNqobyv_yMeA3o4rCyU-HqGBe4Y8KjiyRdoRAog4X1vhgSVf_EEB6vK-XN73vvaak_sOJMvzO9_wjyscvQjyRSsEan40tWOwQrxfzp6eHBhhXgy2nBh0XT6RCkXVImaEQlZj8v-7nUf4GWPUwbKYDM_aTWT9N8nIwPTvMRu4MbsXx8iTZlIEs5env4wYvQ23JryibN72lhFgVUT0Q42fIJ5ZacJvZ2fLa6AiOUKYVqhnvBGb3wVpIL7SW8feJIqwBYT4XT0vLrapqA',
  'Accept' => 'application/json'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();


Method 2 Var Curl


$curl = curl_init();
$data = array(
  'pushuser' => '04A6AE94-63FF-464C-BE26-E78FE6BE592D',
  'title' => 'ZPush Title ',
  'body' => 'I love ZuPago Push',
  'safari' => 1,
  'posticon' => 'https://ama.zupago.pe/favicon.ico',
  'postUrl' => 'https://blog.zupago.pe',
  'badge' => 'https://ama.zupago.pe/badge.ico',
  'image' => 'https://ama.zupago.pe/largeimage.png',
  'aid1' => 'coffee-action',
  'aurl1' => 'https://zpush.zupago.pe',
  'aicon1' => 'https://ama.zupago.pe/favicon.ico',
  'atitle1' => 'Accept',
  'aid2' => 'doughnut-action',
  'aurl2' => 'https://zpush.zupago.pe',
  'aicon2' => 'https://ama.zupago.pe/favicon.ico',
  'atitle2' => 'Cancel',
  'options' => 'normal',
  'ttl' => '3600',
  'dir' => 'auto',
  'tag' => 'news update',
  'renotify' => 'false',
  'requireInteraction' => 'false',
  'sound' => 'https://ama.zupago.pe/sound.mp3',
  'vibrate' => '500,110,500,110,450,110,200,110,170,40,450,110,200,110,170,40,500'
);
curl_setopt_array($curl, array(
  CURLOPT_PORT => "443",
  CURLOPT_URL => "https://zpush.zupago.pe/pusher/v2",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => $data,
  CURLOPT_HTTPHEADER => array(
    "Accept: application/json",
    "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA1MDhkOGQzN2Y4MzY5ODY4N2U1NjNiYmE3YWUxZDU5NTJlMzYwODE3ZWNhNDE5MDI1OGYyNjBmNTkzNDM2MWFhYTMyM2Y5NDMzYjU4NzI1In0.eyJhdWQiOiIxQTc3MDE5RC0wMEY5LTQyOTItODkxMS1DQTE1RTQyOUNCOUMiLCJqdGkiOiIwNTA4ZDhkMzdmODM2OTg2ODdlNTYzYmJhN2FlMWQ1OTUyZTM2MDgxN2VjYTQxOTAyNThmMjYwZjU5MzQzNjFhYWEzMjNmOTQzM2I1ODcyNSIsImlhdCI6MTUxMzYxNTQzMSwibmJmIjoxNTEzNjE1NDMxLCJleHAiOjE1NDUxNTE0MzEsInN1YiI6IkM5NkQyMkVFLTNFM0QtNDY4NS04REFDLTBDMjg1RDU0RkYzRSIsInNjb3BlcyI6W119.DhTRixE9-l3v6JezQQIaJK1zgQVH7iWXCqHDs9wbFs709C59ONMjh3Cd3EpuMoryv4QN9wXW5d3IPgOY0se047XlY2sA2an2qjhUte2grghCdmyF7iu9KrDlFEQlGL-zAPZ6TDuVJKDmISL24Re3wVV3p8Tfq02nI1_gjH6Xg17L6PPdB1LYHfq8RGdr3zsvmNSkS_AEUnAWIJaCw20GelAMy7VCdJd-22kN4ObpqjdkZr7tE5Adb-Ay9nhH5_O0RDwmlP2uKjM1A82NDjocRyjmJcfokmurtxCxmoQQ-puxRitZESRCQtgRZCrzG1kncR7-LYcPLA4aXC_qCaksnmUTqsTCvUabg8CcYlovSqtLtspWjULBuMdg5bWNpDYoTPSzv7swhYuI7MOvN61HtvXJcH7hfWNqobyv_yMeA3o4rCyU-HqGBe4Y8KjiyRdoRAog4X1vhgSVf_EEB6vK-XN73vvaak_sOJMvzO9_wjyscvQjyRSsEan40tWOwQrxfzp6eHBhhXgy2nBh0XT6RCkXVImaEQlZj8v-7nUf4GWPUwbKYDM_aTWT9N8nIwPTvMRu4MbsXx8iTZlIEs5env4wYvQ23JryibN72lhFgVUT0Q42fIJ5ZacJvZ2fLa6AiOUKYVqhnvBGb3wVpIL7SW8feJIqwBYT4XT0vLrapqA",
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

Note You can use other PHP Method it all work good




                        
                    
 var request = require("request");

var options = { method: 'POST',
  url: 'https://zpush.zupago.pe/pusher/v2',
  headers: 
   { 
     Authorization: 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA1MDhkOGQzN2Y4MzY5ODY4N2U1NjNiYmE3YWUxZDU5NTJlMzYwODE3ZWNhNDE5MDI1OGYyNjBmNTkzNDM2MWFhYTMyM2Y5NDMzYjU4NzI1In0.eyJhdWQiOiIxQTc3MDE5RC0wMEY5LTQyOTItODkxMS1DQTE1RTQyOUNCOUMiLCJqdGkiOiIwNTA4ZDhkMzdmODM2OTg2ODdlNTYzYmJhN2FlMWQ1OTUyZTM2MDgxN2VjYTQxOTAyNThmMjYwZjU5MzQzNjFhYWEzMjNmOTQzM2I1ODcyNSIsImlhdCI6MTUxMzYxNTQzMSwibmJmIjoxNTEzNjE1NDMxLCJleHAiOjE1NDUxNTE0MzEsInN1YiI6IkM5NkQyMkVFLTNFM0QtNDY4NS04REFDLTBDMjg1RDU0RkYzRSIsInNjb3BlcyI6W119.DhTRixE9-l3v6JezQQIaJK1zgQVH7iWXCqHDs9wbFs709C59ONMjh3Cd3EpuMoryv4QN9wXW5d3IPgOY0se047XlY2sA2an2qjhUte2grghCdmyF7iu9KrDlFEQlGL-zAPZ6TDuVJKDmISL24Re3wVV3p8Tfq02nI1_gjH6Xg17L6PPdB1LYHfq8RGdr3zsvmNSkS_AEUnAWIJaCw20GelAMy7VCdJd-22kN4ObpqjdkZr7tE5Adb-Ay9nhH5_O0RDwmlP2uKjM1A82NDjocRyjmJcfokmurtxCxmoQQ-puxRitZESRCQtgRZCrzG1kncR7-LYcPLA4aXC_qCaksnmUTqsTCvUabg8CcYlovSqtLtspWjULBuMdg5bWNpDYoTPSzv7swhYuI7MOvN61HtvXJcH7hfWNqobyv_yMeA3o4rCyU-HqGBe4Y8KjiyRdoRAog4X1vhgSVf_EEB6vK-XN73vvaak_sOJMvzO9_wjyscvQjyRSsEan40tWOwQrxfzp6eHBhhXgy2nBh0XT6RCkXVImaEQlZj8v-7nUf4GWPUwbKYDM_aTWT9N8nIwPTvMRu4MbsXx8iTZlIEs5env4wYvQ23JryibN72lhFgVUT0Q42fIJ5ZacJvZ2fLa6AiOUKYVqhnvBGb3wVpIL7SW8feJIqwBYT4XT0vLrapqA',
     Accept: 'application/json',
    },
  formData: 
   { pushuser: '04A6AE94-63FF-464C-BE26-E78FE6BE592D',
     title: 'ZPush Title ',
     body: 'I love ZuPago Push',
     safari: 1,
     posticon: 'https://ama.zupago.pe/favicon.ico',
     postUrl: 'https://blog.zupago.pe',
     badge: 'https://ama.zupago.pe/badge.ico',
     image: 'https://ama.zupago.pe/largeimage.png',
     aid1: 'coffee-action',
     aurl1: 'https://zpush.zupago.pe',
     aicon1: 'https://ama.zupago.pe/favicon.ico',
     atitle1: 'Accept',
     aid2: 'doughnut-action',
     aurl2: 'https://zpush.zupago.pe',
     aicon2: 'https://ama.zupago.pe/favicon.ico',
     atitle2: 'Cancel',
     options: 'normal',
     ttl: '3600',
     dir: 'auto',
     tag: 'news update',
     renotify: 'false',
     requireInteraction: 'false',
     sound: 'https://ama.zupago.pe/sound.mp3',
     vibrate: '500,110,500,110,450,110,200,110,170,40,450,110,200,110,170,40,500' } };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});

                      

require 'uri'
require 'net/http'

url = URI("https://zpush.zupago.pe/pusher/v2")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)
request["Accept"] = 'application/json'
request["Authorization"] = 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA1MDhkOGQzN2Y4MzY5ODY4N2U1NjNiYmE3YWUxZDU5NTJlMzYwODE3ZWNhNDE5MDI1OGYyNjBmNTkzNDM2MWFhYTMyM2Y5NDMzYjU4NzI1In0.eyJhdWQiOiIxQTc3MDE5RC0wMEY5LTQyOTItODkxMS1DQTE1RTQyOUNCOUMiLCJqdGkiOiIwNTA4ZDhkMzdmODM2OTg2ODdlNTYzYmJhN2FlMWQ1OTUyZTM2MDgxN2VjYTQxOTAyNThmMjYwZjU5MzQzNjFhYWEzMjNmOTQzM2I1ODcyNSIsImlhdCI6MTUxMzYxNTQzMSwibmJmIjoxNTEzNjE1NDMxLCJleHAiOjE1NDUxNTE0MzEsInN1YiI6IkM5NkQyMkVFLTNFM0QtNDY4NS04REFDLTBDMjg1RDU0RkYzRSIsInNjb3BlcyI6W119.DhTRixE9-l3v6JezQQIaJK1zgQVH7iWXCqHDs9wbFs709C59ONMjh3Cd3EpuMoryv4QN9wXW5d3IPgOY0se047XlY2sA2an2qjhUte2grghCdmyF7iu9KrDlFEQlGL-zAPZ6TDuVJKDmISL24Re3wVV3p8Tfq02nI1_gjH6Xg17L6PPdB1LYHfq8RGdr3zsvmNSkS_AEUnAWIJaCw20GelAMy7VCdJd-22kN4ObpqjdkZr7tE5Adb-Ay9nhH5_O0RDwmlP2uKjM1A82NDjocRyjmJcfokmurtxCxmoQQ-puxRitZESRCQtgRZCrzG1kncR7-LYcPLA4aXC_qCaksnmUTqsTCvUabg8CcYlovSqtLtspWjULBuMdg5bWNpDYoTPSzv7swhYuI7MOvN61HtvXJcH7hfWNqobyv_yMeA3o4rCyU-HqGBe4Y8KjiyRdoRAog4X1vhgSVf_EEB6vK-XN73vvaak_sOJMvzO9_wjyscvQjyRSsEan40tWOwQrxfzp6eHBhhXgy2nBh0XT6RCkXVImaEQlZj8v-7nUf4GWPUwbKYDM_aTWT9N8nIwPTvMRu4MbsXx8iTZlIEs5env4wYvQ23JryibN72lhFgVUT0Q42fIJ5ZacJvZ2fLa6AiOUKYVqhnvBGb3wVpIL7SW8feJIqwBYT4XT0vLrapqA'
request.body = "; 
name=\"pushuser\"\r\n\r\n04A6AE94-63FF-464C-BE26-E78FE6BE592D\r\n; 
name=\"title\"\r\n\r\nZPush Title \r\n; 
name=\"body\"\r\n\r\nI love ZuPago Push\r\n; 
name=\"safari\"\r\n\r\n1\r\n; 
name=\"posticon\"\r\n\r\nhttps://ama.zupago.pe/favicon.ico\r\n; 
name=\"postUrl\"\r\n\r\nhttps://blog.zupago.pe\r\n; 
name=\"badge\"\r\n\r\nhttps://ama.zupago.pe/badge.ico\r\n; 
name=\"image\"\r\n\r\nhttps://ama.zupago.pe/largeimage.png\r\n; 
name=\"aid1\"\r\n\r\ncoffee-action\r\n; 
name=\"aurl1\"\r\n\r\nhttps://zpush.zupago.pe\r\n; 
name=\"aicon1\"\r\n\r\nhttps://ama.zupago.pe/favicon.ico\r\n; 
name=\"atitle1\"\r\n\r\nAccept\r\n; 
name=\"aid2\"\r\n\r\ndoughnut-action\r\n; 
name=\"aurl2\"\r\n\r\nhttps://zpush.zupago.pe\r\n; 
name=\"aicon2\"\r\n\r\nhttps://ama.zupago.pe/favicon.ico\r\n; 
name=\"atitle2\"\r\n\r\nCancel\r\n; 
name=\"options\"\r\n\r\nnormal\r\n; 
name=\"ttl\"\r\n\r\n3600\r\n; 
name=\"dir\"\r\n\r\nauto\r\n; 
name=\"tag\"\r\n\r\nnews update\r\n; 
name=\"renotify\"\r\n\r\nfalse\r\n; 
name=\"requireInteraction\"\r\n\r\nfalse\r\n; 
name=\"sound\"\r\n\r\nhttps://ama.zupago.pe/sound.mp3\r\n; 
name=\"vibrate\"\r\n\r\n500,110,500,110,450,110,200,110,170,40,450,110,200,110,170,40,500\r\n"

response = http.request(request)
puts response.read_body
                      

Method 1

import http.client

conn = http.client.HTTPConnection("https://zpush.zupago.pe")

payload = "; 
name=\"pushuser\"\r\n\r\n04A6AE94-63FF-464C-BE26-E78FE6BE592D\r\n; 
name=\"title\"\r\n\r\nZPush Title \r\n; 
name=\"body\"\r\n\r\nI love ZuPago Push\r\n; 
name=\"safari\"\r\n\r\n1\r\n; 
name=\"posticon\"\r\n\r\nhttps://ama.zupago.pe/favicon.ico\r\n; 
name=\"postUrl\"\r\n\r\nhttps://blog.zupago.pe\r\n; 
name=\"badge\"\r\n\r\nhttps://ama.zupago.pe/badge.ico\r\n; 
name=\"image\"\r\n\r\nhttps://ama.zupago.pe/largeimage.png\r\n; 
name=\"aid1\"\r\n\r\ncoffee-action\r\n; 
name=\"aurl1\"\r\n\r\nhttps://zpush.zupago.pe\r\n; 
name=\"aicon1\"\r\n\r\nhttps://ama.zupago.pe/favicon.ico\r\n; 
name=\"atitle1\"\r\n\r\nAccept\r\n; 
name=\"aid2\"\r\n\r\ndoughnut-action\r\n; 
name=\"aurl2\"\r\n\r\nhttps://zpush.zupago.pe\r\n; 
name=\"aicon2\"\r\n\r\nhttps://ama.zupago.pe/favicon.ico\r\n; 
name=\"atitle2\"\r\n\r\nCancel\r\n; 
name=\"options\"\r\n\r\nnormal\r\n; 
name=\"ttl\"\r\n\r\n3600\r\n; 
name=\"dir\"\r\n\r\nauto\r\n; 
name=\"tag\"\r\n\r\nnews update\r\n; 
name=\"renotify\"\r\n\r\nfalse\r\n; 
name=\"requireInteraction\"\r\n\r\nfalse\r\n; 
name=\"sound\"\r\n\r\nhttps://ama.zupago.pe/sound.mp3\r\n; 
name=\"vibrate\"\r\n\r\n500,110,500,110,450,110,200,110,170,40,450,110,200,110,170,40,500\r\n"
headers = {
    'Accept': "application/json",
    'Authorization': "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA1MDhkOGQzN2Y4MzY5ODY4N2U1NjNiYmE3YWUxZDU5NTJlMzYwODE3ZWNhNDE5MDI1OGYyNjBmNTkzNDM2MWFhYTMyM2Y5NDMzYjU4NzI1In0.eyJhdWQiOiIxQTc3MDE5RC0wMEY5LTQyOTItODkxMS1DQTE1RTQyOUNCOUMiLCJqdGkiOiIwNTA4ZDhkMzdmODM2OTg2ODdlNTYzYmJhN2FlMWQ1OTUyZTM2MDgxN2VjYTQxOTAyNThmMjYwZjU5MzQzNjFhYWEzMjNmOTQzM2I1ODcyNSIsImlhdCI6MTUxMzYxNTQzMSwibmJmIjoxNTEzNjE1NDMxLCJleHAiOjE1NDUxNTE0MzEsInN1YiI6IkM5NkQyMkVFLTNFM0QtNDY4NS04REFDLTBDMjg1RDU0RkYzRSIsInNjb3BlcyI6W119.DhTRixE9-l3v6JezQQIaJK1zgQVH7iWXCqHDs9wbFs709C59ONMjh3Cd3EpuMoryv4QN9wXW5d3IPgOY0se047XlY2sA2an2qjhUte2grghCdmyF7iu9KrDlFEQlGL-zAPZ6TDuVJKDmISL24Re3wVV3p8Tfq02nI1_gjH6Xg17L6PPdB1LYHfq8RGdr3zsvmNSkS_AEUnAWIJaCw20GelAMy7VCdJd-22kN4ObpqjdkZr7tE5Adb-Ay9nhH5_O0RDwmlP2uKjM1A82NDjocRyjmJcfokmurtxCxmoQQ-puxRitZESRCQtgRZCrzG1kncR7-LYcPLA4aXC_qCaksnmUTqsTCvUabg8CcYlovSqtLtspWjULBuMdg5bWNpDYoTPSzv7swhYuI7MOvN61HtvXJcH7hfWNqobyv_yMeA3o4rCyU-HqGBe4Y8KjiyRdoRAog4X1vhgSVf_EEB6vK-XN73vvaak_sOJMvzO9_wjyscvQjyRSsEan40tWOwQrxfzp6eHBhhXgy2nBh0XT6RCkXVImaEQlZj8v-7nUf4GWPUwbKYDM_aTWT9N8nIwPTvMRu4MbsXx8iTZlIEs5env4wYvQ23JryibN72lhFgVUT0Q42fIJ5ZacJvZ2fLa6AiOUKYVqhnvBGb3wVpIL7SW8feJIqwBYT4XT0vLrapqA",
    }

conn.request("POST", "pusher,v2", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))


Method 2

import requests

url = "https://zpush.zupago.pe/pusher/v2"

payload =payload = "; 
name=\"pushuser\"\r\n\r\n04A6AE94-63FF-464C-BE26-E78FE6BE592D\r\n; 
name=\"title\"\r\n\r\nZPush Title \r\n; 
name=\"body\"\r\n\r\nI love ZuPago Push\r\n; 
name=\"safari\"\r\n\r\n1\r\n; 
name=\"posticon\"\r\n\r\nhttps://ama.zupago.pe/favicon.ico\r\n; 
name=\"postUrl\"\r\n\r\nhttps://blog.zupago.pe\r\n; 
name=\"badge\"\r\n\r\nhttps://ama.zupago.pe/badge.ico\r\n; 
name=\"image\"\r\n\r\nhttps://ama.zupago.pe/largeimage.png\r\n; 
name=\"aid1\"\r\n\r\ncoffee-action\r\n; 
name=\"aurl1\"\r\n\r\nhttps://zpush.zupago.pe\r\n; 
name=\"aicon1\"\r\n\r\nhttps://ama.zupago.pe/favicon.ico\r\n; 
name=\"atitle1\"\r\n\r\nAccept\r\n; 
name=\"aid2\"\r\n\r\ndoughnut-action\r\n; 
name=\"aurl2\"\r\n\r\nhttps://zpush.zupago.pe\r\n; 
name=\"aicon2\"\r\n\r\nhttps://ama.zupago.pe/favicon.ico\r\n; 
name=\"atitle2\"\r\n\r\nCancel\r\n; 
name=\"options\"\r\n\r\nnormal\r\n; 
name=\"ttl\"\r\n\r\n3600\r\n; 
name=\"dir\"\r\n\r\nauto\r\n; 
name=\"tag\"\r\n\r\nnews update\r\n; 
name=\"renotify\"\r\n\r\nfalse\r\n; 
name=\"requireInteraction\"\r\n\r\nfalse\r\n; 
name=\"sound\"\r\n\r\nhttps://ama.zupago.pe/sound.mp3\r\n; 
name=\"vibrate\"\r\n\r\n500,110,500,110,450,110,200,110,170,40,450,110,200,110,170,40,500\r\n" 
headers = {
    'Accept': "application/json",
    'Authorization': "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA1MDhkOGQzN2Y4MzY5ODY4N2U1NjNiYmE3YWUxZDU5NTJlMzYwODE3ZWNhNDE5MDI1OGYyNjBmNTkzNDM2MWFhYTMyM2Y5NDMzYjU4NzI1In0.eyJhdWQiOiIxQTc3MDE5RC0wMEY5LTQyOTItODkxMS1DQTE1RTQyOUNCOUMiLCJqdGkiOiIwNTA4ZDhkMzdmODM2OTg2ODdlNTYzYmJhN2FlMWQ1OTUyZTM2MDgxN2VjYTQxOTAyNThmMjYwZjU5MzQzNjFhYWEzMjNmOTQzM2I1ODcyNSIsImlhdCI6MTUxMzYxNTQzMSwibmJmIjoxNTEzNjE1NDMxLCJleHAiOjE1NDUxNTE0MzEsInN1YiI6IkM5NkQyMkVFLTNFM0QtNDY4NS04REFDLTBDMjg1RDU0RkYzRSIsInNjb3BlcyI6W119.DhTRixE9-l3v6JezQQIaJK1zgQVH7iWXCqHDs9wbFs709C59ONMjh3Cd3EpuMoryv4QN9wXW5d3IPgOY0se047XlY2sA2an2qjhUte2grghCdmyF7iu9KrDlFEQlGL-zAPZ6TDuVJKDmISL24Re3wVV3p8Tfq02nI1_gjH6Xg17L6PPdB1LYHfq8RGdr3zsvmNSkS_AEUnAWIJaCw20GelAMy7VCdJd-22kN4ObpqjdkZr7tE5Adb-Ay9nhH5_O0RDwmlP2uKjM1A82NDjocRyjmJcfokmurtxCxmoQQ-puxRitZESRCQtgRZCrzG1kncR7-LYcPLA4aXC_qCaksnmUTqsTCvUabg8CcYlovSqtLtspWjULBuMdg5bWNpDYoTPSzv7swhYuI7MOvN61HtvXJcH7hfWNqobyv_yMeA3o4rCyU-HqGBe4Y8KjiyRdoRAog4X1vhgSVf_EEB6vK-XN73vvaak_sOJMvzO9_wjyscvQjyRSsEan40tWOwQrxfzp6eHBhhXgy2nBh0XT6RCkXVImaEQlZj8v-7nUf4GWPUwbKYDM_aTWT9N8nIwPTvMRu4MbsXx8iTZlIEs5env4wYvQ23JryibN72lhFgVUT0Q42fIJ5ZacJvZ2fLa6AiOUKYVqhnvBGb3wVpIL7SW8feJIqwBYT4XT0vLrapqA"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)




                       

                            
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://zpush.zupago.pe/pusher/v2"

  payload := strings.NewReader("; 
name=\"pushuser\"\r\n\r\n04A6AE94-63FF-464C-BE26-E78FE6BE592D\r\n; 
name=\"title\"\r\n\r\nZPush Title \r\n; 
name=\"body\"\r\n\r\nI love ZuPago Push\r\n; 
name=\"safari\"\r\n\r\n1\r\n; 
name=\"posticon\"\r\n\r\nhttps://ama.zupago.pe/favicon.ico\r\n; 
name=\"postUrl\"\r\n\r\nhttps://blog.zupago.pe\r\n; 
name=\"badge\"\r\n\r\nhttps://ama.zupago.pe/badge.ico\r\n; 
name=\"image\"\r\n\r\nhttps://ama.zupago.pe/largeimage.png\r\n; 
name=\"aid1\"\r\n\r\ncoffee-action\r\n; 
name=\"aurl1\"\r\n\r\nhttps://zpush.zupago.pe\r\n; 
name=\"aicon1\"\r\n\r\nhttps://ama.zupago.pe/favicon.ico\r\n; 
name=\"atitle1\"\r\n\r\nAccept\r\n; 
name=\"aid2\"\r\n\r\ndoughnut-action\r\n; 
name=\"aurl2\"\r\n\r\nhttps://zpush.zupago.pe\r\n; 
name=\"aicon2\"\r\n\r\nhttps://ama.zupago.pe/favicon.ico\r\n; 
name=\"atitle2\"\r\n\r\nCancel\r\n; 
name=\"options\"\r\n\r\nnormal\r\n; 
name=\"ttl\"\r\n\r\n3600\r\n; 
name=\"dir\"\r\n\r\nauto\r\n; 
name=\"tag\"\r\n\r\nnews update\r\n; 
name=\"renotify\"\r\n\r\nfalse\r\n; 
name=\"requireInteraction\"\r\n\r\nfalse\r\n; 
name=\"sound\"\r\n\r\nhttps://ama.zupago.pe/sound.mp3\r\n; 
name=\"vibrate\"\r\n\r\n500,110,500,110,450,110,200,110,170,40,450,110,200,110,170,40,500\r\n" )
  req, _ := http.NewRequest("POST", url, payload)

  req.Header.Add("Authorization", "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA1MDhkOGQzN2Y4MzY5ODY4N2U1NjNiYmE3YWUxZDU5NTJlMzYwODE3ZWNhNDE5MDI1OGYyNjBmNTkzNDM2MWFhYTMyM2Y5NDMzYjU4NzI1In0.eyJhdWQiOiIxQTc3MDE5RC0wMEY5LTQyOTItODkxMS1DQTE1RTQyOUNCOUMiLCJqdGkiOiIwNTA4ZDhkMzdmODM2OTg2ODdlNTYzYmJhN2FlMWQ1OTUyZTM2MDgxN2VjYTQxOTAyNThmMjYwZjU5MzQzNjFhYWEzMjNmOTQzM2I1ODcyNSIsImlhdCI6MTUxMzYxNTQzMSwibmJmIjoxNTEzNjE1NDMxLCJleHAiOjE1NDUxNTE0MzEsInN1YiI6IkM5NkQyMkVFLTNFM0QtNDY4NS04REFDLTBDMjg1RDU0RkYzRSIsInNjb3BlcyI6W119.DhTRixE9-l3v6JezQQIaJK1zgQVH7iWXCqHDs9wbFs709C59ONMjh3Cd3EpuMoryv4QN9wXW5d3IPgOY0se047XlY2sA2an2qjhUte2grghCdmyF7iu9KrDlFEQlGL-zAPZ6TDuVJKDmISL24Re3wVV3p8Tfq02nI1_gjH6Xg17L6PPdB1LYHfq8RGdr3zsvmNSkS_AEUnAWIJaCw20GelAMy7VCdJd-22kN4ObpqjdkZr7tE5Adb-Ay9nhH5_O0RDwmlP2uKjM1A82NDjocRyjmJcfokmurtxCxmoQQ-puxRitZESRCQtgRZCrzG1kncR7-LYcPLA4aXC_qCaksnmUTqsTCvUabg8CcYlovSqtLtspWjULBuMdg5bWNpDYoTPSzv7swhYuI7MOvN61HtvXJcH7hfWNqobyv_yMeA3o4rCyU-HqGBe4Y8KjiyRdoRAog4X1vhgSVf_EEB6vK-XN73vvaak_sOJMvzO9_wjyscvQjyRSsEan40tWOwQrxfzp6eHBhhXgy2nBh0XT6RCkXVImaEQlZj8v-7nUf4GWPUwbKYDM_aTWT9N8nIwPTvMRu4MbsXx8iTZlIEs5env4wYvQ23JryibN72lhFgVUT0Q42fIJ5ZacJvZ2fLa6AiOUKYVqhnvBGb3wVpIL7SW8feJIqwBYT4XT0vLrapqA")
  
  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))

}
                        

Method 1


var form = new FormData();
form.append("pushuser", "04A6AE94-63FF-464C-BE26-E78FE6BE592D");
form.append("title", "ZPush Title ");
form.append("body", "I love ZuPago Push");
form.append("safari", 1);
form.append("posticon", "https://ama.zupago.pe/favicon.ico");
form.append("postUrl", "https://blog.zupago.pe");
form.append("badge", "https://ama.zupago.pe/badge.ico");
form.append("image", "https://ama.zupago.pe/largeimage.png");
form.append("aid1", "coffee-action");
form.append("aurl1", "https://zpush.zupago.pe");
form.append("aicon1", "https://ama.zupago.pe/favicon.ico");
form.append("atitle1", "Accept");
form.append("aid2", "doughnut-action");
form.append("aurl2", "https://zpush.zupago.pe");
form.append("aicon2", "https://ama.zupago.pe/favicon.ico");
form.append("atitle2", "Cancel");
form.append("options", "normal");
form.append("ttl", "3600");
form.append("dir", "auto");
form.append("tag", "news update");
form.append("renotify", "false");
form.append("requireInteraction", "false");
form.append("sound", "https://ama.zupago.pe/sound.mp3");
form.append("vibrate", "500,110,500,110,450,110,200,110,170,40,450,110,200,110,170,40,500");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": https://zpush.zupago.pe/pusher/v2,
  "method": "POST",
  "headers": {
    "Accept": "application/json",
    "Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA1MDhkOGQzN2Y4MzY5ODY4N2U1NjNiYmE3YWUxZDU5NTJlMzYwODE3ZWNhNDE5MDI1OGYyNjBmNTkzNDM2MWFhYTMyM2Y5NDMzYjU4NzI1In0.eyJhdWQiOiIxQTc3MDE5RC0wMEY5LTQyOTItODkxMS1DQTE1RTQyOUNCOUMiLCJqdGkiOiIwNTA4ZDhkMzdmODM2OTg2ODdlNTYzYmJhN2FlMWQ1OTUyZTM2MDgxN2VjYTQxOTAyNThmMjYwZjU5MzQzNjFhYWEzMjNmOTQzM2I1ODcyNSIsImlhdCI6MTUxMzYxNTQzMSwibmJmIjoxNTEzNjE1NDMxLCJleHAiOjE1NDUxNTE0MzEsInN1YiI6IkM5NkQyMkVFLTNFM0QtNDY4NS04REFDLTBDMjg1RDU0RkYzRSIsInNjb3BlcyI6W119.DhTRixE9-l3v6JezQQIaJK1zgQVH7iWXCqHDs9wbFs709C59ONMjh3Cd3EpuMoryv4QN9wXW5d3IPgOY0se047XlY2sA2an2qjhUte2grghCdmyF7iu9KrDlFEQlGL-zAPZ6TDuVJKDmISL24Re3wVV3p8Tfq02nI1_gjH6Xg17L6PPdB1LYHfq8RGdr3zsvmNSkS_AEUnAWIJaCw20GelAMy7VCdJd-22kN4ObpqjdkZr7tE5Adb-Ay9nhH5_O0RDwmlP2uKjM1A82NDjocRyjmJcfokmurtxCxmoQQ-puxRitZESRCQtgRZCrzG1kncR7-LYcPLA4aXC_qCaksnmUTqsTCvUabg8CcYlovSqtLtspWjULBuMdg5bWNpDYoTPSzv7swhYuI7MOvN61HtvXJcH7hfWNqobyv_yMeA3o4rCyU-HqGBe4Y8KjiyRdoRAog4X1vhgSVf_EEB6vK-XN73vvaak_sOJMvzO9_wjyscvQjyRSsEan40tWOwQrxfzp6eHBhhXgy2nBh0XT6RCkXVImaEQlZj8v-7nUf4GWPUwbKYDM_aTWT9N8nIwPTvMRu4MbsXx8iTZlIEs5env4wYvQ23JryibN72lhFgVUT0Q42fIJ5ZacJvZ2fLa6AiOUKYVqhnvBGb3wVpIL7SW8feJIqwBYT4XT0vLrapqA",
  },
  "processData": false,
  "contentType": false,
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
}); 



Method 2

var data = new FormData();
data.append("pushuser", "04A6AE94-63FF-464C-BE26-E78FE6BE592D");
data.append("title", "ZPush Title ");
data.append("body", "I love ZuPago Push");
data.append("safari", 1);
data.append("posticon", "https://ama.zupago.pe/favicon.ico");
data.append("postUrl", "https://blog.zupago.pe");
data.append("badge", "https://ama.zupago.pe/badge.ico");
data.append("image", "https://ama.zupago.pe/largeimage.png");
data.append("aid1", "coffee-action");
data.append("aurl1", "https://zpush.zupago.pe");
data.append("aicon1", "https://ama.zupago.pe/favicon.ico");
data.append("atitle1", "Accept");
data.append("aid2", "doughnut-action");
data.append("aurl2", "https://zpush.zupago.pe");
data.append("aicon2", "https://ama.zupago.pe/favicon.ico");
data.append("atitle2", "Cancel");
data.append("options", "normal");
data.append("ttl", "3600");
data.append("dir", "auto");
data.append("tag", "news update");
data.append("renotify", "false");
data.append("requireInteraction", "false");
data.append("sound", "https://ama.zupago.pe/sound.mp3");
data.append("vibrate", "500,110,500,110,450,110,200,110,170,40,450,110,200,110,170,40,500");

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://zpush.zupago.pe/pusher/v2");
xhr.setRequestHeader("Accept", "application/json");
xhr.setRequestHeader("Authorization", "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA1MDhkOGQzN2Y4MzY5ODY4N2U1NjNiYmE3YWUxZDU5NTJlMzYwODE3ZWNhNDE5MDI1OGYyNjBmNTkzNDM2MWFhYTMyM2Y5NDMzYjU4NzI1In0.eyJhdWQiOiIxQTc3MDE5RC0wMEY5LTQyOTItODkxMS1DQTE1RTQyOUNCOUMiLCJqdGkiOiIwNTA4ZDhkMzdmODM2OTg2ODdlNTYzYmJhN2FlMWQ1OTUyZTM2MDgxN2VjYTQxOTAyNThmMjYwZjU5MzQzNjFhYWEzMjNmOTQzM2I1ODcyNSIsImlhdCI6MTUxMzYxNTQzMSwibmJmIjoxNTEzNjE1NDMxLCJleHAiOjE1NDUxNTE0MzEsInN1YiI6IkM5NkQyMkVFLTNFM0QtNDY4NS04REFDLTBDMjg1RDU0RkYzRSIsInNjb3BlcyI6W119.DhTRixE9-l3v6JezQQIaJK1zgQVH7iWXCqHDs9wbFs709C59ONMjh3Cd3EpuMoryv4QN9wXW5d3IPgOY0se047XlY2sA2an2qjhUte2grghCdmyF7iu9KrDlFEQlGL-zAPZ6TDuVJKDmISL24Re3wVV3p8Tfq02nI1_gjH6Xg17L6PPdB1LYHfq8RGdr3zsvmNSkS_AEUnAWIJaCw20GelAMy7VCdJd-22kN4ObpqjdkZr7tE5Adb-Ay9nhH5_O0RDwmlP2uKjM1A82NDjocRyjmJcfokmurtxCxmoQQ-puxRitZESRCQtgRZCrzG1kncR7-LYcPLA4aXC_qCaksnmUTqsTCvUabg8CcYlovSqtLtspWjULBuMdg5bWNpDYoTPSzv7swhYuI7MOvN61HtvXJcH7hfWNqobyv_yMeA3o4rCyU-HqGBe4Y8KjiyRdoRAog4X1vhgSVf_EEB6vK-XN73vvaak_sOJMvzO9_wjyscvQjyRSsEan40tWOwQrxfzp6eHBhhXgy2nBh0XT6RCkXVImaEQlZj8v-7nUf4GWPUwbKYDM_aTWT9N8nIwPTvMRu4MbsXx8iTZlIEs5env4wYvQ23JryibN72lhFgVUT0Q42fIJ5ZacJvZ2fLa6AiOUKYVqhnvBGb3wVpIL7SW8feJIqwBYT4XT0vLrapqA");

xhr.send(data);
                        

import Foundation

let headers = [
  "Accept": "application/json",
  "Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA1MDhkOGQzN2Y4MzY5ODY4N2U1NjNiYmE3YWUxZDU5NTJlMzYwODE3ZWNhNDE5MDI1OGYyNjBmNTkzNDM2MWFhYTMyM2Y5NDMzYjU4NzI1In0.eyJhdWQiOiIxQTc3MDE5RC0wMEY5LTQyOTItODkxMS1DQTE1RTQyOUNCOUMiLCJqdGkiOiIwNTA4ZDhkMzdmODM2OTg2ODdlNTYzYmJhN2FlMWQ1OTUyZTM2MDgxN2VjYTQxOTAyNThmMjYwZjU5MzQzNjFhYWEzMjNmOTQzM2I1ODcyNSIsImlhdCI6MTUxMzYxNTQzMSwibmJmIjoxNTEzNjE1NDMxLCJleHAiOjE1NDUxNTE0MzEsInN1YiI6IkM5NkQyMkVFLTNFM0QtNDY4NS04REFDLTBDMjg1RDU0RkYzRSIsInNjb3BlcyI6W119.DhTRixE9-l3v6JezQQIaJK1zgQVH7iWXCqHDs9wbFs709C59ONMjh3Cd3EpuMoryv4QN9wXW5d3IPgOY0se047XlY2sA2an2qjhUte2grghCdmyF7iu9KrDlFEQlGL-zAPZ6TDuVJKDmISL24Re3wVV3p8Tfq02nI1_gjH6Xg17L6PPdB1LYHfq8RGdr3zsvmNSkS_AEUnAWIJaCw20GelAMy7VCdJd-22kN4ObpqjdkZr7tE5Adb-Ay9nhH5_O0RDwmlP2uKjM1A82NDjocRyjmJcfokmurtxCxmoQQ-puxRitZESRCQtgRZCrzG1kncR7-LYcPLA4aXC_qCaksnmUTqsTCvUabg8CcYlovSqtLtspWjULBuMdg5bWNpDYoTPSzv7swhYuI7MOvN61HtvXJcH7hfWNqobyv_yMeA3o4rCyU-HqGBe4Y8KjiyRdoRAog4X1vhgSVf_EEB6vK-XN73vvaak_sOJMvzO9_wjyscvQjyRSsEan40tWOwQrxfzp6eHBhhXgy2nBh0XT6RCkXVImaEQlZj8v-7nUf4GWPUwbKYDM_aTWT9N8nIwPTvMRu4MbsXx8iTZlIEs5env4wYvQ23JryibN72lhFgVUT0Q42fIJ5ZacJvZ2fLa6AiOUKYVqhnvBGb3wVpIL7SW8feJIqwBYT4XT0vLrapqA"
]
let parameters = [
  [
    "name": "pushuser",
    "value": "04A6AE94-63FF-464C-BE26-E78FE6BE592D"
  ],
  [
    "name": "title",
    "value": "ZPush Title "
  ],
  [
    "name": "body",
    "value": "I love ZuPago Push"
  ],
  [
    "name": "safari",
    "value": "1"
  ],
  [
    "name": "posticon",
    "value": "https://ama.zupago.pe/favicon.ico"
  ],
  [
    "name": "postUrl",
    "value": "https://blog.zupago.pe"
  ],
  [
    "name": "badge",
    "value": "https://ama.zupago.pe/badge.ico"
  ],
  [
    "name": "image",
    "value": "https://ama.zupago.pe/largeimage.png"
  ],
  [
    "name": "aid1",
    "value": "coffee-action"
  ],
  [
    "name": "aurl1",
    "value": "https://zpush.zupago.pe"
  ],
  [
    "name": "aicon1",
    "value": "https://ama.zupago.pe/favicon.ico"
  ],
  [
    "name": "atitle1",
    "value": "Accept"
  ],
  [
    "name": "aid2",
    "value": "doughnut-action"
  ],
  [
    "name": "aurl2",
    "value": "https://zpush.zupago.pe"
  ],
  [
    "name": "aicon2",
    "value": "https://ama.zupago.pe/favicon.ico"
  ],
  [
    "name": "atitle2",
    "value": "Cancel"
  ],
  [
    "name": "options",
    "value": "normal"
  ],
  [
    "name": "ttl",
    "value": "3600"
  ],
  [
    "name": "dir",
    "value": "auto"
  ],
  [
    "name": "tag",
    "value": "news update"
  ],
  [
    "name": "renotify",
    "value": "false"
  ],
  [
    "name": "requireInteraction",
    "value": "false"
  ],
  [
    "name": "sound",
    "value": "https://ama.zupago.pe/sound.mp3"
  ],
  [
    "name": "vibrate",
    "value": "500,110,500,110,450,110,200,110,170,40,450,110,200,110,170,40,500"
  ]
]

var body = ""
var error: NSError? = nil
for param in parameters {
  let paramName = param["name"]!
  body += "; name=\"\(paramName)\""
  if let filename = param["fileName"] {
    let fileContent = String(contentsOfFile: filename, encoding: String.Encoding.utf8)
    if (error != nil) {
      print(error)
    }
    body += "; filename=\"\(filename)\"\r\n"
    body += fileContent
  } else if let paramValue = param["value"] {
    body += "\r\n\r\n\(paramValue)"
  }
}

let request = NSMutableURLRequest(url: NSURL(string: "https://zpush.zupago.pe/pusher/v2")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()

                       

var client = new RestClient("https://zpush.zupago.pe/pusher/v2");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA1MDhkOGQzN2Y4MzY5ODY4N2U1NjNiYmE3YWUxZDU5NTJlMzYwODE3ZWNhNDE5MDI1OGYyNjBmNTkzNDM2MWFhYTMyM2Y5NDMzYjU4NzI1In0.eyJhdWQiOiIxQTc3MDE5RC0wMEY5LTQyOTItODkxMS1DQTE1RTQyOUNCOUMiLCJqdGkiOiIwNTA4ZDhkMzdmODM2OTg2ODdlNTYzYmJhN2FlMWQ1OTUyZTM2MDgxN2VjYTQxOTAyNThmMjYwZjU5MzQzNjFhYWEzMjNmOTQzM2I1ODcyNSIsImlhdCI6MTUxMzYxNTQzMSwibmJmIjoxNTEzNjE1NDMxLCJleHAiOjE1NDUxNTE0MzEsInN1YiI6IkM5NkQyMkVFLTNFM0QtNDY4NS04REFDLTBDMjg1RDU0RkYzRSIsInNjb3BlcyI6W119.DhTRixE9-l3v6JezQQIaJK1zgQVH7iWXCqHDs9wbFs709C59ONMjh3Cd3EpuMoryv4QN9wXW5d3IPgOY0se047XlY2sA2an2qjhUte2grghCdmyF7iu9KrDlFEQlGL-zAPZ6TDuVJKDmISL24Re3wVV3p8Tfq02nI1_gjH6Xg17L6PPdB1LYHfq8RGdr3zsvmNSkS_AEUnAWIJaCw20GelAMy7VCdJd-22kN4ObpqjdkZr7tE5Adb-Ay9nhH5_O0RDwmlP2uKjM1A82NDjocRyjmJcfokmurtxCxmoQQ-puxRitZESRCQtgRZCrzG1kncR7-LYcPLA4aXC_qCaksnmUTqsTCvUabg8CcYlovSqtLtspWjULBuMdg5bWNpDYoTPSzv7swhYuI7MOvN61HtvXJcH7hfWNqobyv_yMeA3o4rCyU-HqGBe4Y8KjiyRdoRAog4X1vhgSVf_EEB6vK-XN73vvaak_sOJMvzO9_wjyscvQjyRSsEan40tWOwQrxfzp6eHBhhXgy2nBh0XT6RCkXVImaEQlZj8v-7nUf4GWPUwbKYDM_aTWT9N8nIwPTvMRu4MbsXx8iTZlIEs5env4wYvQ23JryibN72lhFgVUT0Q42fIJ5ZacJvZ2fLa6AiOUKYVqhnvBGb3wVpIL7SW8feJIqwBYT4XT0vLrapqA");
request.AddHeader("Accept", "application/json");
request.AddParameter("; 
name=\"pushuser\"\r\n\r\n04A6AE94-63FF-464C-BE26-E78FE6BE592D\r\n; 
name=\"title\"\r\n\r\nZPush Title \r\n; 
name=\"body\"\r\n\r\nI love ZuPago Push\r\n; 
name=\"safari\"\r\n\r\n1\r\n; 
name=\"posticon\"\r\n\r\nhttps://ama.zupago.pe/favicon.ico\r\n; 
name=\"postUrl\"\r\n\r\nhttps://blog.zupago.pe\r\n; 
name=\"badge\"\r\n\r\nhttps://ama.zupago.pe/badge.ico\r\n; 
name=\"image\"\r\n\r\nhttps://ama.zupago.pe/largeimage.png\r\n; 
name=\"aid1\"\r\n\r\ncoffee-action\r\n; 
name=\"aurl1\"\r\n\r\nhttps://zpush.zupago.pe\r\n; 
name=\"aicon1\"\r\n\r\nhttps://ama.zupago.pe/favicon.ico\r\n; 
name=\"atitle1\"\r\n\r\nAccept\r\n; 
name=\"aid2\"\r\n\r\ndoughnut-action\r\n; 
name=\"aurl2\"\r\n\r\nhttps://zpush.zupago.pe\r\n; 
name=\"aicon2\"\r\n\r\nhttps://ama.zupago.pe/favicon.ico\r\n; 
name=\"atitle2\"\r\n\r\nCancel\r\n; 
name=\"options\"\r\n\r\nnormal\r\n; 
name=\"ttl\"\r\n\r\n3600\r\n; 
name=\"dir\"\r\n\r\nauto\r\n; 
name=\"tag\"\r\n\r\nnews update\r\n; 
name=\"renotify\"\r\n\r\nfalse\r\n; 
name=\"requireInteraction\"\r\n\r\nfalse\r\n; 
name=\"sound\"\r\n\r\nhttps://ama.zupago.pe/sound.mp3\r\n; 
name=\"vibrate\"\r\n\r\n500,110,500,110,450,110,200,110,170,40,450,110,200,110,170,40,500\r\n")
IRestResponse response = client.Execute(request);

       

                        


Push Notificaion Filter


You may target users in any ways using below methods: by , by Filter, or by Device. At least one targeting parameter must be specified.
  • Filter ( Location & Language )
You may only use one method of targeting users If a targeting parameter of one type is used,
then targeting parameters from other types may not be used. For instance, you cannot use the
segments parameter (from segments) with the filters.

Send to Users Based on Filters

Filters are a powerful way to target users, allowing you to use both data that ZuPago Push has about a user and any Tags your app may send ZuPago Push. Filters can be combined together to form advanced, highly precise user targeting. ZuPago Push customers use all sorts of filters to send notifications, including language, location, user activity, and more. The filters parameter targets notification recipients using an array of JSON objects containing field conditions to check. The following are filter field options:

Option Description
lang
string

value = 2 character language code. Example: "en". For a list of all language codes go here

country
string

value = 2-digit Country code
Example: "field": "country", "US"

Requires Personal Access Tokens. Get your ZuPago Push App Personal Access Tokens, check here.

Send to Specific Devices

Finally, you may also target specific devices with the create notification method. Targeting devices is typically used in two ways: For notifications that target individual users, such as if they've received a message from someone. For apps that wish to manage their own segments, such as tracking a user's followers and sending notifications to them when that user posts. When targeting specific devices, you may use any of the following parameters together:

Parameter Type Description
subId
array_string
Specific Subscriber to send your notification to. It require API Auth Key.
Do not combine with other targeting parameters. Not compatible with any other targeting parameters.
Example: ["1dd608f2-c6a1-11e3-851d-000c2940e62c"]
Limit of 5,000 entries per REST API call

NEVER use your 'Personal Access Tokens' in client code, it is intended for use on your system or server only.
Add the Personal Access Tokens to the HTTP 'Authorization' header as basic authentication. check here.for some tips.



Send to Segments

Segments are the most common way developers send notifications via ZuPago Push. Sending to
segments is easy: you simply specify which segments you want to send to, and, optionally, which ones you don't.

Parameter Type Description
included101
array_string
REQUIRED The segment names you want to target. Users in these segments will receive a
notification. This targeting parameter is only compatible with excluded_segments.
Example: ["Active Users", "Inactive Users"]
excluded101
array_string
Segment that will be excluded when sending. Users in these segments will not 
receive a notification, even if they were included in included_segments.
This targeting parameter is only compatible with included_segments.
Example: ["Active Users", "Inactive Users"]
Requires Personal Access Tokens. Get your ZuPago Push App Personal Access Tokens, check here.




Stop, Trash & Delete Notification(s)

  1. Stop a scheduled or currently outgoing notification Url:
    https://zpush.zupago.pe/pusher/v2/stop 
  2. Trash sent, schoduled & Template Notification Url:
    https://zpush.zupago.pe/pusher/v2/trash
  3. Delete Notification here you can pass (id) & (ids) as Parameter Url:
    https://zpush.zupago.pe/pusher/v2/delete 


Parameter Type Description
id
array_string
REQUIRED Notification Id  find out more here

i:e 2A1B8890-20F0-4A92-A75E-501E69AA009E

ids
array_string
REQUIRED Notification Id  find out more here

i:e 95ABAF54-8D1F-4A3B-A727-1CD8D19F23A9, 5070C3A3-9371-4F1B-ADC2-9E73A656D181

pushuser
string
REQUIRED Notification App Id



  
Stop a scheduled or currently outgoing notification
curl -X POST \ https://zpush.zupago.pe/pusher/v2/stop \ -H 'Accept: application/json' \ -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA1MDhkOGQzN2Y4MzY5ODY4N2U1NjNiYmE3YWUxZDU5NTJlMzYwODE3ZWNhNDE5MDI1OGYyNjBmNTkzNDM2MWFhYTMyM2Y5NDMzYjU4NzI1In0.eyJhdWQiOiIxQTc3MDE5RC0wMEY5LTQyOTItODkxMS1DQTE1RTQyOUNCOUMiLCJqdGkiOiIwNTA4ZDhkMzdmODM2OTg2ODdlNTYzYmJhN2FlMWQ1OTUyZTM2MDgxN2VjYTQxOTAyNThmMjYwZjU5MzQzNjFhYWEzMjNmOTQzM2I1ODcyNSIsImlhdCI6MTUxMzYxNTQzMSwibmJmIjoxNTEzNjE1NDMxLCJleHAiOjE1NDUxNTE0MzEsInN1YiI6IkM5NkQyMkVFLTNFM0QtNDY4NS04REFDLTBDMjg1RDU0RkYzRSIsInNjb3BlcyI6W119.DhTRixE9-l3v6JezQQIaJK1zgQVH7iWXCqHDs9wbFs709C59ONMjh3Cd3EpuMoryv4QN9wXW5d3IPgOY0se047XlY2sA2an2qjhUte2grghCdmyF7iu9KrDlFEQlGL-zAPZ6TDuVJKDmISL24Re3wVV3p8Tfq02nI1_gjH6Xg17L6PPdB1LYHfq8RGdr3zsvmNSkS_AEUnAWIJaCw20GelAMy7VCdJd-22kN4ObpqjdkZr7tE5Adb-Ay9nhH5_O0RDwmlP2uKjM1A82NDjocRyjmJcfokmurtxCxmoQQ-puxRitZESRCQtgRZCrzG1kncR7-LYcPLA4aXC_qCaksnmUTqsTCvUabg8CcYlovSqtLtspWjULBuMdg5bWNpDYoTPSzv7swhYuI7MOvN61HtvXJcH7hfWNqobyv_yMeA3o4rCyU-HqGBe4Y8KjiyRdoRAog4X1vhgSVf_EEB6vK-XN73vvaak_sOJMvzO9_wjyscvQjyRSsEan40tWOwQrxfzp6eHBhhXgy2nBh0XT6RCkXVImaEQlZj8v-7nUf4GWPUwbKYDM_aTWT9N8nIwPTvMRu4MbsXx8iTZlIEs5env4wYvQ23JryibN72lhFgVUT0Q42fIJ5ZacJvZ2fLa6AiOUKYVqhnvBGb3wVpIL7SW8feJIqwBYT4XT0vLrapqA' \ -d id=2A1B8890-20F0-4A92-A75E-501E69AA009E \ -d pushuser=BF373CB6-82D7-48AE-BE8C-6B4F781C8755 Respones: {"success": true }
Trash sent, schoduled & Template Notification
curl -X POST \ https://zpush.zupago.pe/pusher/v2/trash \ -H 'Accept: application/json' \ -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA1MDhkOGQzN2Y4MzY5ODY4N2U1NjNiYmE3YWUxZDU5NTJlMzYwODE3ZWNhNDE5MDI1OGYyNjBmNTkzNDM2MWFhYTMyM2Y5NDMzYjU4NzI1In0.eyJhdWQiOiIxQTc3MDE5RC0wMEY5LTQyOTItODkxMS1DQTE1RTQyOUNCOUMiLCJqdGkiOiIwNTA4ZDhkMzdmODM2OTg2ODdlNTYzYmJhN2FlMWQ1OTUyZTM2MDgxN2VjYTQxOTAyNThmMjYwZjU5MzQzNjFhYWEzMjNmOTQzM2I1ODcyNSIsImlhdCI6MTUxMzYxNTQzMSwibmJmIjoxNTEzNjE1NDMxLCJleHAiOjE1NDUxNTE0MzEsInN1YiI6IkM5NkQyMkVFLTNFM0QtNDY4NS04REFDLTBDMjg1RDU0RkYzRSIsInNjb3BlcyI6W119.DhTRixE9-l3v6JezQQIaJK1zgQVH7iWXCqHDs9wbFs709C59ONMjh3Cd3EpuMoryv4QN9wXW5d3IPgOY0se047XlY2sA2an2qjhUte2grghCdmyF7iu9KrDlFEQlGL-zAPZ6TDuVJKDmISL24Re3wVV3p8Tfq02nI1_gjH6Xg17L6PPdB1LYHfq8RGdr3zsvmNSkS_AEUnAWIJaCw20GelAMy7VCdJd-22kN4ObpqjdkZr7tE5Adb-Ay9nhH5_O0RDwmlP2uKjM1A82NDjocRyjmJcfokmurtxCxmoQQ-puxRitZESRCQtgRZCrzG1kncR7-LYcPLA4aXC_qCaksnmUTqsTCvUabg8CcYlovSqtLtspWjULBuMdg5bWNpDYoTPSzv7swhYuI7MOvN61HtvXJcH7hfWNqobyv_yMeA3o4rCyU-HqGBe4Y8KjiyRdoRAog4X1vhgSVf_EEB6vK-XN73vvaak_sOJMvzO9_wjyscvQjyRSsEan40tWOwQrxfzp6eHBhhXgy2nBh0XT6RCkXVImaEQlZj8v-7nUf4GWPUwbKYDM_aTWT9N8nIwPTvMRu4MbsXx8iTZlIEs5env4wYvQ23JryibN72lhFgVUT0Q42fIJ5ZacJvZ2fLa6AiOUKYVqhnvBGb3wVpIL7SW8feJIqwBYT4XT0vLrapqA' \ -d id=2A1B8890-20F0-4A92-A75E-501E69AA009E \ -d pushuser=BF373CB6-82D7-48AE-BE8C-6B4F781C8755 Respones: {"success": true }
Delete Notification here you can pass (id) & (ids) as Parameter
curl -X POST \ https://zpush.zupago.pe/pusher/v2/delete \ -H 'Accept: application/json' \ -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA1MDhkOGQzN2Y4MzY5ODY4N2U1NjNiYmE3YWUxZDU5NTJlMzYwODE3ZWNhNDE5MDI1OGYyNjBmNTkzNDM2MWFhYTMyM2Y5NDMzYjU4NzI1In0.eyJhdWQiOiIxQTc3MDE5RC0wMEY5LTQyOTItODkxMS1DQTE1RTQyOUNCOUMiLCJqdGkiOiIwNTA4ZDhkMzdmODM2OTg2ODdlNTYzYmJhN2FlMWQ1OTUyZTM2MDgxN2VjYTQxOTAyNThmMjYwZjU5MzQzNjFhYWEzMjNmOTQzM2I1ODcyNSIsImlhdCI6MTUxMzYxNTQzMSwibmJmIjoxNTEzNjE1NDMxLCJleHAiOjE1NDUxNTE0MzEsInN1YiI6IkM5NkQyMkVFLTNFM0QtNDY4NS04REFDLTBDMjg1RDU0RkYzRSIsInNjb3BlcyI6W119.DhTRixE9-l3v6JezQQIaJK1zgQVH7iWXCqHDs9wbFs709C59ONMjh3Cd3EpuMoryv4QN9wXW5d3IPgOY0se047XlY2sA2an2qjhUte2grghCdmyF7iu9KrDlFEQlGL-zAPZ6TDuVJKDmISL24Re3wVV3p8Tfq02nI1_gjH6Xg17L6PPdB1LYHfq8RGdr3zsvmNSkS_AEUnAWIJaCw20GelAMy7VCdJd-22kN4ObpqjdkZr7tE5Adb-Ay9nhH5_O0RDwmlP2uKjM1A82NDjocRyjmJcfokmurtxCxmoQQ-puxRitZESRCQtgRZCrzG1kncR7-LYcPLA4aXC_qCaksnmUTqsTCvUabg8CcYlovSqtLtspWjULBuMdg5bWNpDYoTPSzv7swhYuI7MOvN61HtvXJcH7hfWNqobyv_yMeA3o4rCyU-HqGBe4Y8KjiyRdoRAog4X1vhgSVf_EEB6vK-XN73vvaak_sOJMvzO9_wjyscvQjyRSsEan40tWOwQrxfzp6eHBhhXgy2nBh0XT6RCkXVImaEQlZj8v-7nUf4GWPUwbKYDM_aTWT9N8nIwPTvMRu4MbsXx8iTZlIEs5env4wYvQ23JryibN72lhFgVUT0Q42fIJ5ZacJvZ2fLa6AiOUKYVqhnvBGb3wVpIL7SW8feJIqwBYT4XT0vLrapqA' \ -d id=2A1B8890-20F0-4A92-A75E-501E69AA009E \ -d pushuser=BF373CB6-82D7-48AE-BE8C-6B4F781C8755 Respones: {"success": true }

  
Stop a scheduled or currently outgoing notification
$curl = curl_init(); $data = array( 'pushuser' => 'BF373CB6-82D7-48AE-BE8C-6B4F781C8755', 'id' => '2A1B8890-20F0-4A92-A75E-501E69AA009E', ); curl_setopt_array($curl, array( CURLOPT_PORT => "443", CURLOPT_URL => "https://zpush.zupago.pe/pusher/v2/stop", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST = $data, CURLOPT_HTTPHEADER => array( "Accept: application/json", "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA1MDhkOGQzN2Y4MzY5ODY4N2U1NjNiYmE3YWUxZDU5NTJlMzYwODE3ZWNhNDE5MDI1OGYyNjBmNTkzNDM2MWFhYTMyM2Y5NDMzYjU4NzI1In0.eyJhdWQiOiIxQTc3MDE5RC0wMEY5LTQyOTItODkxMS1DQTE1RTQyOUNCOUMiLCJqdGkiOiIwNTA4ZDhkMzdmODM2OTg2ODdlNTYzYmJhN2FlMWQ1OTUyZTM2MDgxN2VjYTQxOTAyNThmMjYwZjU5MzQzNjFhYWEzMjNmOTQzM2I1ODcyNSIsImlhdCI6MTUxMzYxNTQzMSwibmJmIjoxNTEzNjE1NDMxLCJleHAiOjE1NDUxNTE0MzEsInN1YiI6IkM5NkQyMkVFLTNFM0QtNDY4NS04REFDLTBDMjg1RDU0RkYzRSIsInNjb3BlcyI6W119.DhTRixE9-l3v6JezQQIaJK1zgQVH7iWXCqHDs9wbFs709C59ONMjh3Cd3EpuMoryv4QN9wXW5d3IPgOY0se047XlY2sA2an2qjhUte2grghCdmyF7iu9KrDlFEQlGL-zAPZ6TDuVJKDmISL24Re3wVV3p8Tfq02nI1_gjH6Xg17L6PPdB1LYHfq8RGdr3zsvmNSkS_AEUnAWIJaCw20GelAMy7VCdJd-22kN4ObpqjdkZr7tE5Adb-Ay9nhH5_O0RDwmlP2uKjM1A82NDjocRyjmJcfokmurtxCxmoQQ-puxRitZESRCQtgRZCrzG1kncR7-LYcPLA4aXC_qCaksnmUTqsTCvUabg8CcYlovSqtLtspWjULBuMdg5bWNpDYoTPSzv7swhYuI7MOvN61HtvXJcH7hfWNqobyv_yMeA3o4rCyU-HqGBe4Y8KjiyRdoRAog4X1vhgSVf_EEB6vK-XN73vvaak_sOJMvzO9_wjyscvQjyRSsEan40tWOwQrxfzp6eHBhhXgy2nBh0XT6RCkXVImaEQlZj8v-7nUf4GWPUwbKYDM_aTWT9N8nIwPTvMRu4MbsXx8iTZlIEs5env4wYvQ23JryibN72lhFgVUT0Q42fIJ5ZacJvZ2fLa6AiOUKYVqhnvBGb3wVpIL7SW8feJIqwBYT4XT0vLrapqA" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; } Respones: {"success": true }
Trash sent, schoduled & Template Notification
$curl = curl_init(); $data = array( 'pushuser' => 'BF373CB6-82D7-48AE-BE8C-6B4F781C8755', 'id' => '2A1B8890-20F0-4A92-A75E-501E69AA009E', ); curl_setopt_array($curl, array( CURLOPT_PORT => "443", CURLOPT_URL => "https://zpush.zupago.pe/pusher/v2/trash", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST = $data, CURLOPT_HTTPHEADER => array( "Accept: application/json", "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA1MDhkOGQzN2Y4MzY5ODY4N2U1NjNiYmE3YWUxZDU5NTJlMzYwODE3ZWNhNDE5MDI1OGYyNjBmNTkzNDM2MWFhYTMyM2Y5NDMzYjU4NzI1In0.eyJhdWQiOiIxQTc3MDE5RC0wMEY5LTQyOTItODkxMS1DQTE1RTQyOUNCOUMiLCJqdGkiOiIwNTA4ZDhkMzdmODM2OTg2ODdlNTYzYmJhN2FlMWQ1OTUyZTM2MDgxN2VjYTQxOTAyNThmMjYwZjU5MzQzNjFhYWEzMjNmOTQzM2I1ODcyNSIsImlhdCI6MTUxMzYxNTQzMSwibmJmIjoxNTEzNjE1NDMxLCJleHAiOjE1NDUxNTE0MzEsInN1YiI6IkM5NkQyMkVFLTNFM0QtNDY4NS04REFDLTBDMjg1RDU0RkYzRSIsInNjb3BlcyI6W119.DhTRixE9-l3v6JezQQIaJK1zgQVH7iWXCqHDs9wbFs709C59ONMjh3Cd3EpuMoryv4QN9wXW5d3IPgOY0se047XlY2sA2an2qjhUte2grghCdmyF7iu9KrDlFEQlGL-zAPZ6TDuVJKDmISL24Re3wVV3p8Tfq02nI1_gjH6Xg17L6PPdB1LYHfq8RGdr3zsvmNSkS_AEUnAWIJaCw20GelAMy7VCdJd-22kN4ObpqjdkZr7tE5Adb-Ay9nhH5_O0RDwmlP2uKjM1A82NDjocRyjmJcfokmurtxCxmoQQ-puxRitZESRCQtgRZCrzG1kncR7-LYcPLA4aXC_qCaksnmUTqsTCvUabg8CcYlovSqtLtspWjULBuMdg5bWNpDYoTPSzv7swhYuI7MOvN61HtvXJcH7hfWNqobyv_yMeA3o4rCyU-HqGBe4Y8KjiyRdoRAog4X1vhgSVf_EEB6vK-XN73vvaak_sOJMvzO9_wjyscvQjyRSsEan40tWOwQrxfzp6eHBhhXgy2nBh0XT6RCkXVImaEQlZj8v-7nUf4GWPUwbKYDM_aTWT9N8nIwPTvMRu4MbsXx8iTZlIEs5env4wYvQ23JryibN72lhFgVUT0Q42fIJ5ZacJvZ2fLa6AiOUKYVqhnvBGb3wVpIL7SW8feJIqwBYT4XT0vLrapqA" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; } Respones: {"success": true }
Delete Notification here you can pass (id) & (ids) as Parameter
$curl = curl_init(); $data = array( 'pushuser' => 'BF373CB6-82D7-48AE-BE8C-6B4F781C8755', 'id' => '2A1B8890-20F0-4A92-A75E-501E69AA009E', ); curl_setopt_array($curl, array( CURLOPT_PORT => "443", CURLOPT_URL => "https://zpush.zupago.pe/pusher/v2/delete", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST = $data, CURLOPT_HTTPHEADER => array( "Accept: application/json", "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA1MDhkOGQzN2Y4MzY5ODY4N2U1NjNiYmE3YWUxZDU5NTJlMzYwODE3ZWNhNDE5MDI1OGYyNjBmNTkzNDM2MWFhYTMyM2Y5NDMzYjU4NzI1In0.eyJhdWQiOiIxQTc3MDE5RC0wMEY5LTQyOTItODkxMS1DQTE1RTQyOUNCOUMiLCJqdGkiOiIwNTA4ZDhkMzdmODM2OTg2ODdlNTYzYmJhN2FlMWQ1OTUyZTM2MDgxN2VjYTQxOTAyNThmMjYwZjU5MzQzNjFhYWEzMjNmOTQzM2I1ODcyNSIsImlhdCI6MTUxMzYxNTQzMSwibmJmIjoxNTEzNjE1NDMxLCJleHAiOjE1NDUxNTE0MzEsInN1YiI6IkM5NkQyMkVFLTNFM0QtNDY4NS04REFDLTBDMjg1RDU0RkYzRSIsInNjb3BlcyI6W119.DhTRixE9-l3v6JezQQIaJK1zgQVH7iWXCqHDs9wbFs709C59ONMjh3Cd3EpuMoryv4QN9wXW5d3IPgOY0se047XlY2sA2an2qjhUte2grghCdmyF7iu9KrDlFEQlGL-zAPZ6TDuVJKDmISL24Re3wVV3p8Tfq02nI1_gjH6Xg17L6PPdB1LYHfq8RGdr3zsvmNSkS_AEUnAWIJaCw20GelAMy7VCdJd-22kN4ObpqjdkZr7tE5Adb-Ay9nhH5_O0RDwmlP2uKjM1A82NDjocRyjmJcfokmurtxCxmoQQ-puxRitZESRCQtgRZCrzG1kncR7-LYcPLA4aXC_qCaksnmUTqsTCvUabg8CcYlovSqtLtspWjULBuMdg5bWNpDYoTPSzv7swhYuI7MOvN61HtvXJcH7hfWNqobyv_yMeA3o4rCyU-HqGBe4Y8KjiyRdoRAog4X1vhgSVf_EEB6vK-XN73vvaak_sOJMvzO9_wjyscvQjyRSsEan40tWOwQrxfzp6eHBhhXgy2nBh0XT6RCkXVImaEQlZj8v-7nUf4GWPUwbKYDM_aTWT9N8nIwPTvMRu4MbsXx8iTZlIEs5env4wYvQ23JryibN72lhFgVUT0Q42fIJ5ZacJvZ2fLa6AiOUKYVqhnvBGb3wVpIL7SW8feJIqwBYT4XT0vLrapqA" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; } Respones: {"success": true }
                    
   
Stop a scheduled or currently outgoing notification
var request = require("request"); var options = { method: 'POST', url: 'https://zpush.zupago.pe/pusher/v2/stop', headers: { Authorization: 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA1MDhkOGQzN2Y4MzY5ODY4N2U1NjNiYmE3YWUxZDU5NTJlMzYwODE3ZWNhNDE5MDI1OGYyNjBmNTkzNDM2MWFhYTMyM2Y5NDMzYjU4NzI1In0.eyJhdWQiOiIxQTc3MDE5RC0wMEY5LTQyOTItODkxMS1DQTE1RTQyOUNCOUMiLCJqdGkiOiIwNTA4ZDhkMzdmODM2OTg2ODdlNTYzYmJhN2FlMWQ1OTUyZTM2MDgxN2VjYTQxOTAyNThmMjYwZjU5MzQzNjFhYWEzMjNmOTQzM2I1ODcyNSIsImlhdCI6MTUxMzYxNTQzMSwibmJmIjoxNTEzNjE1NDMxLCJleHAiOjE1NDUxNTE0MzEsInN1YiI6IkM5NkQyMkVFLTNFM0QtNDY4NS04REFDLTBDMjg1RDU0RkYzRSIsInNjb3BlcyI6W119.DhTRixE9-l3v6JezQQIaJK1zgQVH7iWXCqHDs9wbFs709C59ONMjh3Cd3EpuMoryv4QN9wXW5d3IPgOY0se047XlY2sA2an2qjhUte2grghCdmyF7iu9KrDlFEQlGL-zAPZ6TDuVJKDmISL24Re3wVV3p8Tfq02nI1_gjH6Xg17L6PPdB1LYHfq8RGdr3zsvmNSkS_AEUnAWIJaCw20GelAMy7VCdJd-22kN4ObpqjdkZr7tE5Adb-Ay9nhH5_O0RDwmlP2uKjM1A82NDjocRyjmJcfokmurtxCxmoQQ-puxRitZESRCQtgRZCrzG1kncR7-LYcPLA4aXC_qCaksnmUTqsTCvUabg8CcYlovSqtLtspWjULBuMdg5bWNpDYoTPSzv7swhYuI7MOvN61HtvXJcH7hfWNqobyv_yMeA3o4rCyU-HqGBe4Y8KjiyRdoRAog4X1vhgSVf_EEB6vK-XN73vvaak_sOJMvzO9_wjyscvQjyRSsEan40tWOwQrxfzp6eHBhhXgy2nBh0XT6RCkXVImaEQlZj8v-7nUf4GWPUwbKYDM_aTWT9N8nIwPTvMRu4MbsXx8iTZlIEs5env4wYvQ23JryibN72lhFgVUT0Q42fIJ5ZacJvZ2fLa6AiOUKYVqhnvBGb3wVpIL7SW8feJIqwBYT4XT0vLrapqA', Accept: 'application/json', formData: { id: '2A1B8890-20F0-4A92-A75E-501E69AA009E', pushuser: 'BF373CB6-82D7-48AE-BE8C-6B4F781C8755' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); }); Respones: {"success": true }
Trash sent, schoduled & Template Notification
var request = require("request"); var options = { method: 'POST', url: 'https://zpush.zupago.pe/pusher/v2/trash', headers: { Authorization: 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA1MDhkOGQzN2Y4MzY5ODY4N2U1NjNiYmE3YWUxZDU5NTJlMzYwODE3ZWNhNDE5MDI1OGYyNjBmNTkzNDM2MWFhYTMyM2Y5NDMzYjU4NzI1In0.eyJhdWQiOiIxQTc3MDE5RC0wMEY5LTQyOTItODkxMS1DQTE1RTQyOUNCOUMiLCJqdGkiOiIwNTA4ZDhkMzdmODM2OTg2ODdlNTYzYmJhN2FlMWQ1OTUyZTM2MDgxN2VjYTQxOTAyNThmMjYwZjU5MzQzNjFhYWEzMjNmOTQzM2I1ODcyNSIsImlhdCI6MTUxMzYxNTQzMSwibmJmIjoxNTEzNjE1NDMxLCJleHAiOjE1NDUxNTE0MzEsInN1YiI6IkM5NkQyMkVFLTNFM0QtNDY4NS04REFDLTBDMjg1RDU0RkYzRSIsInNjb3BlcyI6W119.DhTRixE9-l3v6JezQQIaJK1zgQVH7iWXCqHDs9wbFs709C59ONMjh3Cd3EpuMoryv4QN9wXW5d3IPgOY0se047XlY2sA2an2qjhUte2grghCdmyF7iu9KrDlFEQlGL-zAPZ6TDuVJKDmISL24Re3wVV3p8Tfq02nI1_gjH6Xg17L6PPdB1LYHfq8RGdr3zsvmNSkS_AEUnAWIJaCw20GelAMy7VCdJd-22kN4ObpqjdkZr7tE5Adb-Ay9nhH5_O0RDwmlP2uKjM1A82NDjocRyjmJcfokmurtxCxmoQQ-puxRitZESRCQtgRZCrzG1kncR7-LYcPLA4aXC_qCaksnmUTqsTCvUabg8CcYlovSqtLtspWjULBuMdg5bWNpDYoTPSzv7swhYuI7MOvN61HtvXJcH7hfWNqobyv_yMeA3o4rCyU-HqGBe4Y8KjiyRdoRAog4X1vhgSVf_EEB6vK-XN73vvaak_sOJMvzO9_wjyscvQjyRSsEan40tWOwQrxfzp6eHBhhXgy2nBh0XT6RCkXVImaEQlZj8v-7nUf4GWPUwbKYDM_aTWT9N8nIwPTvMRu4MbsXx8iTZlIEs5env4wYvQ23JryibN72lhFgVUT0Q42fIJ5ZacJvZ2fLa6AiOUKYVqhnvBGb3wVpIL7SW8feJIqwBYT4XT0vLrapqA', Accept: 'application/json', formData: { id: '2A1B8890-20F0-4A92-A75E-501E69AA009E', pushuser: 'BF373CB6-82D7-48AE-BE8C-6B4F781C8755' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); }); Respones: {"success": true }
Delete Notification here you can pass (id) & (ids) as Parameter
var request = require("request"); var options = { method: 'POST', url: 'https://zpush.zupago.pe/pusher/v2/delete', headers: { Authorization: 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA1MDhkOGQzN2Y4MzY5ODY4N2U1NjNiYmE3YWUxZDU5NTJlMzYwODE3ZWNhNDE5MDI1OGYyNjBmNTkzNDM2MWFhYTMyM2Y5NDMzYjU4NzI1In0.eyJhdWQiOiIxQTc3MDE5RC0wMEY5LTQyOTItODkxMS1DQTE1RTQyOUNCOUMiLCJqdGkiOiIwNTA4ZDhkMzdmODM2OTg2ODdlNTYzYmJhN2FlMWQ1OTUyZTM2MDgxN2VjYTQxOTAyNThmMjYwZjU5MzQzNjFhYWEzMjNmOTQzM2I1ODcyNSIsImlhdCI6MTUxMzYxNTQzMSwibmJmIjoxNTEzNjE1NDMxLCJleHAiOjE1NDUxNTE0MzEsInN1YiI6IkM5NkQyMkVFLTNFM0QtNDY4NS04REFDLTBDMjg1RDU0RkYzRSIsInNjb3BlcyI6W119.DhTRixE9-l3v6JezQQIaJK1zgQVH7iWXCqHDs9wbFs709C59ONMjh3Cd3EpuMoryv4QN9wXW5d3IPgOY0se047XlY2sA2an2qjhUte2grghCdmyF7iu9KrDlFEQlGL-zAPZ6TDuVJKDmISL24Re3wVV3p8Tfq02nI1_gjH6Xg17L6PPdB1LYHfq8RGdr3zsvmNSkS_AEUnAWIJaCw20GelAMy7VCdJd-22kN4ObpqjdkZr7tE5Adb-Ay9nhH5_O0RDwmlP2uKjM1A82NDjocRyjmJcfokmurtxCxmoQQ-puxRitZESRCQtgRZCrzG1kncR7-LYcPLA4aXC_qCaksnmUTqsTCvUabg8CcYlovSqtLtspWjULBuMdg5bWNpDYoTPSzv7swhYuI7MOvN61HtvXJcH7hfWNqobyv_yMeA3o4rCyU-HqGBe4Y8KjiyRdoRAog4X1vhgSVf_EEB6vK-XN73vvaak_sOJMvzO9_wjyscvQjyRSsEan40tWOwQrxfzp6eHBhhXgy2nBh0XT6RCkXVImaEQlZj8v-7nUf4GWPUwbKYDM_aTWT9N8nIwPTvMRu4MbsXx8iTZlIEs5env4wYvQ23JryibN72lhFgVUT0Q42fIJ5ZacJvZ2fLa6AiOUKYVqhnvBGb3wVpIL7SW8feJIqwBYT4XT0vLrapqA', Accept: 'application/json', formData: { id: '2A1B8890-20F0-4A92-A75E-501E69AA009E', pushuser: 'BF373CB6-82D7-48AE-BE8C-6B4F781C8755' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); }); Respones: {"success": true }


View Apps

  • View all your App Details
  • https://zpush.zupago.pe/pusher/v2/apps 
    
        curl -X GET \
      https://zpush.zupago.pe/pusher/v2/apps \
      -H 'Accept: application/json' \
      -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA1MDhkOGQzN2Y4MzY5ODY4N2U1NjNiYmE3YWUxZDU5NTJlMzYwODE3ZWNhNDE5MDI1OGYyNjBmNTkzNDM2MWFhYTMyM2Y5NDMzYjU4NzI1In0.eyJhdWQiOiIxQTc3MDE5RC0wMEY5LTQyOTItODkxMS1DQTE1RTQyOUNCOUMiLCJqdGkiOiIwNTA4ZDhkMzdmODM2OTg2ODdlNTYzYmJhN2FlMWQ1OTUyZTM2MDgxN2VjYTQxOTAyNThmMjYwZjU5MzQzNjFhYWEzMjNmOTQzM2I1ODcyNSIsImlhdCI6MTUxMzYxNTQzMSwibmJmIjoxNTEzNjE1NDMxLCJleHAiOjE1NDUxNTE0MzEsInN1YiI6IkM5NkQyMkVFLTNFM0QtNDY4NS04REFDLTBDMjg1RDU0RkYzRSIsInNjb3BlcyI6W119.DhTRixE9-l3v6JezQQIaJK1zgQVH7iWXCqHDs9wbFs709C59ONMjh3Cd3EpuMoryv4QN9wXW5d3IPgOY0se047XlY2sA2an2qjhUte2grghCdmyF7iu9KrDlFEQlGL-zAPZ6TDuVJKDmISL24Re3wVV3p8Tfq02nI1_gjH6Xg17L6PPdB1LYHfq8RGdr3zsvmNSkS_AEUnAWIJaCw20GelAMy7VCdJd-22kN4ObpqjdkZr7tE5Adb-Ay9nhH5_O0RDwmlP2uKjM1A82NDjocRyjmJcfokmurtxCxmoQQ-puxRitZESRCQtgRZCrzG1kncR7-LYcPLA4aXC_qCaksnmUTqsTCvUabg8CcYlovSqtLtspWjULBuMdg5bWNpDYoTPSzv7swhYuI7MOvN61HtvXJcH7hfWNqobyv_yMeA3o4rCyU-HqGBe4Y8KjiyRdoRAog4X1vhgSVf_EEB6vK-XN73vvaak_sOJMvzO9_wjyscvQjyRSsEan40tWOwQrxfzp6eHBhhXgy2nBh0XT6RCkXVImaEQlZj8v-7nUf4GWPUwbKYDM_aTWT9N8nIwPTvMRu4MbsXx8iTZlIEs5env4wYvQ23JryibN72lhFgVUT0Q42fIJ5ZacJvZ2fLa6AiOUKYVqhnvBGb3wVpIL7SW8feJIqwBYT4XT0vLrapqA'
    
    
    
    Result Format - View apps
    [ { "id": "BF373CB6-82D7-48AE-BE8C-6B4F781C8755", "name": "Website1", "website": "https://zupago.pe", "weblogo": "https://zupago.pe/logo.png", "public_key": "BKtM81rPLDWAG7MdeRaUElXv7E6U1BIJCpLwp/AnJGjMnsInDPKD8TR5zVVI+txYDY9M7kgmBMYVRshYTRZXyG4=", "private_key": "XoORL8PVZMZZqMctvX7TfQvmi2wH2eB95OA3eV8djdY=", "created_at": "2017-11-24 14:41:30", "updated_at": "2017-12-25 10:06:18" }, { "id": "1A3350EC-75F0-4919-9C02-9317588E3F76", "name": "Website2", "website": "https://zupago.pe", "weblogo": "https://ama.zupago.pe/favicon.ico", "public_key": "BOgB1A9PRfD9jDR6cwLoxcYtKXRuEBUavj88uLxL40t+pQCjqdaD9ijdkfXCKTJahewbYw/CxDz4EVyDDmOgocs=", "private_key": "5roONFv1CfmFvIYLNhuoud/iaqsGoHpe91T+Yrcq8r8=", "created_at": "2017-12-06 17:10:07", "updated_at": "2017-12-06 17:10:07" }, { "id": "4F0C840B-1ED5-41F5-8685-AB40B5C48B49", "name": "Website3", "website": "https://zupago.pe", "weblogo": "https://zupago.pe/logo.png", "public_key": "BNYh8CnA0caWZpzowHLHPcpcuSA97cOX3PXKmEpSHzkMAeWe2ZxfFQQani4YG++Ga/TCapsO8jGzN75Mi4aHo8M=", "private_key": "zqVVqJPt0tqEH91RCAY2dpRSjOa+l8mQn0YeHlAFN/4=", "created_at": "2017-12-08 15:50:31", "updated_at": "2017-12-09 22:10:52" }, { "id": "76406F6C-2F84-47AF-B85B-330BB04D4416", "name": "Website4", "website": "https://zupago.pe", "weblogo": "https://ama.zupago.pe/favicon.ico", "public_key": "BOWPd6A757eD3CTjL5coiS7E01xe+Fy5vM+YhgDJ6reXFkj9kPSU20qzDz53oRcROaGcrl9JWb6UXxXc3YrfnKo=", "private_key": "u1Pp6jh2LIhwvC8lxgh1NOOickqjVHkPShOQFRhhIuk=", "created_at": "2017-12-08 10:56:59", "updated_at": "2017-12-08 10:56:59" }, { "id": "7D253DEA-27EE-46C5-A727-BE64E6EBE2D2", "name": "Website4", "website": "https://zupago.pe/", "weblogo": "https://ama.zupago.pe/favicon.ico", "public_key": "BBVeuiZ1ppt+nZ+qoQd2D+nVFv09niNpVU9GQwlWf1cxjxKn+KBBAaDrjr/UvjwSj8OpoyMV4JOgCKtBfOM7gec=", "private_key": "h54n1gR/PzYF/fUhmHv7J4l9gdMfAh7kSIReigyl/9k=", "created_at": "2017-12-09 06:19:04", "updated_at": "2017-12-09 06:19:04" } ]


    View Single App

  • View all your App Details
  • https://zpush.zupago.pe/pusher/v2/apps/{id} 
    
        curl -X GET \
      https://zpush.zupago.pe/pusher/v2/apps/BF373CB6-82D7-48AE-BE8C-6B4F781C8755 \
      -H 'Accept: application/json' \
      -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA1MDhkOGQzN2Y4MzY5ODY4N2U1NjNiYmE3YWUxZDU5NTJlMzYwODE3ZWNhNDE5MDI1OGYyNjBmNTkzNDM2MWFhYTMyM2Y5NDMzYjU4NzI1In0.eyJhdWQiOiIxQTc3MDE5RC0wMEY5LTQyOTItODkxMS1DQTE1RTQyOUNCOUMiLCJqdGkiOiIwNTA4ZDhkMzdmODM2OTg2ODdlNTYzYmJhN2FlMWQ1OTUyZTM2MDgxN2VjYTQxOTAyNThmMjYwZjU5MzQzNjFhYWEzMjNmOTQzM2I1ODcyNSIsImlhdCI6MTUxMzYxNTQzMSwibmJmIjoxNTEzNjE1NDMxLCJleHAiOjE1NDUxNTE0MzEsInN1YiI6IkM5NkQyMkVFLTNFM0QtNDY4NS04REFDLTBDMjg1RDU0RkYzRSIsInNjb3BlcyI6W119.DhTRixE9-l3v6JezQQIaJK1zgQVH7iWXCqHDs9wbFs709C59ONMjh3Cd3EpuMoryv4QN9wXW5d3IPgOY0se047XlY2sA2an2qjhUte2grghCdmyF7iu9KrDlFEQlGL-zAPZ6TDuVJKDmISL24Re3wVV3p8Tfq02nI1_gjH6Xg17L6PPdB1LYHfq8RGdr3zsvmNSkS_AEUnAWIJaCw20GelAMy7VCdJd-22kN4ObpqjdkZr7tE5Adb-Ay9nhH5_O0RDwmlP2uKjM1A82NDjocRyjmJcfokmurtxCxmoQQ-puxRitZESRCQtgRZCrzG1kncR7-LYcPLA4aXC_qCaksnmUTqsTCvUabg8CcYlovSqtLtspWjULBuMdg5bWNpDYoTPSzv7swhYuI7MOvN61HtvXJcH7hfWNqobyv_yMeA3o4rCyU-HqGBe4Y8KjiyRdoRAog4X1vhgSVf_EEB6vK-XN73vvaak_sOJMvzO9_wjyscvQjyRSsEan40tWOwQrxfzp6eHBhhXgy2nBh0XT6RCkXVImaEQlZj8v-7nUf4GWPUwbKYDM_aTWT9N8nIwPTvMRu4MbsXx8iTZlIEs5env4wYvQ23JryibN72lhFgVUT0Q42fIJ5ZacJvZ2fLa6AiOUKYVqhnvBGb3wVpIL7SW8feJIqwBYT4XT0vLrapqA'
    
    
    
    Result Format - View Single App
    { "id": "BF373CB6-82D7-48AE-BE8C-6B4F781C8755", "name": "Diadal Website244", "website": "https://diadal.dev", "weblogo": "https://diadal.dev/assets/img/logo.png", "public_key": "BKtM81rPLDWAG7MdeRaUElXv7E6U1BIJCpLwp/AnJGjMnsInDPKD8TR5zVVI+txYDY9M7kgmBMYVRshYTRZXyG4=", "private_key": "XoORL8PVZMZZqMctvX7TfQvmi2wH2eB95OA3eV8djdY=", "created_at": "2017-11-24 14:41:30", "updated_at": "2017-12-25 10:06:18" }


    Create New App In Blind Of Eye

  • Simple data to create new App
    
        https://zpush.zupago.pe/pusher/v2/create 
    


  • Parameter Type Description
    name
    string
    REQUIRED App Name i:e ZuPago Push App
    website
    url_string
    REQUIRED App Website Url
    weblogo
    url_string
    REQUIRED App Logo Url


    
    curl --request POST \
      --url https://zpush.zupago.pe/pusher/v2/create  \
      --header 'Accept: application/json' \
      --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA1MDhkOGQzN2Y4MzY5ODY4N2U1NjNiYmE3YWUxZDU5NTJlMzYwODE3ZWNhNDE5MDI1OGYyNjBmNTkzNDM2MWFhYTMyM2Y5NDMzYjU4NzI1In0.eyJhdWQiOiIxQTc3MDE5RC0wMEY5LTQyOTItODkxMS1DQTE1RTQyOUNCOUMiLCJqdGkiOiIwNTA4ZDhkMzdmODM2OTg2ODdlNTYzYmJhN2FlMWQ1OTUyZTM2MDgxN2VjYTQxOTAyNThmMjYwZjU5MzQzNjFhYWEzMjNmOTQzM2I1ODcyNSIsImlhdCI6MTUxMzYxNTQzMSwibmJmIjoxNTEzNjE1NDMxLCJleHAiOjE1NDUxNTE0MzEsInN1YiI6IkM5NkQyMkVFLTNFM0QtNDY4NS04REFDLTBDMjg1RDU0RkYzRSIsInNjb3BlcyI6W119.DhTRixE9-l3v6JezQQIaJK1zgQVH7iWXCqHDs9wbFs709C59ONMjh3Cd3EpuMoryv4QN9wXW5d3IPgOY0se047XlY2sA2an2qjhUte2grghCdmyF7iu9KrDlFEQlGL-zAPZ6TDuVJKDmISL24Re3wVV3p8Tfq02nI1_gjH6Xg17L6PPdB1LYHfq8RGdr3zsvmNSkS_AEUnAWIJaCw20GelAMy7VCdJd-22kN4ObpqjdkZr7tE5Adb-Ay9nhH5_O0RDwmlP2uKjM1A82NDjocRyjmJcfokmurtxCxmoQQ-puxRitZESRCQtgRZCrzG1kncR7-LYcPLA4aXC_qCaksnmUTqsTCvUabg8CcYlovSqtLtspWjULBuMdg5bWNpDYoTPSzv7swhYuI7MOvN61HtvXJcH7hfWNqobyv_yMeA3o4rCyU-HqGBe4Y8KjiyRdoRAog4X1vhgSVf_EEB6vK-XN73vvaak_sOJMvzO9_wjyscvQjyRSsEan40tWOwQrxfzp6eHBhhXgy2nBh0XT6RCkXVImaEQlZj8v-7nUf4GWPUwbKYDM_aTWT9N8nIwPTvMRu4MbsXx8iTZlIEs5env4wYvQ23JryibN72lhFgVUT0Q42fIJ5ZacJvZ2fLa6AiOUKYVqhnvBGb3wVpIL7SW8feJIqwBYT4XT0vLrapqA' \
      --form 'name=ZuPago Push App' \
      --form website=https://ZuPago WebPush.zupago.pe \
      --form weblogo=https://ama.zupago.pe/fa.png
    
                            


    Update App

  • Simple data to Update App
    
        https://zpush.zupago.pe/pusher/v2/apps/{id} 
    


  • Parameter Type Description
    name
    string
    App Name i:e ZuPago Push App
    website
    url_string
    App Website Url
    weblogo
    url_string
    App Logo Url


    
    curl --request POST \
      --url https://zpush.zupago.pe/pusher/v2/apps/6E8FA154-0188-423D-9748-74249B9DD2BA  \
      --header 'Accept: application/json' \
      --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA1MDhkOGQzN2Y4MzY5ODY4N2U1NjNiYmE3YWUxZDU5NTJlMzYwODE3ZWNhNDE5MDI1OGYyNjBmNTkzNDM2MWFhYTMyM2Y5NDMzYjU4NzI1In0.eyJhdWQiOiIxQTc3MDE5RC0wMEY5LTQyOTItODkxMS1DQTE1RTQyOUNCOUMiLCJqdGkiOiIwNTA4ZDhkMzdmODM2OTg2ODdlNTYzYmJhN2FlMWQ1OTUyZTM2MDgxN2VjYTQxOTAyNThmMjYwZjU5MzQzNjFhYWEzMjNmOTQzM2I1ODcyNSIsImlhdCI6MTUxMzYxNTQzMSwibmJmIjoxNTEzNjE1NDMxLCJleHAiOjE1NDUxNTE0MzEsInN1YiI6IkM5NkQyMkVFLTNFM0QtNDY4NS04REFDLTBDMjg1RDU0RkYzRSIsInNjb3BlcyI6W119.DhTRixE9-l3v6JezQQIaJK1zgQVH7iWXCqHDs9wbFs709C59ONMjh3Cd3EpuMoryv4QN9wXW5d3IPgOY0se047XlY2sA2an2qjhUte2grghCdmyF7iu9KrDlFEQlGL-zAPZ6TDuVJKDmISL24Re3wVV3p8Tfq02nI1_gjH6Xg17L6PPdB1LYHfq8RGdr3zsvmNSkS_AEUnAWIJaCw20GelAMy7VCdJd-22kN4ObpqjdkZr7tE5Adb-Ay9nhH5_O0RDwmlP2uKjM1A82NDjocRyjmJcfokmurtxCxmoQQ-puxRitZESRCQtgRZCrzG1kncR7-LYcPLA4aXC_qCaksnmUTqsTCvUabg8CcYlovSqtLtspWjULBuMdg5bWNpDYoTPSzv7swhYuI7MOvN61HtvXJcH7hfWNqobyv_yMeA3o4rCyU-HqGBe4Y8KjiyRdoRAog4X1vhgSVf_EEB6vK-XN73vvaak_sOJMvzO9_wjyscvQjyRSsEan40tWOwQrxfzp6eHBhhXgy2nBh0XT6RCkXVImaEQlZj8v-7nUf4GWPUwbKYDM_aTWT9N8nIwPTvMRu4MbsXx8iTZlIEs5env4wYvQ23JryibN72lhFgVUT0Q42fIJ5ZacJvZ2fLa6AiOUKYVqhnvBGb3wVpIL7SW8feJIqwBYT4XT0vLrapqA' \
      --form 'name=ZuPago Push App' \
      --form website=https://ZuPago WebPush.zupago.pe \
      --form weblogo=https://ama.zupago.pe/fa.png
    
                            


    Safari WebPush Generator

  • Generate APNs Safari WebPush Package

  • Parameter Type Description
    websitePushID
    string
    The Website Push ID, as specified in your developer account. Required
    certfile
    file
    Your Certificates.p12 Certificate Required
    certPassw
    string
    Your Certificates.p12 Certificate Password if Any
    saflogo
    file
    Website Logo Required
    website
    url_string
    An array of websites that are allowed to request permission from the user. Required
    websiteName
    string
    The website name. This is the heading used in Notification Center. Required
    authenticationToken
    string
    The website name. This is the heading used in Notification Center. Required
    webServiceURL
    url_string
    The location used to make requests to your web service. 
    The trailing slash should be omitted. Required
    urlFormatString
    url_string
    The URL to go to when the notification is clicked. Use %@
    as a placeholder for arguments you fill in when delivering your notification.
    This URL must use the http or https scheme; otherwise, it is invalid. Required

    https://zpush.zupago.pe/pusher/safari/generator 
    
        curl --request POST \
      --url https://zpush.zupago.pe/pusher/safari/generator \
      --header 'content-type: application/zip' \
      --form websitePushID=web.pe.zupago.test \
      --form certfile=file \
      --form certPassw=password \
      --form saflogo=file \
      --form website=https://zpush.zupago.pe \
      --form 'websiteName=ZuPago WebPush Generator' \
      --form authenticationToken=B82CF5AED-7F81-4BB3-A128-3DCE18977DC6 \
      --form webServiceURL=https://zpush.zupago.pe/pusher/safari \
      --form 'urlFormatString=https://zpush.zupago.pe/url/?url=%@'