メニュー

Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

メンバーリソース

The Member resource of Programmable Chat represents the membership of a User within the Service instance to a Channel.

プロパティ

各メンバーに次のプロパティがあります。

Names in PHP format
sid
sid<MB> Not PII

このリソースを一意に識別する 34 文字の文字列です。

accountSid
sid<AC> Not PII

このメンバーに関連するアカウントのユニーク ID です。

channelSid
sid<CH> Not PII

このメンバーが属するチャンネルのユニーク ID です。

serviceSid
sid<IS> Not PII

このメンバーが属するサービスのユニーク ID です。

identity
文字列 PII MTL: 120 DAYS

A unique string identifier for this User in this Service. See the access tokens docs for more details.

dateCreated
date_time<iso8601> Not PII

このリソースの作成された日付です。

dateUpdated
date_time<iso8601> Not PII

このリソースが最後に更新された日付です。

roleSid
sid<RL> Not PII

このメンバーに割り当てられているロールです。

lastConsumedMessageIndex
integer? Not PII

An Integer representing index of the last Message this Member has read within this Channel

lastConsumptionTimestamp
date_time<iso8601> Not PII

このチャンネル内のこのメンバーにおける直前のメッセージの開封イベント日時を表すISO8601ベースのタイムスタンプ文字列です。

url
url Not PII

このメンバーの絶対 URL です。

attributes
文字列 PII MTL: 120 DAYS

An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. Note that if the attributes are not set "{}" will be returned.

チャンネルのすべてのメンバーをリストにする

GET /Services/{Service SID}/Channels/{Channel SID}/Members
Names in PHP format
serviceSid
必須
GET sid<IS> Not PII

Sid of the Service this member belongs to.

channelSid
必須
GET sid_like<CH> Not PII

Key of the Channel this member belongs to. Could be Sid or UniqueName

identity
オプション
GET string[] PII MTL: 120 DAYS

A unique string identifier for this User in this Service. See the access tokens docs for more details.

        
        
        
        

        チャンネルにメンバーを追加する

        POST /Services/{Service SID}/Channels/{Channel SID}/Members
        

        パラメーター

        Names in PHP format
        serviceSid
        必須
        post sid<IS> Not PII

        Sid of the Service this member belongs to.

        channelSid
        必須
        post sid_like<CH> Not PII

        Key of the Channel this member belongs to. Could be Sid or UniqueName

        identity
        必須
        post 文字列 PII MTL: 120 DAYS

        A unique string identifier for this User in this Service. See the access tokens docs for more details.

        roleSid
        オプション
        post sid<RL> Not PII

        The role to be assigned to this member. Defaults to the roles specified on the Service.

        lastConsumedMessageIndex
        オプション
        post integer? Not PII

        Field used to specify the last consumed Message index for the Channel for this Member. Should only be used when recreating a Member from a backup/separate source.

        lastConsumptionTimestamp
        オプション
        post date_time<iso8601> Not PII

        ISO8601 time indicating the last datetime the Member consumed a Message in the Channel. Should only be used when recreating a Member from a backup/separate source

        dateCreated
        オプション
        post date_time<iso8601> Not PII

        The ISO8601 time specifying the datetime the Members should be set as being created. Will be set to the current time by the Chat service if not specified. Note that this should only be used in cases where a Member is being recreated from a backup/separate source

        dateUpdated
        オプション
        post date_time<iso8601> Not PII

        The ISO8601 time specifying the datetime the Member should be set as having been last updated. Will be set to the null by the Chat service if not specified. Note that this should only be used in cases where a Member is being recreated from a backup/separate source and where a Member was previously updated.

        attributes
        オプション
        post 文字列 PII MTL: 120 DAYS

        An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. Note that if the attributes are not set "{}" will be returned.

              
              
              
              

              Update an existing Member

              You are able to update an existing Member via the SID or Identity

              Member SID

              POST /Services/{Service SID}/Channels/{Channel SID}/Members/{Member SID}
              

              Member Identity

              POST /Services/{Service SID}/Channels/{Channel SID}/Members/{Member Identity}
              

              パラメーター

              Names in PHP format
              serviceSid
              必須
              post sid<IS> Not PII

              Sid of the Service this member belongs to.

              channelSid
              必須
              post sid_like<CH> Not PII

              Key of the Channel this member belongs to. Could be Sid or UniqueName

              sid
              必須
              post sid_like<MB> Not PII

              Key that uniquely defines the member to update. Could be Member Sid or User Identity.

              roleSid
              オプション
              post sid<RL> Not PII

              The role to be assigned to this member. Defaults to the roles specified on the Service.

              lastConsumedMessageIndex
              オプション
              post integer? Not PII

              Field used to specify the last consumed Message index for the Channel for this Member. Should only be used when recreating a Member from a backup/separate source.

              lastConsumptionTimestamp
              オプション
              post date_time<iso8601> Not PII

              ISO8601 time indicating the last datetime the Member consumed a Message in the Channel. Should only be used when recreating a Member from a backup/separate source

              dateCreated
              オプション
              post date_time<iso8601> Not PII

              The ISO8601 time specifying the datetime the Members should be set as being created. Will be set to the current time by the Chat service if not specified. Note that this should only be used in cases where a Member is being recreated from a backup/separate source

              dateUpdated
              オプション
              post date_time<iso8601> Not PII

              The ISO8601 time specifying the datetime the Member should be set as having been last updated. Will be set to the null by the Chat service if not specified. Note that this should only be used in cases where a Member is being recreated from a backup/separate source and where a Member was previously updated.

              attributes
              オプション
              post 文字列 PII MTL: 120 DAYS

              An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. Note that if the attributes are not set "{}" will be returned.

              チャンネルメンバーを取得する

              You are able to retrieve an existing Member via the SID or Identity

              Member SID

              GET /Services/{Service SID}/Channels/{Channel SID}/Members/{Member SID}
              

              Member Identity

              GET /Services/{Service SID}/Channels/{Channel SID}/Members/{Member Identity}
              
                    
                    
                    
                    

                    チャンネルからメンバーを削除する

                    You are able to remove an existing Member via the SID or Identity

                    Member SID

                    DELETE /Services/{Service SID}/Channels/{Channel SID}/Members/{Member SID}
                    

                    Member Identity

                    DELETE /Services/{Service SID}/Channels/{Channel SID}/Members/{Member Identity}
                    
                          
                          
                          
                          
                          Rate this page:

                          ヘルプが必要ですか?

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