SAREpush
Go to SAREpush Dashboard
Search…
INTRODUCTION
Platform Support
JAVASCRIPT LIBRARY
Installing library on website
Installing library through GTM
Tagging a subscriber using library
Preview subscriber's tags in our platform.
Sending shopping cart events using library
REST API
Introduction
Retrieving a list of websites
Retrieving JS code for specific website
Creating campaign to all subscribers
Creating campaign to particular locations
Creating campaign to particular tags
Creating campaign to particular segments
Sending message to specific subscriber
Sending message to test subscribers
Retrieving a list of segments
Retrieving a list of locations
Retrieving a list of tags
Retrieving a list of subscribers
PLUGINS
Installing WordPress plugin
CAMPAIGNS
Delivery automation
Delivery to audience
Delivery scheduling
Message personalization
Message preview
Message time to live
Images and icons
User management
User Management
Permission table
Product feed
What is XML Product Feed?
Powered By
GitBook
Retrieving a list of websites
To retrieve a list of websites, submit a
GET
request to:
1
https://push-api.sare.pl/v1/websites
Copied!
PHP example
1
$url
=
"https://push-api.sare.pl/v1/websites"
;
2
​
3
$ch
=
curl_init
();
4
curl_setopt
(
$ch
,
CURLOPT_URL
,
$url
);
5
curl_setopt
(
$ch
,
CURLOPT_HTTPHEADER
,
[
'Authorization: Basic <YOUR_API_KEY>'
]);
6
curl_setopt
(
$ch
,
CURLOPT_RETURNTRANSFER
,
true
);
7
$result
=
curl_exec
(
$ch
);
Copied!
Bash example
1
curl
--include
\
2
--header
"Authorization: Basic <YOUR_API_KEY>"
\
3
https://push-api.sare.pl/v1/websites
Copied!
Response example
1
[
2
{
3
"created"
:
1567758267
,
4
"uid"
:
"https-website1-pl"
,
5
"website"
:
"https://website1.pl"
6
},
7
{
8
"created"
:
1569175653
,
9
"uid"
:
"https-website2-pl"
,
10
"website"
:
"https://website2.pl"
11
}
12
]
Copied!
REST API - Previous
Introduction
Next - REST API
Retrieving JS code for specific website
Last modified
1yr ago
Copy link
Contents