Mencantumkan semua saluran PolarClaw yang terinstal dan informasi statusnya.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribePolarClawChannels |
get |
*全部资源
|
None | None |
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ApplicationId |
string |
Yes |
ID aplikasi. |
pa-************** |
| ChannelList |
array |
No |
ID saluran yang akan dikueri. Kosongkan parameter ini untuk mengembalikan semua saluran. |
feishu,telegram |
|
string |
No |
The channel ID. |
feishu |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| RequestId |
string |
The request ID. |
2281C6C9-CBAB-1AFD-8400-670750CF6025_2212 |
| Message |
string |
The response message. A value of |
successful |
| Code |
integer |
The returned status code. |
200 |
| ApplicationId |
string |
The application ID. |
pa-************** |
| Channels |
array<object> |
A list of PolarClaw channel objects. |
|
|
array<object> |
Details of a channel. |
||
| ChannelId |
string |
The channel ID. |
feishu |
| Configured |
boolean |
Indicates whether the channel is configured. |
true |
| Enabled |
boolean |
Indicates whether the channel is enabled. |
true |
| Accounts |
array<object> |
A list of account objects for the channel. |
|
|
object |
Details of an account. |
||
| AccountId |
string |
default |
|
| Enabled |
boolean |
true |
|
| Configured |
boolean |
true |
|
| Connected |
boolean |
true |
|
| LastInboundAt |
integer |
0 |
|
| LastOutboundAt |
integer |
0 |
|
| Issues |
array |
||
|
string |
*** |
||
| DefaultAccountId |
string |
The default account ID for the channel. |
default |
Contoh
Respons sukses
JSONformat
{
"RequestId": "2281C6C9-CBAB-1AFD-8400-670750CF6025_2212",
"Message": "successful",
"Code": 200,
"ApplicationId": "pa-**************",
"Channels": [
{
"ChannelId": "feishu",
"Configured": true,
"Enabled": true,
"Accounts": [
{
"AccountId": "default",
"Enabled": true,
"Configured": true,
"Connected": true,
"LastInboundAt": 0,
"LastOutboundAt": 0,
"Issues": [
"***"
]
}
],
"DefaultAccountId": "default"
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.