我可以用下面的代码创建一个到Glip的帖子:
$AddPostHeader = @{'Content-Type' = 'application/json';'Authorization'='Bearer ' + $token}
$AddPostURL = 'https://platform.devtest.ringcentral.com/restapi/v1.0/glip/chats/' + $selectedGroup + '/posts'
$AddPostBody = @{'type' = 'TextMessage'; 'text' = 'This post was written from Powershell'}
$AddPostBody = ConvertTo-Json $AddPostBody
$NewPost = Invoke-RestMethod -h $AddPostHeader -Body $AddPostBody $AddPostURL -Method 'POST'
$AddPostURL
$NewPost但是我如何创建一个任务呢?
上面说我可以:https://medium.com/ringcentral-developers/automating-team-productivity-with-glip-748a05aa32e9
我引用了https://developers.ringcentral.com/api-reference,但没有任何幸运?帖子有'type‘选项吗?
发布于 2019-07-28 13:59:42
应用程序接口引用现在有一组RingCentral任务API。创建任务API如下所示:
下面是使用HTTP使用此API的快速示例:
必填字段:
chatId (path)subject (正文)任务nameassignees (正文)受分配人的personId 请求示例:
POST https://platform.ringcentral.com/restapi/v1.0/glip/chats/{chatId}/tasks
Authorization: Bearer <myToken>
Content-Type: application/json
{
"subject": "My New Task",
"assignees": [{"id":"123"}]
}https://stackoverflow.com/questions/56347429
复制相似问题