'Get api url.'

def _prepare_api(self, method, path, access_token, **kw):

    headers = None
    if access_token:
        headers = {'Authorization': ('OAuth2    %s' % access_token)}
    if ('/remind/' in path):
        return (method, ('https://rm.api.weibo.com/2/%s.json' % path), headers, kw)
    if ((method == 'POST') and ('pic' in kw)):
        return ('UPLOAD', ('https://api.weibo.com/2/%s.json' % path), headers, kw)
    return (method, ('https://api.weibo.com/2/%s.json' % path), headers, kw)
