Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

        def simple_rest_factory(method):
    method = method.lower()
    if method == 'get':
        return REST_GET()
    elif method == 'post':
        return REST_POST()
        


src/a/l/Aliyun-0.1.1/src/aliyun/modules/moye/functions.py   Aliyun(Download)
def query(args):
    from aliyun.rest import simple_rest_factory
    from json import loads
    from time import sleep
    from urllib import quote
    #from pprint import pprint
    post = simple_rest_factory('post')
    print "Done.\n"
 
    get = simple_rest_factory('get')
    while True:
        result = loads(get.request('/status/%s/' % (quote(result['job_name'].encode('utf-8')).replace('/', '%252F'),)))