Exemplo n.º 1
0
def main():

	if len(sys.argv)<2:
		sys.stderr.write("Usage : python %s username\n" % sys.argv[0])
		raise SystemExit(1)
	username = sys.argv[1]
	password = raw_input("password : "******"2013-11-01", "2013-12-01"))
	pprint.pprint(user.health())
Exemplo n.º 2
0
 def setUp(self):
     api = shapelink.get_api_fromsecrets(CLIENT_SECRETS)
     username = os.environ["SHAPELINK_USERNAME"]
     password = os.environ["SHAPELINK_PASSWORD"]
     self.user = shapelink.get_user(api, username, password)
     self.assertTrue(self.user)