JAVASCRIPT   8

twitter-api.js

Guest on 19th August 2021 04:26:51 PM

  1. function doTwitterLogin() {
  2.        
  3.         Application.callAjaxAndWait('registro',{method:'checkTwitterLogin'},'json',function(data) {
  4.                 var twitterLoginURL='https://api.twitter.com/oauth/authenticate?oauth_token='+data.oauth_token;
  5.                 window.open(twitterLoginURL,'socnet_login',"width=600, height=100");
  6.         });
  7.        
  8. }

Raw Paste


Login or Register to edit or fork this paste. It's free.