'Retrieves a temporary access token'

def get_token(self, url):

    parsed_url = urlparse.urlsplit(url)
    parsed_url = parsed_url._replace(path='/authorization/api')
    self.url = urlparse.urlunsplit(parsed_url)
    response = self.request(method='GET', url=('/v1/token?url=' + url))
    return response.text
