Push Notifications for Blog

Base URLhttps://intupush.com/projects/push/api/
Send TypeData can be sent in two methods POST and GET
AuthenticationSend the application access token in the HEADER or POST body for each API request with parameter name `Access_Token` to pass the authentication layer
Response Schema
respondSuccess return 1, and 0 if fails
messageReturn string message when happens error or success insert, and return empty if there’s result
resultReturn array(s) of data, and empty if there’s no result or happened error
Output TypeJSON
PHP VersionSystem requires PHP version 5.3 or later
SupportWe will be happy if you ask us for any help Smart IO Labs
Request Examplehttps://intupush.com/
AuthenticationSend the application access token in the HEADER or POST body for each API request with parameter name `Access_Token` to pass the authentication layer
Send TypeSend parameters in POST or GET is available
NoteIf the device token already exists system will update the device token data with any changes
Parameters
device_token
DescriptionDevice token value get from mobile device API
Typestring
RequiredYes
device_type
DescriptionSupport iOS, Android, Windows Phone 8, BlackBerry 10, Chrome, Safari and Firefox devices
TypeChoose(ios,android,wp,wp10,bb,chrome,safari,firefox,opera,edge,samsung,fbmsn,fbnotify,email,sms,viber)
RequiredYes
active
DescriptionDevice susbcription status
Typeboolean(1,0) default is 1
RequiredNo
channels_id
DescriptionIDS of channels to subscribe in, seperated by (,) like 1,2,3
Typestring
Required
latitude
Descriptionlatitude point for the device GPS location
Typestring
RequiredNo
longitude
DescriptionLongitude point for the device GPS location
Typestring
RequiredNo
Dynamic Info
DescriptionSend the device information for the preset dynamic info parameters like os_version, device_model, app_version and country etc…
Type(string)
RequiredNo
Errors

App exceeded the allowed number of subscribed devices .

Wrong device type value. System does not support this platform

Request Examplehttps://intupush.com/

device_token
DescriptionDevice token value get from mobile device API
Typestring
RequiredYes
device_type
DescriptionSupport iOS, Android, Windows Phone 8, BlackBerry 10, Chrome, Safari and Firefox devices
TypeChoose(ios,android,wp,wp10,bb,chrome,safari,firefox,opera,edge,samsung,fbmsn,fbnotify,email,sms,viber)
RequiredYes

Errors

Request

Example

https://intupush.com/

device_token=84dc67b0cd5915439509ce48830e659d2ee79966ecbb29b14918ff8865229c7b&device_type=ios&channels_id=1,2

AuthenticationSend the application access token in the HEADER or POST body for each API request with parameter name `Access_Token` to pass the authentication layer
Send TypeSend parameters in POST or GET is available
Parameters
device_token
DescriptionDevice token value get from mobile device API
Typestring
RequiredYes
device_type
DescriptionSupport iOS, Android, Windows Phone 8, BlackBerry 10, Chrome, Safari and Firefox devices
TypeChoose(ios,android,wp,wp10,bb,chrome,safari,firefox,opera,edge,samsung,fbmsn,fbnotify,email,sms,viber)
RequiredYes
active
DescriptionDevice susbcription status
Typeboolean(1,0) default is 1
RequiredNo
channels_id
DescriptionIDS of channels to subscribe in, seperated by (,) like 1,2,3
Typestring
RequiredYes
latitude
Descriptionlatitude point for the device GPS location
Typestring
RequiredNo
longitude
DescriptionLongitude point for the device GPS location
Typestring
RequiredNo
Dynamic Info
DescriptionSend the device information for the preset dynamic info parameters like os_version, device_model, app_version and country etc…
Type(string)
RequiredNo
Errors

App exceeded the allowed number of subscribed devices .

Wrong device type value. System does not support this platform

Request Examplehttps://intupush.com/projects/push/api/channel_subscribe/?device_token=84dc67b0cd5915439509ce48830e659d2ee79966ecbb29b14918ff8865229c7b&device_type=ios&channel_id=1
AuthenticationSend the application access token in the HEADER or POST body for each API request with parameter name `Access_Token` to pass the authentication layer
Send TypeSend parameters in POST or GET is available
Parameters
device_token
DescriptionDevice token value get from mobile device API
Typestring
RequiredYes
device_type
DescriptionSupport iOS, Android, Windows Phone 8, BlackBerry 10, Chrome, Safari and Firefox devices
TypeChoose(ios,android,wp,wp10,bb,chrome,safari,firefox,opera,edge,samsung,fbmsn,fbnotify,email,sms,viber)
RequiredYes
active
DescriptionDevice susbcription status
Typeboolean(1,0) default is 1
RequiredNo
channel_id
DescriptionID of channel to subscribe in
Typeint
RequiredYes – in case you do not set `channel_title` parameter
channel_title
DescriptionSystem will create a new channel in case it does not find the channel title
Typestring
RequiredYes – in case you do not set `channel_id` parameter
latitude
Descriptionlatitude point for the device GPS location
Typestring
RequiredNo
longitude
DescriptionLongitude point for the device GPS location
Typestring
RequiredNo
Dynamic Info
DescriptionSend the device information for the preset dynamic info parameters like os_version, device_model, app_version and country etc…
Type(string)
RequiredNo
Errors

App exceeded the allowed number of subscribed devices .

Wrong device type value. System does not support this platform

Request Example

https://intupush.com/

device_token=84dc67b0cd5915439509ce48830e659d2ee79966ecbb29b14918ff8865229c7b&device_type=ios&channel_id=1

AuthenticationSend the application access token in the HEADER or POST body for each API request with parameter name `Access_Token` to pass the authentication layer
Send TypeSend parameters in POST or GET is available
Parameters
device_token
DescriptionDevice token value get from mobile device API
Typestring
RequiredYes
device_type
DescriptionSupport iOS, Android, Windows Phone 8, BlackBerry 10, Chrome, Safari and Firefox devices
TypeChoose(ios,android,wp,wp10,bb,chrome,safari,firefox,opera,edge,samsung,fbmsn,fbnotify,email,sms,viber)
RequiredYes
active
DescriptionDevice susbcription status
Typeboolean(1,0) default is 1
RequiredNo
channel_id
DescriptionID of channel to subscribe in
Typeint
RequiredYes – in case you do not set `channel_title` parameter
channel_title
DescriptionTitle of channel
Typestring
RequiredYes – in case you do not set `channel_id` parameter
latitude
Descriptionlatitude point for the device GPS location
Typestring
RequiredNo
longitude
DescriptionLongitude point for the device GPS location
Typestring
RequiredNo
Dynamic Info
DescriptionSend the device information for the preset dynamic info parameters like os_version, device_model, app_version and country etc…
Type(string)
RequiredNo
Errors

App exceeded the allowed number of subscribed devices .

Wrong device type value. System does not support this platform

Request Examplehttps://intupush.com/projects/push/api/send_message/
AuthenticationSend the application access token in the HEADER or POST body for each API request with parameter name `Access_Token` to pass the authentication layer
Send TypeSend parameters in POST
Parameters
platform
DescriptionSend to all devices by their platforms
TypeJSON String(ios,android,wp,wp10,bb,chrome,safari,firefox,opera,edge,samsung,fbmsn,fbnotify,email,sms,viber)
Example{“0″:”ios”,”1″:”android”,”2″:”safari”,”3″:”chrome”}
RequiredNo
device_token
DescriptionSend one device only by providing its device type and token
Typestring
RequiredNo
device_type
DescriptionSupport iOS, Android, Windows Phone 8, BlackBerry 10, Chrome, Safari and Firefox devices
TypeChoose(ios,android,wp,wp10,bb,chrome,safari,firefox,opera,edge,samsung,fbmsn,fbnotify,email,sms,viber)
RequiredNo
title
DescriptionPut a title for your message
TypeString
RequiredYes
message
DescriptionThe message body
TypeString
RequiredYes
send_type
DescriptionThe sending type of your message
TypeChoose(now,time,geofence,template)
RequiredYes
send_time
DescriptionSend the message in a determined time
TypeDateTime(yyyy-mm-dd h:i a)
Example2016-5-06 12:00 am
RequiredNo
send_repeatly
DescriptionEnable sending message in repeatly times
TypeSet the value = enabled to activate this feature or leave it empty to disable
RequiredNo
repeat_interval
DescriptionWhen enable sending repeatly times you should send the repeat interval
TypeChoose(minute,hour,day,month,year)
RequiredNo
repeat_age
DescriptionWhen enable sending repeatly times you should send the repeat age
TypeNumber
ExampleIf you set the value of repeat_interval = day and repeat_age = 3 so the message will send every 3 days
RequiredNo
status
DescriptionActivation status of message
Typeboolean(1,0) default is 1
RequiredNo
payload
DescriptionSend custom payload with your message
TypeJSON String
Example{“id”:”11″,”type”:”message”,”url”:”link”}
RequiredNo
conditions
conditions_relationAccepts 2 relation types (or, and)
conditions[attri][0]Set one of system dynamic parameters like fname, lname, country etc…
conditions[sign][0]Choose (>, >=, <, <=, =, CONTAINS, NOT =, IN, NOT IN)
conditions[value][0]Query value to search about in the devices info
conditions[attri][1]Set one of system dynamic parameters like fname, lname, country etc…
conditions[sign][1]Choose (>, >=, <, <=, =, CONTAINS, NOT =, IN, NOT IN)
conditions[value][1]Query value to search about in the devices info
desktop_title
DescriptionThe title of message if you will send the desktop platforms
TypeString
RequiredNo
desktop_link
DescriptionThe link of desktop notification message to open
TypeURL
RequiredNo
desktop_icon
DescriptionLink of an 150×150 image to appear in the desktop push message when delivered
TypeLink
RequiredNo
desktop_bigimage
DescriptionLink of image to appear in a big size under the desktop push message
TypeLink
RequiredNo
desktop_badge
DescriptionLink of small image to appear besides the mobile notification title
TypeLink
RequiredNo
desktop_sound
DescriptionLink of music file to run on mobile when message arrived
TypeLink
RequiredNo
desktop_dir
DescriptionStyle direction of desktop push message
TypeString (rtl, ltr, auto)
RequiredNo
desktop_silent
DescriptionOption to enable mobile push message receiving silently
TypeBolean (1 or 0)
RequiredNo
desktop_vibrate
DescriptionMake mobile vibrates when message arrives with different power
TypeString (e.g. 100.200.100.300.200)
RequiredNo
desktop_interaction
DescriptionOption to make the desktop push message continues opening while user closes it or wait for 20 seconds only
TypeString (true or false)
RequiredNo
actions
actions[id][0]Desktop push message actions appear under push message to provide more choices for users to open
actions[text][0]Button text
actions[icon][0]Link of image to appear besides button text
actions[link][0]Target link to open when user clicks on action button
UTM parameters
desktop_utm_sourceSend value of utm_source to add it to desktop push link
desktop_utm_mediumSend value of utm_medium to add it to desktop push link
desktop_utm_campaignSend value of utm_campaign to add it to desktop push link
mob_message
DescriptionSet the message content of mobile platforms
TypeText
RequiredNo
sms_message
DescriptionSet the message content of SMS platform
TypeText
RequiredNo
msn_message
DescriptionSet the message content of Facebook Messenger platform
TypeText
RequiredNo
fbnotify_message
DescriptionSet the message content of Facebook notification platform
TypeText
RequiredNo
fbnotify_openaction
DescriptionSet type of link open when user clicks on notification message
TypeString (inside or outside)
RequiredNo
fbnotify_link
DescriptionSet Facebook notification link to open when user clicks on notification message
TypeLink
RequiredNo
viber_message
DescriptionSet the message content of Viber platform
TypeText
RequiredNo
email_sender
DescriptionEmail address of sender for newsletter platform
TypeEmail
RequiredNo
email_fname
DescriptionName of sender for newsletter platform
TypeText
RequiredNo
email_subject
DescriptionSubject of email for newsletter platform
TypeText
RequiredNo
email
DescriptionThe email HTML contents for newsletter platform
TypeHTML
RequiredNo
latitude
DescriptionLatitude point for sending to all devices exist in the selected area
TypeNumber
RequiredNo
longitude
DescriptionLongitude point for sending to all devices exist in the selected area
TypeNumber
RequiredNo
radius
DescriptionRadius value in miles for sending to all devices exist in the selected area
TypeNumber
RequiredNo
gps_expire_time
DescriptionSet expire time for devices GPS location last updated time in hours
TypeNumber
RequiredNo
geozoneid
DescriptionSend ID for one of the user preset Geo-zones
TypeID
RequiredNo
country_code[0]
country_code[1]
country_code[+]
DescriptionEnter country ISO code to search in devices from this country
TypeString
RequiredNo
inchannels_and
DescriptionFilter the devices by users subscribed in channels with AND relation
TypeJSON String(IDs of channels)
Example{“1″,”2″,”22″,”223”}
RequiredNo
inchannels_or
DescriptionFilter the devices by users subscribed in channels with OR relation
TypeJSON String(IDs of channels)
Example{“1″,”2″,”22″,”223”}
RequiredNo
notchannels_and
DescriptionFilter the devices by users not subscribed in channels with AND relation
TypeJSON String(IDs of channels)
Example{“1″,”2″,”22″,”223”}
RequiredNo
notchannels_or
DescriptionFilter the devices by users not subscribed in channels with OR relation
TypeJSON String(IDs of channels)
Example{“1″,”2″,”22″,”223”}
RequiredNo
ios_slide
DescriptionChange (view) sentence in (Slide to view)
TypeString
RequiredNo
ios_badge
DescriptionThe number to display as the badge of the application icon
TypeNumber
RequiredNo
ios_sound
DescriptionThe name of a sound file in the application bundle
TypeString
RequiredNo
ios_cavailable
DescriptionProvide this key with a value of 1 to indicate that new content is available
TypeString
RequiredNo
ios_launchimg
DescriptionThe filename of an image file in the application bundle
TypeString
RequiredNo
safari_slide
DescriptionChange the view button text when Safari desktop message arrived
TypeString
RequiredNo
wp10_image
DescriptionAttach an image to appear in the notification body for Windows 10 push message .
TypeURL
RequiredNo
Errors

Wrong device type value. System does not support this platform .

Wrong input JSON format for `platform` parameter

Wrong device type value. System does not support this platform

Request Examplehttps://intupush.com/projects/push/api/list_messages/?order=asc
AuthenticationSend the application access token in the HEADER or POST body for each API request with parameter name `Access_Token` to pass the authentication layer
Send TypeSend parameters in POST or GET is available
Order
date
Description
TypeASC or DESC
DefaultDefault order, orders in ASC mode
Errors

No result found

Request Examplehttps://intupush.com/projects/push/api/device_channels/?device_token=84dc67b0cd5915439509ce48830e659d2ee79966ecbb29b14918ff8865229c7b&device_type=iosAuthenticationSend the application access token in the HEADER or POST body for each API request with parameter name `Access_Token` to pass the authentication layerSend TypeSend parameters in POST or GET is availableParameters

device_token
DescriptionDevice token value get from mobile device API
Typestring
RequiredYes
device_type
DescriptionSupport iOS, Android, Windows Phone 8, BlackBerry 10, Chrome, Safari and Firefox devices
TypeChoose(ios,android,wp,wp10,bb,chrome,safari,firefox,opera,edge,samsung,fbmsn,fbnotify,email,sms,viber)
RequiredYes
latitude
Descriptionlatitude point for the device GPS location
Typestring
RequiredNo
longitude
DescriptionLongitude point for the device GPS location
Typestring
RequiredNo

Order

date
Description
TypeASC or DESC
DefaultDefault order, orders in ASC mode
name
Description
TypeASC or DESC
subscribers
DescriptionCount of subscribers in the channel
TypeASC or DESC

Errors

No result found

Request Examplehttps://intupush.com/projects/push/api/new_channel/
AuthenticationSend the application access token in the HEADER or POST body for each API request with parameter name `Access_Token` to pass the authentication layer
Send TypeSend parameters in POST or GET is available
Parameters
title
DescriptionThe title of the new channel
TypeString
RequiredYes
Errors 

Request Examplehttps://intupush.com/projects/push/api/get_channels/?orderby=date&order=ascAuthenticationSend the application access token in the HEADER or POST body for each API request with parameter name `Access_Token` to pass the authentication layerSend TypeSend parameters in POST or GET is availableOrder

date
Description
TypeASC or DESC
DefaultDefault order, orders in ASC mode
name
Description
TypeASC or DESC
subscribers
DescriptionCount of subscribers in the channel
TypeASC or DESC

Errors

No result found

Request Examplehttps://intupush.com/projects/push/api/dynamic_info/
AuthenticationSend the application access token in the HEADER or POST body for each API request with parameter name `Access_Token` to pass the authentication layer
Send TypeSend parameters in POST or GET is available
Request Examplehttps://intupush.com/projects/push/api/payload_params/
AuthenticationSend the application access token in the HEADER or POST body for each API request with parameter name `Access_Token` to pass the authentication layer
Send TypeSend parameters in POST or GET is available

Request Examplehttps://intupush.com/projects/push/api/list_geozone/AuthenticationSend the application access token in the HEADER or POST body for each API request with parameter name `Access_Token` to pass the authentication layerSend TypeSend parameters in POST or GET is available

Serious about security & privacy

25,000,000,000+ notifications sent

Your subscribers, your data

Web Push Notifications Made Easier
Easiest way to add user specific push notifications to your web application. Add realtime notifications, native web push notifications and a notification feed to your web app in less than 5 minutes.

Support

Intupush.com © All rights reserved