JSON API Calls

JSON API Calls

We are currently using an application that uses C# to make web requests to the Requests API. We are now trying to use the same framework to pull data from other objects such as Admin, Notes, etc, and our json calls are not working.

For requests we are making the following calls: to https://sdpondemand.manageengine.com/api/json/request/ passing in AuthToken, Scope, Operation and Input Data and it successfully returns data.

So looking at the API Documentation, we changed up the request to match the documentation and making the Get Requests call like this:
https://sdpondemand.manageengine.com/sdpapi/request/

Passing the same parameters and chopping them down. For example:
Call 1 -> authtoken=f564xxxxxxxxxxxxxxxxxxxxba480eb&scope=sdpodapi&OPERATION_NAME=GET_REQUESTS&INPUT_DATA={operation:{Details:{FILTERBY:All_Requests,FROM:0,LIMIT:100}}}
Call 2 -> authtoken=f564xxxxxxxxxxxxxxxxxxxxba480eb&scope=sdpodapi&OPERATION_NAME=GET_REQUESTS
Call 3 -> authtoken=f564xxxxxxxxxxxxxxxxxxxxba480eb&scope=sdpodapi
Call 4 -> authtoken=f564xxxxxxxxxxxxxxxxxxxxba480eb
Call 5 -> TECHNICIAN_KEY=f564xxxxxxxxxxxxxxxxxxxxba480eb

None of these work as we are sure that we are passing something wrong or using the wrong parameters. The call doesn’t fail, but your API returns a failure. So we know the endpoint is good, but we think are missing something in the call.

If you can provide an example of how to pull back Requests using the https://sdpondemand.manageengine.com/sdpapi/ endpoint and possibly another example showing how to GET_ALL Category I can probably figure out the rest.

Thank you!

                New to ADSelfService Plus?