[英]Create a task programmatically in RingCentral
我可以使用以下代码在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却没有任何运气? 帖子有“类型”选项吗?
API参考现在具有一组RingCentral Tasks API。 此处创建任务API:
使用HTTP使用此API的简单示例如下:
必填字段:
chatId
(路径) subject
(正文)任务名称 assignees
(身体)受让人的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"}]
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.