Channel Developers

thumbnail

Get a file url in a UserChat

15分後に失効する署名付きファイルURLを取得できます。

URL https://api.channel.io/open/v5/user-chats/{userChatId}/messages/fileおよびHTTP GET経由でアクセス可能

この方法は現在application/jsonのみサポートしています。

パラメータ

要件

説明

タイプ

userChatId

1234

必須

UserChatのID

Path

key

pub-file/12345/0a1b2c3d4e5f6g7h8i9j/example.txt

必須

FileのKey

Query

GET https://api.channel.io/open/v5/user-chats/1234/messages/file?key=pub-file/12345/0a1b2c3d4e5f6g7h8i9j/example.txt

15分後に期限切れになる署名付きファイルURLを返します。

JSON