メニュー

Expand
ページを評価:

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.

PluginVersion properties

Resource Properties in REST API format
sid
sid<FV> Not PII

The unique string that we created to identify the Flex Plugin Version resource.

plugin_sid
sid<FP> Not PII

The SID of the Flex Plugin resource this Flex Plugin Version belongs to.

account_sid
sid<AC> Not PII

The SID of the Account that created the Flex Plugin Version resource and owns this resource.

version
文字列 Not PII

The unique version of this Flex Plugin Version.

plugin_url

The URL of where the Flex Plugin Version JavaScript bundle is hosted on.

changelog
文字列 PII MTL: 30 DAYS

A changelog that describes the changes this Flex Plugin Version brings.

private
boolean Not PII

Whether to inject credentials while accessing this Plugin Version. The default value is false.

archived
boolean Not PII

Whether the Flex Plugin Version is archived. The default value is false.

date_created
date_time<iso8601> Not PII

The date and time in GMT when the Flex Plugin Version was created specified in ISO 8601 format.

url
url Not PII

The absolute URL of the Flex Plugin Version resource.

Create a PluginVersion resource

post
https://flex-api.twilio.com/v1/PluginService/Plugins/{PluginSid}/Versions
パラメーター
Parameters in REST API format
plugin_sid
Path
post sid_like<FP> Not PII

The SID of the Flex Plugin the resource to belongs to.

version
必須
post 文字列 Not PII

The Flex Plugin Version's version.

plugin_url
必須
post url PII MTL: 30 DAYS

The URL of the Flex Plugin Version bundle

changelog
オプション
post 文字列 PII MTL: 30 DAYS

The changelog of the Flex Plugin Version.

private
オプション
post boolean Not PII

Whether this Flex Plugin Version requires authorization.

flex_metadata
ヘッダー
post 文字列 Not PII

The Flex-Metadata HTTP request header

例 1
        
        
        

        Fetch a PluginVersion resource

        GET
        https://flex-api.twilio.com/v1/PluginService/Plugins/{PluginSid}/Versions/{Sid}
        パラメーター
        Parameters in REST API format
        plugin_sid
        Path
        GET sid_like<FP> Not PII

        The SID of the Flex Plugin the resource to belongs to.

        sid
        Path
        GET sid_like<FV> Not PII

        The SID of the Flex Plugin Version resource to fetch.

        flex_metadata
        ヘッダー
        GET 文字列 Not PII

        The Flex-Metadata HTTP request header

        例 1
              
              
              

              Read multiple PluginVersion resources

              GET
              https://flex-api.twilio.com/v1/PluginService/Plugins/{PluginSid}/Versions
              パラメーター
              Parameters in REST API format
              plugin_sid
              Path
              GET sid_like<FP> Not PII

              The SID of the Flex Plugin the resource to belongs to.

              flex_metadata
              ヘッダー
              GET 文字列 Not PII

              The Flex-Metadata HTTP request header

              例 1
                    
                    
                    
                    ページを評価:

                    ヘルプが必要ですか?

                    We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.

                          
                          
                          

                          フィードバックくださりありがとうございます!

                          Please select the reason(s) for your feedback. The additional information you provide helps us improve our documentation:

                          Sending your feedback...
                          🎉 Thank you for your feedback!
                          Something went wrong. Please try again.

                          Thanks for your feedback!

                          Refer us and get $10 in 3 simple steps!

                          ステップ1

                          Get link

                          Get a free personal referral link here

                          ステップ2:

                          Give $10

                          Your user signs up and upgrade using link

                          ステップ3

                          Get $10

                          1,250 free SMSes
                          OR 1,000 free voice mins
                          OR 12,000 chats
                          OR more