예제 #1
0
def get_stats_ctr(fm, to, trunc, **kwargs):
	path = '{0}/{1}'.format(resource_path, 'ctr')
	ufm = convert.to_unixtime(fm, True)
	uto = convert.to_unixtime(to, True)
	params = {'from' : ufm, 'to' : uto, 'trunc' : trunc}
	for key, value in kwargs.iteritems():
		params[convert.to_camel_case(key)] = value
	return map(stat_from_xml, get(path=path, params_dict=params))
예제 #2
0
def update_user(user_id, **kwargs):
	path = "{0}/{1}".format(resource_path, user_id)
	params = dict([(convert.to_camel_case(k), v) for k, v in kwargs.iteritems()])
	put(path=path, params_dict=params)
예제 #3
0
def update_app(app_id, **kwargs):
	path = "{0}/{1}".format(resource_path, app_id)
	params = dict([(convert.to_camel_case(key), value) for key, value in kwargs.iteritems()])
	put(path=path, params_dict=params)
예제 #4
0
def update_order(order_id, **kwargs):
	path = '{0}/{1}'.format(resource_path, order_id)
	params = dict([(convert.to_camel_case(key), value) for key, value in kwargs.iteritems()])
	put(path=path, params_dict=params)