Method | Description | |
---|---|---|
__construct ( string[optional] $publicKey = null, string[optional] $privateKey = null ) | Default constructor | |
applePush ( mixed $deviceTokens, mixed $alert, int[optional] $badge = null, string[optional] $sound = null, array $extraDictionaries = null ) : array | Push a notification to apple | |
appleRegisterDevice ( string $deviceToken ) : boolean | Register a new/old Apple device within the Fork API | |
coreRequestKeys ( string $siteUrl, string $email ) : array | Request public private key-pair | |
getTimeOut ( ) : integer | Get the timeout that will be used | |
getUserAgent ( ) : string | Get the useragent that will be used. Our version will be prepended to yours. | |
messagesGet ( ) : array | Get messages from the server | |
microsoftPush ( mixed $channelUri, string $title, string[optional] $count = null, string[optional] $image = null, string[optional] $backTitle = null, string[optional] $backText = null, string[optional] $backImage = null, string[optional] $tile = null, string[optional] $uri = null ) : array | Push a notification to microsoft | |
microsoftRegisterDevice ( string $channelUri ) : boolean | Register a new/old Microsoft device within the Fork API | |
pingGetServices ( ) : array | Get the ping services | |
setPrivateKey ( string $key ) : void | Set the private key | |
setPublicKey ( string $key ) : void | Set the public key | |
setTimeOut ( integer $seconds ) : void | Set the timeout After this time the request will stop. You should handle any errors triggered by this. | |
setUserAgent ( string $userAgent ) : void |
Set the user-agent for you application
It will be appended to ours, the result will look like: "PHP ForkAPI/ |
|
statisticsGetSearchEngines ( ) : array | Get the search engines |
Method | Description | |
---|---|---|
doCall ( string $method, array[optional] $parameters = [], bool[optional] $authenticate = true, bool[optional] $usePOST = false ) : string | Make the call | |
getPrivateKey ( ) : string | Get the private key | |
getPublicKey ( ) : string | Get the public key |
public __construct ( string[optional] $publicKey = null, string[optional] $privateKey = null ) | ||
$publicKey | string[optional] | |
$privateKey | string[optional] |
public applePush ( mixed $deviceTokens, mixed $alert, int[optional] $badge = null, string[optional] $sound = null, array $extraDictionaries = null ) : array | ||
$deviceTokens | mixed | The device token(s) for the receiver. |
$alert | mixed | The message/dictonary to send. |
$badge | int[optional] | |
$sound | string[optional] | |
$extraDictionaries | array | |
return | array | The device tokens that aren't valid. |
public appleRegisterDevice ( string $deviceToken ) : boolean | ||
$deviceToken | string | The device token to register. |
return | boolean |
public getTimeOut ( ) : integer | ||
return | integer |
public getUserAgent ( ) : string | ||
return | string |
public messagesGet ( ) : array | ||
return | array |
public microsoftPush ( mixed $channelUri, string $title, string[optional] $count = null, string[optional] $image = null, string[optional] $backTitle = null, string[optional] $backText = null, string[optional] $backImage = null, string[optional] $tile = null, string[optional] $uri = null ) : array | ||
$channelUri | mixed | The channel URI(s) for the receiver. |
$title | string | The title for the tile to send. |
$count | string[optional] | |
$image | string[optional] | |
$backTitle | string[optional] | |
$backText | string[optional] | |
$backImage | string[optional] | |
$tile | string[optional] | |
$uri | string[optional] | |
return | array | The device tokens that aren't valid. |
public microsoftRegisterDevice ( string $channelUri ) : boolean | ||
$channelUri | string | The channel uri to register. |
return | boolean |
public pingGetServices ( ) : array | ||
return | array |
public setPrivateKey ( string $key ) : void | ||
$key | string | The private key. |
return | void |
public setPublicKey ( string $key ) : void | ||
$key | string | The public key. |
return | void |
public setTimeOut ( integer $seconds ) : void | ||
$seconds | integer | The timeout in seconds. |
return | void |
public setUserAgent ( string $userAgent ) : void | ||
$userAgent | string | Your user-agent, it should look like |
return | void |
public statisticsGetSearchEngines ( ) : array | ||
return | array |