Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def send_boxcar(titolo, filename, server, channel, bot, file_size):
- message= "<b>Filename: </b>"+str(filename)+"<br>"+"<b>File size: </b>"+str(file_size)+" MB<br>"+"<b>Server: </b>"+str(server)+"<br>"+"<b>Channel: </b>"+str(channel)+"<br>"+"<b>Bot: </b>"+str(bot)
- access_token = 'API_KEY'
- address = 'https://new.boxcar.io/api/notifications'
- data = {'user_credentials': access_token, 'notification[title]': titolo, 'notification[long_message]': message, 'notification[sound]': 'up'}
- r = requests.post(address, data=data)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement