8000 Update README.md · sunaoka/push-notifications-php@9700fb3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9700fb3

Browse files
committed
Update README.md
1 parent ed9524b commit 9700fb3

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,29 @@ if ($result) {
137137
}
138138
```
139139

140+
## HTTP Request Option
141+
142+
You can specify [Guzzle Request Options] as a driver option.
143+
144+
```php
145+
$options = new APNs\Token\Option();
146+
$options->httpOptions = [
147+
'connect_timeout' => 3.14
148+
'timeout' => 3.14,
149+
'debug' => true,
150+
];
151+
```
152+
153+
## More examples
154+
155+
More examples can be found in the [examples](example) directory.
156+
157+
140158
[Token Based]: https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/establishing_a_token-based_connection_to_apns
141159
[Certificate Based]: https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/establishing_a_certificate-based_connection_to_apns
142160
[Binary Provider]: https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/BinaryProviderAPI.html
143161
[HTTP v1]: https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages/send
144162
[Legacy JSON]: https://firebase.google.com/docs/cloud-messaging/http-server-ref#downstream-http-messages-json
145163
[Legacy Plain Text]: https://firebase.google.com/docs/cloud-messaging/http-server-ref#downstream-http-messages-plain-text
146164
[XMPP]: https://firebase.google.com/docs/cloud-messaging/xmpp-server-ref
165+
[Guzzle Request Options]: https://docs.guzzlephp.org/en/stable/request-options.html

0 commit comments

Comments
 (0)
0