MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
command=create
(main | echopushsubscriptions | create)
- This module is internal or unstable, and you should not use it. Its operation may change without notice.
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Source: Echo
- License: MIT
Register push subscriptions for the current user.
Specific parameters:
Other general parameters are available.
- provider
The push service provider for which to register a token.
- This parameter is required.
- One of the following values: apns, fcm
- providertoken
The token to register.
- This parameter is required.
- topic
The APNS topic (app bundle ID) to send the notification to.
Example:
- Register a push subscription for the current user.
- api.php?action=echopushsubscriptions&command=create&provider=fcm&providertoken=ABC123 [open in sandbox]