Missing application key

66 views
Skip to first unread message

Mubashir Haq

unread,
May 25, 2013, 4:59:48 AM5/25/13
to rest...@googlegroups.com
please help i reviced this error


{"error":{"statuscode":403,"statusdesc":"Forbidden","errormessage":"Missing application key. Please see the documentation."}}

Andrew Young

unread,
May 25, 2013, 1:30:10 PM5/25/13
to rest...@googlegroups.com
You're going to have to give us more info. Code samples... help us help you.

Andrew Young

--
Sent with Sparrow

On Saturday, May 25, 2013 at 1:59 AM, Mubashir Haq wrote:

please help i reviced this error


{"error":{"statuscode":403,"statusdesc":"Forbidden","errormessage":"Missing application key. Please see the documentation."}}

--
You received this message because you are subscribed to the Google Groups "RestSharp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to restsharp+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Mubashir Haq

unread,
May 31, 2013, 10:47:50 AM5/31/13
to rest...@googlegroups.com
var client = new RestClient("https:example.com/");
        client.Authenticator = new HttpBasicAuthenticator("username", "password");
        var request = new RestRequest("https://example.com/apo/3.0/checks", Method.GET);
              // easily add HTTP Headers
        request.AddHeader("Key", "App-Key: 7562crzojhuykjhkm8nmsfn125i5");
        RestResponse response = client.Execute(request);
        var content = response.Content;
        haq.InnerHtml = response.Content;

Ross Presser

unread,
Jun 4, 2013, 11:46:23 AM6/4/13
to rest...@googlegroups.com
Apparently the API you're using doesn't recognize that you've supplied an application key. Possibly, you might need to use AddParameter with the HttpHeader parameter type. Or,  check your API documentation. Perhaps "App-Key" is incorrectly spelled or in the wrong case.
Reply all
Reply to author
Forward
0 new messages