E
E
EVOSandru62017-07-04 21:16:04
PHP
EVOSandru6, 2017-07-04 21:16:04

How to organize asynchronous interaction with the API?

Good afternoon!

There is such a problem: there is an implementation for receiving and displaying tweets near the user's location. but you need to make sure that all this happens asynchronously.

Now, to get the desired result, OAuth authentication with twitter takes place. Next redirect to CallbackUrl . Those. 2 redirects. As far as I understand, if I use Ajax to my URL, where the authentication with Twitter begins, then the content of the authentication page will be sent to the response?! Is it further concatenated with the contents of the callback? Or will there be no response at all? Please tell me - how to deal with redirects? As a result, I only need the output of my CallbackUrl .

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question