Advertisement
opexxx

inviteapi.min.js

Sep 16th, 2019
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function verifyInviteCode(code)
  2.     {
  3.     var formData=
  4.         {
  5.         "code":code
  6.     };
  7.     $.ajax(
  8.         {
  9.         type:"POST",dataType:"json",data:formData,url:'/api/invite/verify',success:function(response)
  10.             {
  11.             console.log(response)
  12.         }
  13.         ,error:function(response)
  14.             {
  15.             console.log(response)
  16.         }
  17.     }
  18.     )
  19. }
  20. function makeInviteCode()
  21.     {
  22.     $.ajax(
  23.         {
  24.         type:"POST",dataType:"json",url:'/api/invite/how/to/generate',success:function(response)
  25.             {
  26.             console.log(response)
  27.         }
  28.         ,error:function(response)
  29.             {
  30.             console.log(response)
  31.         }
  32.     }
  33.     )
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement