Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. contentType: "application/json; charset=UTF-8"
  2.  
  3. $.ajax({
  4. type: 'POST',
  5. url: 'http://localhost:1337/deposit?steamid=' + steamid,
  6. data: {arr:items},
  7. dataType: 'json',
  8. contentType: "application/json; charset=UTF-8",
  9. success: function(data) {
  10. console.log("Tradeoffer has been sent");
  11. },
  12. error: function(data) {
  13. alert("Failed to call bot, please inform us about this issue by DM'ing us at https://twitter.com/csgobeararms");
  14. }
  15. });
  16.  
  17. app.post('/deposit', function(req, res) {
  18. console.log('Deposit request recieved, info:');
  19. console.log('STEAM ID: ' + req.query.steamid);
  20. console.log('ITEMS: ' + JSON.stringify(req.body.arr));
  21. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement