Sorry, no results found for "".

Show examples in:
Javascript HTTP
Endpoint info
Available examples

Content Management API > Plugin

Retrieve a plugin

Returns

Returns a resource object of type plugin

Examples

import { buildClient } from "@datocms/cma-client-node";
async function run() {
const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const pluginId = "RMAMRffBRlmBuDlQsIWZ0g";
const plugin = await client.plugins.find(pluginId);
// Check the 'Returned output' tab for the result ☝️
console.log(plugin);
}
run();
{
id: "RMAMRffBRlmBuDlQsIWZ0g",
name: "5 stars",
description: "A better rating experience!",
url: "https://cdn.rawgit.com/datocms/extensions/master/samples/five-stars/extension.js",
parameters: { devMode: true },
package_name: "datocms-plugin-star-rating-editor",
package_version: "0.0.4",
permissions: ["currentUserAccessToken"],
meta: { version: "2" },
}