I am doing some work utilizing the API and saw the notice that Site24x7 is migrating to oAuth 2.0.
Previously, I was able to successfully fetch monitor data using JSONP (and still can, however this is being deprecated in a few months). Following the documentation, I was able to create a new "Self Client", refresh token, and access token, however I haven't been able to use the new access tokens successfully.
Will JSONP still be supported? The documentation states:
Note: Access tokens cannot be passed in the request param.
There's no way that I know of to pass parameters in POST that are part of a script tag, so I'm not sure if JSONP is possible with that limitation.
I don't have access to curl which is what all the other API examples use. With c#, I am not having success (usually 403 errors) using the new oAuth token with approaches similar to this one:
var client = new WebClient();
client.Headers.Add("Authorization", "Zoho-oauthtoken 1000.972f24********0e1fc");
string responseString = client.DownloadString("www.site24x7.com/api/monitors");
Any guidance / working c# samples would be greatly appreciated.