hosting
GET /v1/wordpress/plugin-directory
Search the WordPress plugin directory.
تصدیقهویت
یو API کی د بیئرر ټوکن (bearer token) په توګه ولیکئ. کی باید د sites.view اجازه ولري؛ له دې اجازې پرته کی د 404 پرځای د 403 په واسطه رد کیږي.
دا پای نقطه د سازمان هېڅ آی ډي نه اخلي. ستاسو کیلي مخکې تر مخکې هغه سازمان په ګوته کوي چې پورې اړه لري، او ځواب ورته محدود دی.
هڅه وکړئ
د انګلیسي په زاوي پنسونو کې هرڅه د خپلو ارزښتونو سره بدل کړئ، او د کلي ځای لرونکی ستاسو د ډشبورډ د کلي سره.
curl -X GET https://api.zinndigital.com/v1/wordpress/plugin-directory?q=<q> \
-H "Authorization: Bearer zdk_live_…"ننوتي یاست؟ ستاسو په ډشبورډ کې د API کنسول ستاسو د اصلي سازمان ID او ستاسو خپله کیلي ډکوي، او غوښتنه د ژوندی API په وړاندې پرمخ وړي ترڅو تاسو وکولی شئ اصلي ځواب وګورئ. دا پای ټکی (endpoint) د API په کنسول کې پرانیزئ
تفصیلات
Plugins a customer can install, from the wordpress.org directory. Collection-level and not under a site, because choosing a plugin comes before choosing where to put it — the fleet-wide manager picks the plugin first and the sites second, and hanging this off /v1/sites/{siteId}/… would force it to name an irrelevant site to search. An empty or whitespace-only q returns an empty page rather than the directory's popularity ranking: sixty thousand plugins nobody asked for, one upstream call per keystroke of nothing. rating is normalised to 0–5. The upstream reports 0–100, and a client rendering that as stars without dividing shows every plugin as full marks. author is plain text — upstream sends it as an HTML anchor, which is stripped here so a vendor's markup never reaches our page. Requires sites.view. The upstream is unauthenticated and read-only; our egress routing for it is registered as wordpress_org.
پارامترونه
| نوم | ډول | اړین | دا څه شی دی |
|---|---|---|---|
q (query) | string | هو | What to search for. |
page (query) | integer | نه | — |
per_page (query) | integer | نه | — |
ځواب
| نوم | ډول | اړین | دا څه شی دی |
|---|---|---|---|
data | WordPressDirectoryPlugin[] | هو | — |
page | integer | هو | — |
pages | integer | هو | Total pages available. 0 when nothing matched. |
total | integer | هو | Total matching plugins across all pages. |
تېروتنې چې دا پای ټکی یې بیرته راګرځولی شي
401 · 403 · 429 · 503