Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function CreateAccount(name,pass){
- $.ajax({
- url: "https://api.primedice.com/api/register",
- type: 'POST',
- data: {username: name, affiliate: "CrimsonNoble"},
- datatype: 'json',
- async: true,
- success: function(data, textStatus, jqXHR){
- $.ajax({
- url: "https://api.primedice.com/api/password?access_token="+data.access_token,
- type: 'POST',
- data: {password: pass},
- datatype: 'json',
- async: true/*,
- success: function(data, textStatus, jqXHR){
- alert(pass+" set.");
- } */
- });
- }
- });
- }
- CreateAccount("accountName","accountPassword");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement