I have some questions about some API functionality.
1. Is it possible to find a user/extension by searching by a custom field? We are using a custom field to store our company unique assigned ID so t hat we can, hopefully, tie a user/ext in RC to our internal employee ID.
2. Is it possible to add sites/companies into the sandbox? Our company uses sites in production and I would like to test various things in an environment that can more closely mimic prod.
3. Do you have a demo of the API events/notifications system or a sample response that would be sent from that system?
4. The API site for creating an extension doesn’t show what fields are absolutely required. Do you have a list?
If it matters, I am using C# and the ringcentral NuGet package.
You can add this class to your code. Remember to install the latest RC PubNub SDK.
static private async Task pubnub_notification() { try { var eventFilters = new[] { "/restapi/v1.0/account/~/extension/~" }; var subscription = new Subscription(rcsdk, eventFilters, message => { Console.WriteLine("Incoming event"); var jsonObj = JObject.Parse(message); Console.WriteLine(jsonObj["body"]); }); var subscriptionInfo = await subscription.Subscribe(); Console.WriteLine(subscriptionInfo.id); Console.WriteLine("Subscribed"); while (true) { Console.WriteLine("looping ..."); Thread.Sleep(5000); } } catch (Exception ex) { Console.WriteLine(ex); } } // sample event data { "extensionId": "17800xxxx "eventType": "Update" "hints":[ "AnsweringRules" ] }
You will get just the event. There will be no info about the change though.
1. Is it possible to find a user/extension by searching by a custom field? We are using a custom field to store our company unique assigned ID so t hat we can, hopefully, tie a user/ext in RC to our internal employee ID.
As far as I know, there is no custom field search filter.
2. Is it possible to add sites/companies into the sandbox? Our company uses sites in production and I would like to test various things in an environment that can more closely mimic prod.
Yes, you can open a support ticket and request for this.
3. Do you have a demo of the API events/notifications system or a sample response that would be sent from that system?
What events/notifications?
4. The API site for creating an extension doesn’t show what fields are absolutely required. Do you have a list?
The minimum requirement is a contact object and the type
var params = contact: firstName: " lastName: " email: " emailAsLoginName: true/fal type: "User" }
A new Community is coming to RingCentral!
Posts are currently read-only as we transition into our new platform.We thank you for your patience
during this downtime.
Try Workflow Builder
Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!Try RingCentral Workflow Builder