Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- contentType: "application/json; charset=UTF-8"
- $.ajax({
- type: 'POST',
- url: 'http://localhost:1337/deposit?steamid=' + steamid,
- data: {arr:items},
- dataType: 'json',
- contentType: "application/json; charset=UTF-8",
- success: function(data) {
- console.log("Tradeoffer has been sent");
- },
- error: function(data) {
- alert("Failed to call bot, please inform us about this issue by DM'ing us at https://twitter.com/csgobeararms");
- }
- });
- app.post('/deposit', function(req, res) {
- console.log('Deposit request recieved, info:');
- console.log('STEAM ID: ' + req.query.steamid);
- console.log('ITEMS: ' + JSON.stringify(req.body.arr));
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement