راهنمای واسط برنامهنویسی کاربردی مدیاویکی
این یک صفحهٔ مستندات برای واسط برنامهنویسی کاربردی مدیاویکی است که بهطور خودکار ایجاد شده است.
مستندات و نمونهها: 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.
- این پودمان نیازمند اختیارات خواندن است.
- این پودمان نیازمند اختیارات خواندن است.
- این پودمان تنها درخواستهای POST را میپذیرد.
- منبع: Echo
- مجوز: MIT
Register push subscriptions for the current user.
پارامترها:
Other general parameters are available.
- provider
The push service provider for which to register a token.
- این پارامتر الزامی است.
- یکی از مقدارهای زیر: apns، fcm
- providertoken
The token to register.
- این پارامتر الزامی است.
- topic
The APNS topic (app bundle ID) to send the notification to.
نمونه:
- Register a push subscription for the current user.
- api.php?action=echopushsubscriptions&command=create&provider=fcm&providertoken=ABC123 [باز کردن در صفحهٔ تمرین]