hosting
GET /v1/wordpress/theme-directory/{slug}
One theme from the WordPress directory.
ప్రమాణీకరణ
బీయర్ టోకెన్గా API కీని పంపండి. కీ తప్పనిసరిగా sites.view అనుమతిని కలిగి ఉండాలి; అది లేని కీని 404 కాకుండా 403తో తిరస్కరిస్తారు.
ఈ ఎండ్పాయింట్ ఎలాంటి సంస్థ ఐడీని తీసుకోదు. మీ కీ ఇప్పటికే అది ఏ సంస్థకు చెందుతుందో గుర్తిస్తుంది మరియు ప్రతిస్పందన దానికే పరిమితం చేయబడుతుంది.
ప్రయత్నించండి
కోణీయ బ్రాకెట్లలో ఉన్న దేన్నైనా మీ స్వంత విలువలతో భర్తీ చేయండి, మరియు కీ ప్లేస్హోల్డర్ను మీ డాష్బోర్డ్ నుండి తీసుకున్న కీతో భర్తీ చేయండి.
curl -X GET https://api.zinndigital.com/v1/wordpress/theme-directory/{slug} \
-H "Authorization: Bearer zdk_live_…"సైన్ ఇన్ చేశారా? మీ డ్యాష్బోర్డ్లోని API కాన్సోల్ మీ అసలైన సంస్థ ID మరియు మీ స్వంత కీని నింపుతుంది, అలాగే మీరు అసలైన ప్రతిస్పందనను చూడటానికి లైవ్ API ద్వారా ఆభ్యర్థనను రన్ చేస్తుంది. ఈ ఎండ్పాయింట్ను API కన్సోల్లో తెరిచండి
వివరాలు
⛔ A slug the directory does not know is a 404. The upstream answers 404 with an error field for an unknown slug — and, for some shapes, 200 with the same field — and both are turned into a real 404 here. Passing the payload through would render as a theme whose every field is empty, with an Install button on it. Requires sites.view.
పారామీటర్లు
| పేరు | రకం | కావలసినది | ఇది ఏమిటి |
|---|---|---|---|
slug (path) | string | అవును | The directory slug, as the search returns it. |
స్పందన
| పేరు | రకం | కావలసినది | ఇది ఏమిటి |
|---|---|---|---|
slug | string | అవును | The directory slug — what installSiteWordPressTheme takes. ⛔ The only field from this resource ever sent to a box; the download URL is resolved by the site itself, so a… |
name | string | అవును | — |
version | string | అవును | — |
author | string | అవును | Plain text. ⛔ The upstream returns this as an object here and as an HTML anchor on the plugin API — both shapes are real and both are flattened. |
description | string | అవును | Plain text; the upstream's markup is stripped. |
rating | number | అవును | ⛔ 0–5, normalised here. The upstream reports 0–100. |
num_ratings | integer | అవును | — |
downloaded | integer | అవును | Lifetime downloads. ⛔ The theme API has no active_installs — the plugin field with the closest name means something different, so a client reusing a plugin card here would… |
last_updated | string | అవును | — |
requires_wp | string | అవును | Minimum WordPress version. "" when the theme does not say. |
requires_php | string | అవును | Minimum PHP version. "" when the theme does not say. |
homepage | string | అవును | — |
screenshot_url | string | అవును | The theme's own screenshot, normalised to https (upstream emits it protocol-relative). ⚠️ A third-party URL a client renders in an <img>; see the operation description. |
preview_url | string | అవును | A live preview on wordpress.org, normalised to https. ⚠️ Third-party; see the operation description. |
ఈ ఎండ్పాయింట్ తిరిగి ఇవ్వగల లోపాలు
401 · 403 · 404 · 429 · 503