lowjack's blog

By lowjack, history, 5 weeks ago, In English,

How to use Codeforces API to compose a request to use a person api key to authenticate that request.

I keep on getting the error : "You have to be authenticated to use this method".

Eg: "{u'status': u'FAILED', u'comment': u'apiKey: Incorrect signature;onlyOnline: You have to be authenticated to use this method'}"

 
 
 
 
  • Vote: I like it  
  • -5
  • Vote: I do not like it  

»
5 weeks ago, # |
  Vote: I like it +9 Vote: I do not like it

is error a Grandmaster ?

»
5 weeks ago, # |
  Vote: I like it +12 Vote: I do not like it

I just tested it and it's working fine. You are probably not constructing a proper request.

  • »
    »
    5 weeks ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Can you please give me an example of correct request?

    • »
      »
      »
      5 weeks ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      The one in the example is a correct request. Just change the xxx,yyy and the time parameter because API only allows 5 mins before current time.