def get_authorize_url(self, redirect_uri=None, **kw):
        redirect = redirect_uri if redirect_uri else self.redirect_uri
        if not redirect:
            raise APIError('21305', 'Parameter absent: redirect_uri', 'OAuth2 request')
        response_type = kw.pop('response_type', 'code')
        return '%s%s?%s' % (self.auth_url, 'authorize', \
                _encode_params(client_id = self.client_id, \
                        response_type = response_type, \
                        redirect_uri = redirect, **kw))
Uploads a new screenshot.
dataset/ETHPy150Open michaelliao/sinaweibopy/weibo.py/APIClient.get_authorize_url--crossover with--dataset/ETHPy150Open reviewboard/rbtools/rbtools/api/resource.py/ScreenshotListResource.upload_screenshot