Comments (7)
So doing further digging, if you look the class AccountPath.CallQueuesPath.BulkAssignPath() you will see there is a Post with EditGroupRequest
`public class BulkAssignPath : PathSegment
{
protected override string Segment { get; }
public Task<GlipGroupInfo> Post();
public Task<GlipGroupInfo> Post(object parameters);
public Task<GlipGroupInfo> Post(EditGroupRequest parameters);
}`
But the EditGroupRequest has the incorrect fields inside. What it has
`public class EditGroupRequest
{
public EditGroupRequest();
public string[] addedPersonIds { get; set; }
public string[] addedPersonEmails { get; set; }
public string[] removedPersonIds { get; set; }
}`
what it should be based on the API Reference
`public class EditGroupRequest
{
public EditGroupRequest();
public string[] addedExtensionIds { get; set; }
public string[] removedExtensionIds { get; set; }
}`
from ringcentral-csharp-client.
Hi @AndyHaas whenever there is an exception caused by server, catch it and print the response message from server: https://github.com/ringcentral/ringcentral-csharp-client#exception-handling
catch (FlurlHttpException fhe)
{
string errorMessage = fhe.GetResponseString();
Console.WriteLine(errorMessage);
from ringcentral-csharp-client.
what it should be based on the API Reference
Which API reference do you mean? Send me the link
Please check the error message first. Mostly like you will know how to solve the issue after reading error message.
from ringcentral-csharp-client.
@tylerlong here is the exception message. Sorry about not including this
Flurl.Http.FlurlHttpException: Call failed with status code 400 (Bad Request): POST https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/call-queues/210164004/bulk-assign at Flurl.Http.FlurlRequest.<HandleExceptionAsync>d__23.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at Flurl.Http.FlurlRequest.<SendAsync>d__19.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Flurl.Http.FlurlRequest.<SendAsync>d__19.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at RingCentral.RestClient.<Post>d__9
1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at RingCentralAPI.Controllers.CallQueueMemberController.<Post>d__0.MoveNext() in C:\Enterprise\Internal\RingCentral\Relese 3.1\RingCentralAPI\RingCentralAPI\Controllers\CallQueueMemberController.cs:line 71
from ringcentral-csharp-client.
what it should be based on the API Reference
Which API reference do you mean? Send me the link
Please check the error message first. Mostly like you will know how to solve the issue after reading error message.
@tylerlong
Here is the API Reference I was mentioning
RingCentral API Reference https://developer.ringcentral.com/api-reference#Account-Provisioning-updateCallQueueGroup
from ringcentral-csharp-client.
@AndyHaas stacktrace is useless. Print the error message please:
catch (FlurlHttpException fhe)
{
string errorMessage = fhe.GetResponseString();
Console.WriteLine(errorMessage);
from ringcentral-csharp-client.
We do not maintain this SDK any more. Every user should use RingCentral.NET
from ringcentral-csharp-client.
Related Issues (20)
- Incoming notification HOT 1
- Get caller name using DetailedTelephonyState event filter. HOT 2
- .Net Core Webhosting not able to find the referenced package assemblies Micorsoft.AspNetCore HOT 1
- REST API which should support multi target framework(.net 472 and .net core) HOT 1
- Make header info available? HOT 2
- QUESTION: Subscription: Message Store HOT 2
- How about a complete example in C# HOT 3
- Running in console app HOT 2
- Missing FaxPath.PostParameters HOT 2
- Create subscription after token refreshed HOT 1
- Access Token expires HOT 1
- Add documentation for Auth Code HOT 1
- Cross platform targeting HOT 1
- Signed/StrongNamed version? HOT 1
- Not able to generate access tokens after Authorization HOT 1
- rc.Authorize hangs up
- Add Support for Call Log Sync - Account level HOT 1
- 3 legged Authorization
- Obsolete reference to Microsoft.AspNet.WebApi.Client
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ringcentral-csharp-client.