Skip to content
This repository was archived by the owner on Jul 2, 2023. It is now read-only.

Latest commit

History

29 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

PushAll.ru PHP Client

This is php client for PushAll.ru API, helps to send push messages via this service.

Usage

1.In your php file type this:

require {dir}.'/pushall/PushAll.php';

Where {dir} - full server path to a directory with our pushall folder.

2.Then you must to initialize PushAll client with following code:

/** * Client initialization */$pushAll = newPushAll(
00000, 'aaa000bbb111ccc222ddd333eee444ff'
);

Where 00000 - your feed id, aaa000bbb111ccc222ddd333eee444ff - your feed key.

3.To send a push message use following code:

/** * Send a message */$result = $pushAll->send(array(
'type' => PushAll::TYPE_SELF,
'title' => 'some title',
'text' => 'some message'
));

Initialization parameters

ParameterTypeRequiredDefaultVariants
idintegerYES--
keystringYES--
responseTypestringNO00, 1 OR RESPONSE_TYPE_JSON, RESPONSE_TYPE_ARRAY

List of parameters

ParameterTypeRequiredDefaultVariants
typestringYESselfself, broadcast, unicast, multicast OR TYPE_SELF, TYPE_BROADCAST, TYPE_UNICAST, TYPE_MULTICAST
uidintegerNO--
titlestringYES--
textstringYES--
urlstringNO--
hiddenintegerNO00, 1, 2 OR HIDDEN_FALSE, HIDDEN_HISTORY, HIDDEN_BAND
encodestringNOUTF-8-
priorityintegerNO0-1, 0, 1 OR PRIORITY_NOT_IMPORTANT, PRIORITY_DEFAULT, PRIORITY_IMPORTANT
responseTypeintegerNO00, 1 OR RESPONSE_TYPE_JSON, RESPONSE_TYPE_ARRAY

About

PushAll.ru PHP Client

Resources

Stars

7 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages