Example #1
0
def test_add_users():
    email = "*****@*****.**"
    password = "******"
    nick = "nick1"
    photo_url = "a.a"
    about = u"没什么"
    openID_uid = u"微博1"
    openID_source = "sina"
    user = users_api.add_users(email, password, nick, photo_url, about, openID_uid, openID_source)
    print user
Example #2
0
	def put(self):
		email = self.request.arguments['email']
		password = self.request.arguments['password']
		nick = self.request.arguments['nick']
		photo_url = self.request.arguments['photo_url']
		about = self.request.arguments['about']
		openID_uid = self.request.arguments['openID_uid']
		openID_source = self.request.arguments['openID_source']
		
		user = users_api.add_users(email, password, nick, photo_url, about, openID_uid, openID_source)