1
0
Fork 0

Make API URL available for external use.

pull/5363/head
Stefan Grootscholten 2016-05-16 21:42:11 +02:00
parent 5a3d60c0cf
commit 0e500d4c91
1 changed files with 3 additions and 3 deletions

View File

@ -28,6 +28,8 @@ class Bitbucket
private $remoteFilesystem;
private $token = array();
const OAUTH2_ACCESS_TOKEN_URL = 'https://bitbucket.org/site/oauth2/access_token';
/**
* Constructor.
*
@ -81,9 +83,7 @@ class Bitbucket
private function requestAccessToken($originUrl)
{
try {
$apiUrl = 'https://bitbucket.org/site/oauth2/access_token';
$json = $this->remoteFilesystem->getContents($originUrl, $apiUrl, false, array(
$json = $this->remoteFilesystem->getContents($originUrl, self::OAUTH2_ACCESS_TOKEN_URL, false, array(
'retry-auth-failure' => false,
'http' => array(
'method' => 'POST',