Plugin Version Resource
A Plugin Version contains all the information about a particular version of a Plugin . Some notable fields include the URL to the plugin package, the version number and what plugin is it the version of.
Providing a URL to the built package in the plugin version provides you the flexibility of hosting your package in the software of your choice.
Resource properties The unique string that we created to identify the Flex Plugin Version resource.
The SID of the Flex Plugin resource this Flex Plugin Version belongs to.
The unique version of this Flex Plugin Version.
The URL of where the Flex Plugin Version JavaScript bundle is hosted on.
A changelog that describes the changes this Flex Plugin Version brings.
Whether to inject credentials while accessing this Plugin Version. The default value is false.
Whether the Flex Plugin Version is archived. The default value is false.
date_created
type: string<DATE TIME> Not PIIThe absolute URL of the Flex Plugin Version resource.
POST https://flex-api.twilio.com/v1/PluginService/Plugins/{PluginSid}/Versions
Request headers
The Flex-Metadata HTTP request header
URI parameters Path Parameter
The SID of the Flex Plugin the resource to belongs to.
Request body parameters Required
The Flex Plugin Version's version.
Required
The URL of the Flex Plugin Version bundle
The changelog of the Flex Plugin Version.
Whether this Flex Plugin Version requires authorization.
_14 // Download the helper library from https://www.twilio.com/docs/node/install
_14 // Find your Account SID and Auth Token at twilio.com/console
_14 // and set the environment variables. See http://twil.io/secure
_14 const accountSid = process.env.TWILIO_ACCOUNT_SID;
_14 const authToken = process.env.TWILIO_AUTH_TOKEN;
_14 const client = require('twilio')(accountSid, authToken);
_14 client.flexApi.v1.plugins('FPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_14 pluginUrl: 'https://example.com'
_14 .then(plugin_versions => console.log(plugin_versions.sid));
_12 "sid": "FVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_12 "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_12 "plugin_sid": "FPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_12 "plugin_url": "https://sample.twil.io/plugin.js",
_12 "changelog": "the changelog",
_12 "date_created": "2020-01-10T20:00:00Z",
_12 "url": "https://flex-api.twilio.com/v1/PluginService/Plugins/FPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Versions/FVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
GET https://flex-api.twilio.com/v1/PluginService/Plugins/{PluginSid}/Versions/{Sid}
Request headers
The Flex-Metadata HTTP request header
URI parameters Path Parameter
The SID of the Flex Plugin the resource to belongs to.
Path Parameter
The SID of the Flex Plugin Version resource to fetch.
_11 // Download the helper library from https://www.twilio.com/docs/node/install
_11 // Find your Account SID and Auth Token at twilio.com/console
_11 // and set the environment variables. See http://twil.io/secure
_11 const accountSid = process.env.TWILIO_ACCOUNT_SID;
_11 const authToken = process.env.TWILIO_AUTH_TOKEN;
_11 const client = require('twilio')(accountSid, authToken);
_11 client.flexApi.v1.plugins('FPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11 .pluginVersions('FVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11 .then(plugin_versions => console.log(plugin_versions.sid));
_12 "sid": "FVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_12 "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_12 "plugin_sid": "FPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_12 "plugin_url": "https://sample.twil.io/plugin.js",
_12 "changelog": "the changelog",
_12 "date_created": "2020-01-10T20:00:00Z",
_12 "url": "https://flex-api.twilio.com/v1/PluginService/Plugins/FPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Versions/FVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
GET https://flex-api.twilio.com/v1/PluginService/Plugins/{PluginSid}/Versions
Request headers
The Flex-Metadata HTTP request header
URI parameters Path Parameter
The SID of the Flex Plugin the resource to belongs to.
Query Parameter
How many resources to return in each list page. The default is 50, and the maximum is 1000.
Query Parameter
The page index. This value is simply for client state.
Query Parameter
The page token. This is provided by the API.
_11 // Download the helper library from https://www.twilio.com/docs/node/install
_11 // Find your Account SID and Auth Token at twilio.com/console
_11 // and set the environment variables. See http://twil.io/secure
_11 const accountSid = process.env.TWILIO_ACCOUNT_SID;
_11 const authToken = process.env.TWILIO_AUTH_TOKEN;
_11 const client = require('twilio')(accountSid, authToken);
_11 client.flexApi.v1.plugins('FPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11 .then(pluginVersions => pluginVersions.forEach(p => console.log(p.sid)));
_25 "sid": "FVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_25 "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_25 "plugin_sid": "FPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_25 "plugin_url": "https://sample.twil.io/plugin.js",
_25 "changelog": "the changelog",
_25 "date_created": "2020-01-10T20:00:00Z",
_25 "url": "https://flex-api.twilio.com/v1/PluginService/Plugins/FPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Versions/FVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
_25 "first_page_url": "https://flex-api.twilio.com/v1/PluginService/Plugins/FPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Versions?PageSize=50&Page=0",
_25 "previous_page_url": "https://flex-api.twilio.com/v1/PluginService/Plugins/FPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Versions?PageSize=50&Page=0",
_25 "url": "https://flex-api.twilio.com/v1/PluginService/Plugins/FPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Versions?PageSize=50&Page=0",
_25 "next_page_url": "https://flex-api.twilio.com/v1/PluginService/Plugins/FPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Versions?PageSize=50&Page=1",
_25 "key": "plugin_versions"