hosting

GET /v1/wordpress/theme-directory/{slug}

One theme from the WordPress directory.

सर्व hosting एंडपॉइंट्स

प्रमाणीकरण

बेरर टोकन म्हणून API की पाठवा. की मध्ये sites.view परवानगी असणे आवश्यक आहे; ती नसलेली की 404 ऐवजी 403 सह नाकारली जाते.

या एंडपॉइंटला कोणतीही संस्था आयडी (organisation id) लागत नाही. तुमची की (key) आधीच ती कोणत्या संस्थेशी संबंधित आहे हे ओळखते आणि प्रतिसाद त्यानुसार मर्यादित केला जातो.

प्रयत्न करा

कोनसांस्कृतिक कंसात (<>) असलेली कोणतीही गोष्ट तुमच्या स्वतःच्या मूल्यांनी बदला आणि key प्लेसहोल्डरला तुमच्या डॅशबोर्डवरील किने बदला.

curl -X GET https://api.zinndigital.com/v1/wordpress/theme-directory/{slug} \
  -H "Authorization: Bearer zdk_live_…"

साइन इन केलेले आहे? तुमच्या डॅशबोर्डमधील 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.

प्रतिसाद

नावप्रकारआवश्यकहे काय आहे
slugstringहोय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 ca…
namestringहोय
versionstringहोय
authorstringहोय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.
descriptionstringहोयPlain text; the upstream's markup is stripped.
ratingnumberहोय⛔ **0–5, normalised here.** The upstream reports 0–100.
num_ratingsintegerहोय
downloadedintegerहोय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_updatedstringहोय
requires_wpstringहोयMinimum WordPress version. `""` when the theme does not say.
requires_phpstringहोयMinimum PHP version. `""` when the theme does not say.
homepagestringहोय
screenshot_urlstringहोय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_urlstringहोयA live preview on wordpress.org, normalised to `https`. ⚠️ Third-party; see the operation description.

ही एंडपॉइंट परत करू शकेल अशा त्रुटी

401 · 403 · 404 · 429 · 503