Choose your language:
    List all plugins
    Returns
    Returns an array of plugin objects.

    Examples

    Example code:
    const SiteClient = require('datocms-client').SiteClient;
    const client = new SiteClient('YOUR-API-TOKEN');
    client.plugins.all()
    .then((plugins) => {
    plugins.forEach((plugin) => {
    console.log(plugin);
    });
    })
    .catch((error) => {
    console.error(error);
    });
    Returned output:
    > node example.js
    {
    "id": "124",
    "name": "5 stars",
    "description": "A simple field editor that allows a nicer editing rating experience",
    "packageName": "datocms-plugin-star-rating-editor",
    "packageVersion": "0.0.4",
    "url": "https://cdn.rawgit.com/datocms/extensions/master/samples/five-stars/extension.js",
    "parameters": {
    "devMode": true
    },
    "permissions": [
    "currentUserAccessToken"
    ],
    "meta": {
    "version": "2"
    }
    }