dev-master
9999999-devAeroGearPush REST client repository
MIT
The Requires
The Development Requires
by Napp
dev-develop
dev-developAeroGearPush REST client repository
MIT
The Requires
The Development Requires
by Napp
Wallogit.com
2017 © Pedro Peláez
AeroGearPush REST client repository
A library which integrates with the the Redhat Aerogear Unified Push restful API., (*1)
$ composer require napp/aerogear-push
All, but SenderPushRequest(), have a OAuthToken dependency, and to generate the token, look in examples/oauth-keycloak.md, (*2)
An example on how to set the token., (*3)
$request->setOauthToken($token);
Example on how to use this library., (*4)
<?php
use Napp\AeroGearPush;
use Napp\AeroGearPush\Request;
use Napp\AeroGearPush\Exception;
$client = new AeroGearPush('https://host.com/ag-push/rest/');
$request = new SenderPushRequest();
$request
->setAuth('PushApplicationID', 'MasterSecret')
->setMessage(
[
'sound' => 'default',
'alert' => 'this is a message.',
]
)
->setCriteria(
[
'alias' => ['my-alias'],
]
);
try {
$response = $client->SenderPush($request);
var_dump($response);
} catch (AeroGearPushException $e) {
die($e->getMessage());
}
For information about how to format the single methods which is accepting arrays, please take a look at the AeroGear Unified Push API documentation., (*5)
setOauthToken() # oAuth token
setName() # string, (*6)
setDeveloper() # string
setDescription() # string, (*7)
The response is handled by createApplication($request), (*8)
json, (*9)
setOauthToken() # oAuth token
setName() # string, (*10)
setDeveloper() # string
setDescription() # string, (*11)
The response is handled by createApplication(), (*12)
json, (*13)
setOauthToken() # oAuth token, (*14)
The response is handled by deleteApplication(), (*15)
json, (*16)
setOauthToken() # oAuth token
setCertificate() # fopen file resource
setPassphrase() # string
setProduction() # string ('true' or 'false')', (*17)
setName() # string
setDescription() # string
setDeveloper() # string, (*18)
The reponse is handled by createIosVariant($request), (*19)
json, (*20)
setOauthToken() # oAuth token, (*21)
setName() # string
setDescription() # string
setDeveloper() # string
setProjectNumber() # string, (*22)
The response is handled by createSimplePushVariant(), (*23)
json, (*24)
setOauthToken() # oAuth token
setGoogleKey() # string, (*25)
setName() # string
setDescription() # string
setDeveloper() # string
setProjectNumber() # string, (*26)
The response is handled by createAndroidVariant(), (*27)
json, (*28)
Aerogear Unified Push documentation, (*29)
setAuth(pushApplicationId, masterSecret)
setMessage() # array
setCriteria() # array, (*30)
setConfig() # array, (*31)
The response is handled by senderPush(), (*32)
json, (*33)
setOauthToken() # oAuth token
setVariantId() # string, (*34)
setInstallationId() # string, (*35)
The response is handled by getApplicationInstallation(), (*36)
json, (*37)
setOauthToken() # oAuth token, (*38)
setPageNumber() # integer
setPerPage() # integer
enableDeviceCount()
enableActivity(), (*39)
The reponse is handled by getApplication(), (*40)
json, (*41)
setOauthToken() # oAuth token, (*42)
setPageNumber() # integer
setPerPage() # integer, (*43)
The response is handled by metricsMessages(), (*44)
json, (*45)
setOauthToken() # oAuth token, (*46)
setType() # string {active, warnings}, (*47)
The response is handled by metricsDashboard(), (*48)
json, (*49)
setOauthToken() # oAuth token, (*50)
The response is handled by sysInfoHealth(), (*51)
json, (*52)
1.0.2, (*53)
1.0.1, (*54)
AbstractApplicationRequest
1.0, (*55)
MIT, see LICENSE., (*56)
AeroGearPush REST client repository
MIT
AeroGearPush REST client repository
MIT