Answer the question
In order to leave comments, you need to log in
How to use CURL to authorize on the site through Google or Microsoft?
Hello. There is a site that allows you to get the name of a person / company by phone number. I did not find an open API on the site. There is a section for developers, but there you need them to confirm the status of the developer manually or something like that. In order to find out the name of a person / company by number, you need to log in to the site, but authorization is available only through google or microsoft. There is an idea to log in using CURL or another library, but the problem is that this is not just authorization (login, password), but OAUTH2.
Questions:
1. Is it possible, by means of CURL (or analogues in PHP), to log in to the site through Google / MicroSoft? If possible, please tell me how.
2. From the site, when searching, there is a request for
https://www.truecaller.com/api/search?type=4&count... <country code>&q=<phone number>, while in the headers it is transmitted
Authorization: Bearer <token or similar>. I tried in Postman to make a request to this URL and this token, everything is OK: the data is returned in JSON. But where they got this token, I don't know.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question