blob: 96a3a9d310a517157419e149686ad89c11d96819 (
plain) (
tree)
|
|
from random import random
from time import sleep
from sys import argv
from ptp_send import *
username = "a"
password = "a"
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]
uid, token = user_auth(username, password)
send_text_mesg(token, username, mesg)
send_text_mesg(token, username, "a")
update_location(token, username, 1.2345, 2.468)
update_location(token, username, 1.2345, 2.468)
send_text_mesg(token, username, "the last")
#logout(token, username)
|