Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     getAPITokens : function ( pCB ) {
  2.         if( ! this.config )
  3.             return pCB( "Configuration requise" );
  4.         skyCrawl.post("http://redsky.fr/ajax/account/api.php",{"pseudo":this.config.pseudo,"pass":this.config.pass},(function(e,r,b){
  5.             var result ;
  6.             try{ result = JSON.parse( b ); } catch(e){ result = false ; }
  7.             if( result !== false ) {
  8.                 if( result["error"] != undefined && result["error"] != false ) {
  9.                     return pCB( result["error"] );
  10.                 } else {
  11.                     return pCB( undefined, result );
  12.                 }
  13.             } else return ( "Erreur inconnue" );
  14.         }).bind(this));
  15.     } ,
  16.  
  17. http://redsky.fr/ajax/account/api.php
  18. POST : pseudo / pass
  19. RETURN ( json ) : [ error ( not null ) ] OU [ error ( = "" ) / hash / pseudo / id / tms ]
  20.  
  21. Si error donné, aucun autre param n'est donné
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement