Skip to content

Commit 6f6cffa

Browse files
committed
- Remove API key support
- Dump version
1 parent 81ca18c commit 6f6cffa

File tree

4 files changed

+20
-6
lines changed

4 files changed

+20
-6
lines changed

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ Asana::getUserInfo($user_id);
6868

6969
#### Get current user
7070

71-
Will return the user's info of the owner of the API key.
71+
Will return the user's info of the owner of the Personal Access Token.
7272

7373
```php
7474
Asana::getCurrentUser();
7575
```
7676

7777
#### Get all users in all workspaces
7878

79-
Will return the user's info of the owner of the API key.
79+
Will return the user's info of the owner of the Personal Access Token.
8080

8181
```php
8282
Asana::getUsers();
@@ -278,8 +278,22 @@ Asana::getTasksByFilter([
278278
]);
279279
```
280280

281+
## Upgrading
282+
283+
### Upgrade from v0.2 to v0.3
284+
285+
Asana stopped supporting API keys, so now we must use a Personal Access Token. See Asana's directions for generating a [personal access tokens](https://asana.com/guide/help/api/api#gl-access-tokens). Then update the `config/asana.php` config file with the new token:
286+
287+
```php
288+
'accessToken' => env('ASANA_TOKEN'),
289+
```
290+
281291
## Change Log
282292

293+
#### v0.3.0
294+
295+
- Remove API key (deprecated) support
296+
283297
#### v0.2.1
284298

285299
- Add support for Lumen

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"extra": {
2323
"branch-alias": {
24-
"dev-master": "0.2-dev"
24+
"dev-master": "0.3-dev"
2525
}
2626
}
2727
}

src/Torann/LaravelAsana/Asana.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Asana
3737
public function __construct($config)
3838
{
3939
// Initiate curl
40-
$this->curl = new AsanaCurl(array_get($config, 'key'), array_get($config, 'accessToken'));
40+
$this->curl = new AsanaCurl($config['accessToken']);
4141

4242
// Set defaults
4343
$this->defaultWorkspaceId = $config['workspaceId'];

src/config/asana.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
/*
66
|--------------------------------------------------------------------------
7-
| Asana API Key
7+
| Asana Access Token
88
|--------------------------------------------------------------------------
99
|
1010
*/
1111

12-
'key' => '',
12+
'accessToken' => env('ASANA_TOKEN'),
1313

1414
/*
1515
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)