You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -53,9 +53,9 @@ There are three ways to authenticate our client:
53
53
The most common way to authenticate is using an OAuth 2 token. You will need to generate this by some means outside of the library, and then provide it as below:
54
54
55
55
```php
56
-
$c = new Bitbucket\Client();
56
+
$client = new Bitbucket\Client();
57
57
58
-
$c->authenticate(
58
+
$client->authenticate(
59
59
Bitbucket\Client::AUTH_OAUTH_TOKEN,
60
60
'your-token-here'
61
61
);
@@ -66,9 +66,9 @@ $c->authenticate(
66
66
It is possible to login using a username and password combination. This method is not recommended for production use, however you find it useful never the less:
67
67
68
68
```php
69
-
$c = new Bitbucket\Client();
69
+
$client = new Bitbucket\Client();
70
70
71
-
$c->authenticate(
71
+
$client->authenticate(
72
72
Bitbucket\Client::AUTH_HTTP_PASSWORD,
73
73
'your-username-here',
74
74
'your-password-here'
@@ -81,10 +81,10 @@ Finally, we support logging in using JSON web tokens (JWTs). This method is excl
0 commit comments