Skip to content

Commit

Permalink
Rename authorise => authorize (#7)
Browse files Browse the repository at this point in the history
While the spelling is interchangable outside of North America, the B2 API
uses authorize, so we should keep the same spelling here to minimize
confusion.

Fixes #6
  • Loading branch information
matslindh authored and Chris White committed Jul 21, 2016
1 parent 082b272 commit 3a83aed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __construct($accountId, $applicationKey, array $options = [])
$this->client = new HttpClient(['exceptions' => false]);
}

$this->authoriseAccount();
$this->authorizeAccount();
}

/**
Expand Down Expand Up @@ -401,11 +401,11 @@ public function deleteFile(array $options)
}

/**
* Authorise the B2 account in order to get an auth token and API/download URLs.
* Authorize the B2 account in order to get an auth token and API/download URLs.
*
* @throws \Exception
*/
protected function authoriseAccount()
protected function authorizeAccount()
{
$response = $this->client->request('GET', 'https://api.backblaze.com/b2api/v1/b2_authorize_account', [
'auth' => [$this->accountId, $this->applicationKey]
Expand Down

0 comments on commit 3a83aed

Please sign in to comment.