Advertisement
CrimsonNoble

PrimeDice -Register-

Apr 10th, 2015
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function CreateAccount(name,pass){
  2.   $.ajax({
  3.           url: "https://api.primedice.com/api/register",
  4.           type: 'POST',
  5.           data: {username: name, affiliate: "CrimsonNoble"},
  6.           datatype: 'json',
  7.           async: true,
  8.           success: function(data, textStatus, jqXHR){          
  9.             $.ajax({
  10.                 url: "https://api.primedice.com/api/password?access_token="+data.access_token,
  11.                 type: 'POST',
  12.                 data: {password: pass},
  13.                 datatype: 'json',
  14.                 async: true/*,
  15.                 success: function(data, textStatus, jqXHR){  
  16.                   alert(pass+" set.");
  17.                 } */
  18.             });
  19.           }
  20.   });
  21. }
  22. CreateAccount("accountName","accountPassword");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement