Создать задачу программно в RingCentral - PullRequest
1 голос
/ 28 мая 2019

Я могу создать сообщение для 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' для сообщения?

...