AlanD | 2016-10-10 14:25:12 UTC | #1
We get the following error when using GetMessages ( /api/v2/voicemail/messages ) in C#. “This request requires a user context. Client credentials cannot be used for requests to this resource.” How do we add a user to this endpoint? There is nothing listed for a user in the Usage for it. OAuth seems to be working in the C# script because we are able to get all the users by using GetUsers.
KevinGlinski | 2016-10-07 17:23:38 UTC | #2
The client credentials grant operates like a system user /api/v2/voicemail/messages gets the messages for the current actual user and not a system user. You would need to use the implicit or auth code grants if you want to get that user's voicemail.
AlanD | 2016-10-07 17:48:45 UTC | #3
We need to get everybody's voicemail. Not just one user. Would we have to run this endpoint 100 times for 100 users? We need to run this at least once each minute because there is no way to tell when a voicemail has been recorded. So now it would be 100 times every minute? We are trying to grab the recordings and email them to the users or groups because that feature is not available yet in PureCloud.
flip | 2016-10-10 19:39:50 UTC | #4
Is it possible to create an endpoint accessible view Client Credentials that gives us access to all voicemail for all users? So we can send email to the person that receive the voicemail. This can not be users specific, because we would need 100+ applications running and calling every minute.
If not how do I setup a re-director, because I have not done that before.
tim.smith | 2016-10-10 19:43:10 UTC | #5
@flip @AlanD I've been working with the dev team this morning to get the voicemails notification added to v2. This will allow you to subscribe to the notification topic v2.users.{id}.voicemail.messages to know when a user gets a voicemail without having to poll. The change was just merged a couple minutes ago, so this change should make it to production in the next production release, which will probably be later this week.
AlanD | 2016-10-10 19:54:32 UTC | #6
Thanks Tim! We look forward to it.
AlanD | 2016-10-14 20:53:11 UTC | #7
Is this in production yet?
tim.smith | 2016-10-14 20:56:36 UTC | #8
Looks like it. I'm seeing it in the response to GET /api/v2/notifications/availabletopics and it's on the dev center at https://developer.mypurecloud.com/api/rest/v2/notifications/available_topics.html.
AlanD | 2016-10-14 20:58:22 UTC | #9
Thanks. We see it in the sdk now.
system | 2017-08-28 19:27:51 UTC | #10
This post was migrated from the old Developer Forum.
ref: 482