summaryrefslogblamecommitdiff
path: root/server/piztor/mesg_sender.py
blob: bbb112e3c9d12819c51ac049b0902b22ba15336a (plain) (tree)
1
2
3
4
5
6
7
8





                         

                  












                                       
                                     
                                     
                                    
                                           
                                                       
                       
from random import random
from time import sleep

from sys import argv
from ptp_send import *

username = "hello"
password = "world"
mesg = "niu x push!"
#username = "1234567890123456789012"
#password = "world12345678901234567890"

if len(argv) == 2:
    host = argv[1]

if len(argv) == 4:
    username = argv[1]
    password = argv[2]
    mesg = argv[3]


token = user_auth(username, password)
send_text_mesg(token, username, mesg)
send_text_mesg(token, username, "a")
send_text_mesg(token, username, "the last")
update_location(token, username, 31.028616, 121.434661)
logout(token, username)