Channel Developers

thumbnail

Get a file url in a Group

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

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

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

パラメータ

要件

説明

タイプ

groupId

1234

必須

GroupのID

Path

key

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

必須

FileのKey

Query

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

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

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

パラメータ

要件

説明

タイプ

groupName

justGroup

必須

Groupの名前

Path

key

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

必須

FileのKey

Query

GET https://api.channel.io/open/v5/groups/@justGroup/messages/file?key=pub-file/12345/0a1b2c3d4e5f6g7h8i9j/example.txt

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

JSON