我可以使用以下代码向 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 ?帖子是否有“类型”选项?