Setting subscriptions aggregated query parameter to true using the c#.net SDK

  • 1
  • Question
  • Updated 2 years ago
In the API Docs, it states if you want the subscription to return certain parameters, lets say, dndStatus on a Presence event, the aggregated query parameter on the subscription request need to be set to true. I am unable to see where you can set this parameter to true using the c# .NET SDK. Is this not a option using the SDK?
Photo of Hamoody Abdulla

Hamoody Abdulla

  • 332 Points 250 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Benjamin Dean

Benjamin Dean

  • 8,602 Points 5k badge 2x thumb
Hey Hamody,

Sorry to hear you're hitting an issue. Have you posted this in the Github issue tracker for the RingCentral C# SDK?

That is probably the "best" place to get an answer quickly. I've not used this feature, but have you tried enabling the detailedPresence query parameter by setting it to true to see if you receive the data you expect?
Photo of Hamoody Abdulla

Hamoody Abdulla

  • 332 Points 250 badge 2x thumb
Benjamin,

I have posted on github per your advice. Also I have tried the detailed Presence to no avail. Same thing applies to it with the aggregated boolean needing to be true.

Regards
Photo of Hamoody Abdulla

Hamoody Abdulla

  • 332 Points 250 badge 2x thumb
The github issue I posted resulted in a solution. Tylerlong responded that you just add a the parameter on the end of the request URL like this:

/restapi/v1.0/account/~/extension/~/presence?aggregated=true

You can find the issue on github at this link: Issue 21

Thanks for the help.
(Edited)
Photo of Benjamin Dean

Benjamin Dean

  • 8,602 Points 5k badge 2x thumb
That's all Tyler's awesome doing there...but happy to facilitate.