forked from redjanym/php-firebase-cloud-messaging
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClientInterface.php
More file actions
43 lines (37 loc) · 979 Bytes
/
Copy pathClientInterface.php
File metadata and controls
43 lines (37 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
namespace sngrl\PhpFirebaseCloudMessaging;
/**
*
* @author sngrl
*
*/
interface ClientInterface
{
/**
* add your server api key here
* read how to obtain an api key here: https://firebase.google.com/docs/server/setup#prerequisites
*
* @param string $apiKey
*
* @return \sngrl\PhpFirebaseCloudMessaging\Client
*/
public function setApiKey($apiKey);
/**
* people can overwrite the api url with a proxy server url of their own
*
* @param string $url
*
* @return \sngrl\PhpFirebaseCloudMessaging\Client
*/
public function setProxyApiUrl($url);
/**
* sends your notification to the google servers and returns a guzzle repsonse object
* containing their answer.
*
* @param Message $message
*
* @return \Psr\Http\Message\ResponseInterface
* @throws \GuzzleHttp\Exception\RequestException
*/
public function send(Message $message);
}