L
L
Lenar Fattakhov2014-11-18 16:54:52
Social media
Lenar Fattakhov, 2014-11-18 16:54:52

How to get a list of friends through the classmates API?

Good evening. I write in js, I have absolutely no experience working with classmates.
As I understand it, you first need to log in using the application, using the link
www.odnoklassniki.ru/oauth/authorize?
client_id = AYDI_PRILOZHENIYA & a
scope = VALUABLE_ACCESS &
response_type = token &
redirect_uri = links to my site "
As a result, I get a link type MOY_SAYT / # access_token = e6ffb013ce.ee6da6aeef1f87cff0e43137da10155f4c8319cd74d0213e & session_secret_key = 6d1e7686e652cc34ee1dd399dd5327b4The
documentation says that you need to send a request of this type
/ friends / get? application_key = [ Application Key]&sig=[Signature]&session_key=[Session Key]
Is Signature a token?
When I try to do this, the browser complains
No 'Access-Control-Allow-Origin' header is present on the requested resource.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valery Ozhiganov, 2015-02-01
@fr_end

The browser is complaining due to the same origin policy.
When calling the method, an access_token is passed and the request is signed (signature parameter) using the session_secret_key.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question