Hello,
I am calling “ServiceDesk Plus” REST API v2 “View all Requests” operation in C#.NET.
http://xx.xx.xxx.xx:8080/api/v2/request .
var SdpTicketRequest = new RestRequest(strRequestURLParameters, Method.POST);
SdpTicketRequest.AddParameter("OPERATION_NAME", "GET_REQUESTS");
SdpTicketRequest.AddParameter("TECHNICIAN_KEY", SdpApiTechnicianKey);
string strInputData =
"{ \"operation\": { \"details\": { \"from\": \" " + idxFrom.ToString() +
"\", \"limit\": \"" + intLimitCount.ToString() + "\", \"filterby\": \"All_Requests\" } } } ";
SdpTicketRequest.AddParameter("INPUT_DATA", strInputData);
var SdpTickets = this._sdpRestClient.Execute<WorkItem.API>(SdpTicketRequest);
I am receiving the following response:
{"API":{"version":"1.0","response":{"operation":{"name":"","result":{"statuscode":"3006","status":"Invalid operation name.","message":"Invalid operation name."}}}}}
Why it is from version v1 ? What there is wrong?