메소드 | 설명 | |
---|---|---|
__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 |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | array | The device tokens that aren't valid. |
public appleRegisterDevice ( string $deviceToken ) : boolean | ||
$deviceToken | string | The device token to register. |
리턴 | boolean |
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] | |
리턴 | array | The device tokens that aren't valid. |
public microsoftRegisterDevice ( string $channelUri ) : boolean | ||
$channelUri | string | The channel uri to register. |
리턴 | boolean |
public setPrivateKey ( string $key ) : void | ||
$key | string | The private key. |
리턴 | void |
public setPublicKey ( string $key ) : void | ||
$key | string | The public key. |
리턴 | void |
public setTimeOut ( integer $seconds ) : void | ||
$seconds | integer | The timeout in seconds. |
리턴 | void |
public setUserAgent ( string $userAgent ) : void | ||
$userAgent | string | Your user-agent, it should look like |
리턴 | void |
public statisticsGetSearchEngines ( ) : array | ||
리턴 | array |