def get_authorize_url(self, callback_url):
self.authorize_url = self.authorize_url[:self.authorize_url.find('<STR_LIT:?>')]if '<STR_LIT:?>' in self.authorize_url else self.authorize_url<EOL>qb_service = OAuth1Service(<EOL>consumer_key=self.consumer_key,<EOL>consumer_secret=self.consumer_secret,<EOL>request_token_url=self.request_token_url,<EOL>access_token_url=self.access_token_url,<EOL>authorize_url=self.authorize_url,<EOL>)<EOL>response = qb_service.get_raw_request_token(<EOL>params={'<STR_LIT>': callback_url})<EOL>oauth_resp = dict(parse_qsl(response.text))<EOL>self.request_token = oauth_resp['<STR_LIT>']<EOL>self.request_token_secret = oauth_resp['<STR_LIT>']<EOL>return qb_service.get_authorize_url(self.request_token)<EOL>
Returns the Authorize URL as returned by QB, and specified by OAuth 1.0a.
:return URI: