Brief information about the API servives is given below.
Basic
Base URL | https://www.mediafry.com/mediapush/api/ | |||
---|---|---|---|---|
Send Type | Data can be sent in two methods POST and GET | |||
Authentication | Send 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 |
|
|||
Output Type | JSON | |||
PHP Version | System requires PHP version 5.3 or later | |||
Support | Contact us for any help. |
Add/Update Device Token Subscription
Request Example | https://www.mediafry.com/mediapush/api/save_device/?device_token=84dc67b0cd5915439509ce48830e659d2ee79966ecbb29b14918ff8865229c7b&device_type=ios&channels_id=1,2 | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Authentication | Send 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 Type | Send parameters in POST or GET is available | |||||||||||||||||||||||||||||||||||
Note | If the device token already exists system will update the device token data with any changes | |||||||||||||||||||||||||||||||||||
Parameters |
|
|||||||||||||||||||||||||||||||||||
Errors | App exceeded the allowed number of subscribed devices . Wrong device type value. System does not support this platform |
Delete a Device Token Subscription permanently
Request Example | https://www.mediafry.com/mediapush/api/delete_device/?device_token=84dc67b0cd5915439509ce48830e659d2ee79966ecbb29b14918ff8865229c7b&device_type=ios | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Authentication | Send 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 Type | Send parameters in POST or GET is available | ||||||||||
Parameters |
|
||||||||||
Errors |
Edit the Device Subscription in Channels
Request Example | https://www.mediafry.com/mediapush/api/channels_subscribe/?device_token=84dc67b0cd5915439509ce48830e659d2ee79966ecbb29b14918ff8865229c7b&device_type=ios&channels_id=1,2 | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Authentication | Send 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 Type | Send parameters in POST or GET is available | |||||||||||||||||||||||||||||||||||
Parameters |
|
|||||||||||||||||||||||||||||||||||
Errors | App exceeded the allowed number of subscribed devices . Wrong device type value. System does not support this platform |
Subscribe Device Token in One Channel
Request Example | https://www.mediafry.com/mediapush/api/channel_subscribe/?device_token=84dc67b0cd5915439509ce48830e659d2ee79966ecbb29b14918ff8865229c7b&device_type=ios&channel_id=1 | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Authentication | Send 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 Type | Send parameters in POST or GET is available | ||||||||||||||||||||||||||||||||||||||||
Parameters |
|
||||||||||||||||||||||||||||||||||||||||
Errors | App exceeded the allowed number of subscribed devices . Wrong device type value. System does not support this platform |