2016-04-07 02:51:30 +03:00
|
|
|
::
|
|
|
|
:::: /hoon/digitalocean/com/sec
|
|
|
|
::
|
|
|
|
/+ oauth2
|
|
|
|
::
|
|
|
|
::::
|
|
|
|
::
|
|
|
|
=+ ^= aut
|
|
|
|
%+ oauth2
|
2016-04-07 23:52:59 +03:00
|
|
|
'https://app.asana.com/-/oauth_authorize?response_type=code&state=ste'
|
|
|
|
'https://app.asana.com/-/oauth_token'
|
2016-04-07 02:51:30 +03:00
|
|
|
|_ {(bale keys:oauth2) tok/token.aut}
|
|
|
|
++ aut ~(. ^aut +<- /read/write)
|
|
|
|
++ out
|
|
|
|
|= a/hiss
|
|
|
|
=; mow ~& db-authorized+mow mow
|
|
|
|
%. a
|
2016-04-07 23:52:59 +03:00
|
|
|
(out-math:aut tok)
|
2016-04-07 02:51:30 +03:00
|
|
|
++ in in-code:aut
|
|
|
|
++ bak (bak-save-access:aut . |=(tok/token:aut +>(tok tok)))
|
|
|
|
--
|
|
|
|
|
2016-04-07 23:52:59 +03:00
|
|
|
:: create a developer app by logging into your asana account, clicking my
|
|
|
|
:: profile settings, clicking on 'apps,' and then 'Manage my developer apps'
|
2016-04-07 02:51:30 +03:00
|
|
|
|
|
|
|
:: Be sure to be on https://localhost:8443 and to have registered
|
2016-04-07 23:52:59 +03:00
|
|
|
:: 'http://localhost:8443/~/ac/asana.com/~./in' as the redirect URI.
|
2016-04-07 02:51:30 +03:00
|
|
|
:: (If unable to change port number of ship, change the redirect URI port in %eyre)
|
|
|
|
|
2016-04-07 23:52:59 +03:00
|
|
|
:: |init-oauth2 |init-oauth2 /com/asana
|
2016-04-07 02:51:30 +03:00
|
|
|
|
|
|
|
:: Enter home this sample command to get your user information:
|
2016-04-07 23:52:59 +03:00
|
|
|
:: +https://app.asana.com/api/1.0/workspaces/{ID}, where 'ID' is the ID of your
|
|
|
|
:: workspace, which you can easily find by using the Asana API explorer:
|
|
|
|
:: https://asana.com/developers/api-reference/workspaces
|
|
|
|
|
2016-04-07 02:51:30 +03:00
|
|
|
:: Before you receive the response, you'll have to clink on the link.
|
|
|
|
:: If you successfully auth, you should receive the response in the dojo.
|
|
|
|
|
|
|
|
|