hosting
GET /v1/wordpress/plugin-directory/{slug}
One plugin from the WordPress directory.
Tabbatar da Asali
Aika maɓallin API azaman alamar ɗauka (bearer token). Dole ne maɓallin ya kasance yana da izinin sites.view; idan babu shi, za a ƙi amfani da maɓallin tare da lambar 403, ba 404 ba.
Wannan wurin ƙarewa ba ya buƙatar ID na ƙungiya. Maɓallin ku ya riga ya gano ƙungiyar da yake ciki, kuma an iyakance amsa a kanta.
Gwada
May gurbin komai da ke cikin kusurwa da ƙimar ka, kuma may gurbin maballi da maballi daga allon sarrafa ka.
curl -X GET https://api.zinndigital.com/v1/wordpress/plugin-directory/{slug} \
-H "Authorization: Bearer zdk_live_…"An shiga? Na'urar sarrafa API da ke cikin sashin kulawarka tana cika ainihin lambar ƙungiyarka da maɓallinka naka, sannan tana gudanar da buƙatar a kan ainihin API don haka zaka iya ganin amsar gaske. Buɗe wannan tashar a cikin na'urar kula da API
Bayani
A single plugin, with its long-form `sections` (description, installation notes, changelog, FAQ) which the search deliberately omits — they are tens of kilobytes per plugin and no list view renders them. ⛔ A slug the directory does not know is a **`404`**. The upstream answers `200` with an `error` field for an unknown slug, which a naive client would render as a real plugin whose every field is empty — one the customer could click Install on. Requires `sites.view`.
Sigogi
| Suna | Nau'i | Ana buƙata | Abin da yake |
|---|---|---|---|
slug (path) | string | Eh | The directory slug, as the search returns it. |
Martani
| Suna | Nau'i | Ana buƙata | Abin da yake |
|---|---|---|---|
slug | string | Eh | The directory slug — what `installSiteWordPressPlugin` takes. ⛔ The **only** field from this resource that is ever sent to a box; the download URL is resolved by the site itself… |
name | string | Eh | — |
version | string | Eh | — |
author | string | Eh | Plain text. The upstream's surrounding anchor markup is stripped. |
short_description | string | Eh | — |
rating | number | Eh | ⛔ **0–5, normalised here.** The upstream reports 0–100; a client rendering that as stars without dividing shows every plugin as full marks. |
num_ratings | integer | Eh | — |
active_installs | integer | Eh | The directory's own estimate, and it means "at least this many" — it is bucketed upstream, so 4,000,000 and 4,900,000 both arrive as 4000000. |
last_updated | string | Eh | — |
requires_wp | string | Eh | Minimum WordPress version. `""` when the plugin does not say. |
requires_php | string | Eh | Minimum PHP version. `""` when the plugin does not say. |
tested_up_to | string | Eh | The newest WordPress the author has tested against. |
homepage | string | Eh | — |
icon_url | string | Eh | The plugin's icon, best available size. `""` when it has none — ⛔ NOT the directory's grey placeholder, which would give every icon-less plugin the same picture: present, wrong,… |
sections | object | A'a | Long-form copy (description, installation, changelog, FAQ), plain text. Present only on `getWordPressDirectoryPlugin`; the search omits it because it is tens of kilobytes per pl… |
Kuskuren da wannan matsaya za ta iya maido wa
401 · 403 · 404 · 429 · 503