Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getAPITokens : function ( pCB ) {
- if( ! this.config )
- return pCB( "Configuration requise" );
- skyCrawl.post("http://redsky.fr/ajax/account/api.php",{"pseudo":this.config.pseudo,"pass":this.config.pass},(function(e,r,b){
- var result ;
- try{ result = JSON.parse( b ); } catch(e){ result = false ; }
- if( result !== false ) {
- if( result["error"] != undefined && result["error"] != false ) {
- return pCB( result["error"] );
- } else {
- return pCB( undefined, result );
- }
- } else return ( "Erreur inconnue" );
- }).bind(this));
- } ,
- http://redsky.fr/ajax/account/api.php
- POST : pseudo / pass
- RETURN ( json ) : [ error ( not null ) ] OU [ error ( = "" ) / hash / pseudo / id / tms ]
- Si error donné, aucun autre param n'est donné
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement