How to register and get dynamic information (for example, for the mail service it may be the number of new messages, for twitter - the number of subscribers) using an asynchronous Ajax request
- I watched api in different social networks, but there are indicated methods already for registered users or viewing data without registration, example: $ (document) .ready (function () {$ .getJSON (' twitter.com/users/usejquery.json?callback = ? ', function (json) {// getting information about user @ usejquery $ (' # twitter_followers'). text (json.followers_count); // getting the number of followers from a json object and placing it in <span>})}} ); Can anyone have an example with registration! sincerely grateful in advance - Faraon7390
|
2 answers
Either through ajax monitor, or in the direction of node.js to dig
- can you share an example? - Faraon7390 2:42 pm
|
Almost every social sphere has an API. Honor, there are both Ajax and php libraries.
- I watched api in different social networks, but there are indicated methods already for registered users or viewing data without registration, example: $ (document) .ready (function () {$ .getJSON (' twitter.com/users/usejquery.json?callback = ? ', function (json) {// getting information about user @ usejquery $ (' # twitter_followers'). text (json.followers_count); // getting the number of followers from a json object and placing it in <span>})}} ); Can anyone have an example with registration! sincerely grateful in advance - Faraon7390
|