def sign(self, path, api='public', method='GET', params={}, headers=None, body=None):
    url = self.urls['api'][api]
    url += ('/' + path)
    if params:
        url += ('?' + self.urlencode(params))
    return {'url': url, 'method': method, 'body': body, 'headers': headers}
def sign(self, path, api='public', method='GET', params={}, headers=None, body=None):
    url = self.urls['api'][api]
    url += ('/' + path)
    if params:
        url += ('?' + self.urlencode(params))
    return {'url': url, 'method': method, 'body': body, 'headers': headers}