M
M
mailugaga2017-03-21 19:11:15
Google
mailugaga, 2017-03-21 19:11:15

CURL+PHP Google authorization?

Good day. Started learning CURL. There was a problem of authorization through CURL in Google account on login and the password! Wherever I go, everywhere they write about the Google API. There seems to be an authorization method for login / pass. Do you really need some kind of secret_key and secret_id? Something with tokens was written. In general, knowledgeable people will understand. Can you briefly describe the principle of applying these techniques?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2017-03-21
@sergiks

Google recommends using their client libraries for OAuth authentication.
It is most likely impossible to imitate a browser with cURL and PHP. If you really want to - look towards outdated mobile browsers without JS - how Google authorization looks from them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question