code: public function requestToken($originUrl, $consumerKey, $consumerSecret)
      {
          if (!empty($this->token) || $this->getTokenFromConfig($originUrl)) {
              return $this->token['access_token'];
          }
  
          $this->io->setAuthentication($originUrl, $consumerKey, $consumerSecret);
          if (!$this->requestAccessToken($originUrl)) {
              return '';
          }
  
          $this->storeInAuthConfig($originUrl, $consumerKey, $consumerSecret);
  
          return $this->token['access_token'];
      }
docs: Retrieves an access token from Bitbucket.
  
  @param  string $originUrl
  @param  string $consumerKey
  @param  string $consumerSecret
  @return string