code: def _prepare_api(self, method, path, access_token, **kw):
          '''
          Get api url.
          '''
          headers = None
          if access_token:
              headers = {'Authorization': 'OAuth2 %s' % access_token}
          if '/remind/' in path:
              # sina remind api url is different:
              return method, 'https://rm.api.weibo.com/2/%s.json' % path, headers, kw
          if method == 'POST' and 'pic' in kw:
              # if 'pic' in parameter, set to UPLOAD mode:
              return 'UPLOAD', 'https://api.weibo.com/2/%s.json' % path, headers, kw
          return method, 'https://api.weibo.com/2/%s.json' % path, headers, kf _prepare_api(self, method, path, access_token, **kw):
          '''
          Get api url.
          '''
          headers = None
          if access_token:
              headers = {'Authorization': 'OAuth2 %s' % access_token}
          if '/remind/' in path:
              # sina remind api url is different:
              return method, 'https://rm.api.weibo.com/2/%s.json' % path, headers, kw
          if method == 'POST' and 'pic' in kw:
              # if 'pic' in parameter, set to UPLOAD mode:
              return 'UPLOAD', 'https://api.weibo.com/2/%s.json' % path, headers, kw
          return method, 'https://api.weibo.com/2/%s.json' % path, headers, kw
docs: Get api url.