Answer the question
In order to leave comments, you need to log in
How to make a request to OK API?
There is a code:
API_SERVER = 'https://api.ok.ru/'
sig = hashlib.md5(('friends.get' + conf.SECRET_SESSION_KEY).encode('utf8')).hexdigest()
api_request = '{}?access_token={}&method={}&application_id={}&sig={}'\
.format(API_SERVER, conf.ACCESS_TOKEN, 'friends.get', conf.APP_ID, sig)
res = requests.get(api_request).text
print(res)
Forticom API Server
Answer the question
In order to leave comments, you need to log in
We read the documentation more carefully.. Either use the api.ok.ru/fb.do wrapper, or call methods from api.ok.ru/api/...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question