2016-03-11 23:01:36 +03:00
|
|
|
:: Test url +https://api.twitter.com/1.1/account/verify_credentials.json
|
2016-04-08 23:27:53 +03:00
|
|
|
::
|
2016-03-11 07:32:27 +03:00
|
|
|
:::: /hoon/twitter/com/sec
|
2016-03-10 03:01:15 +03:00
|
|
|
::
|
|
|
|
/+ oauth1
|
2016-03-11 07:32:27 +03:00
|
|
|
!:
|
2016-03-10 03:01:15 +03:00
|
|
|
::::
|
|
|
|
::
|
2016-04-07 20:37:28 +03:00
|
|
|
|_ {bal/(bale keys:oauth1) tok/token:oauth1}
|
2016-04-08 23:27:53 +03:00
|
|
|
:: ++aut is a "standard oauth1" core, which implements the
|
|
|
|
:: most common handling of oauth1 semantics. see lib/oauth1 for more details,
|
|
|
|
:: and examples at the bottom of the file.
|
2016-04-07 20:37:28 +03:00
|
|
|
++ aut (~(standard oauth1 bal tok) . |=(tok/token:oauth1 +>(tok tok)))
|
|
|
|
++ out
|
2016-04-08 01:49:22 +03:00
|
|
|
%+ out-add-header:aut
|
2016-04-07 20:37:28 +03:00
|
|
|
token-request='https://api.twitter.com/oauth/request_token'
|
|
|
|
oauth-dialog='https://api.twitter.com/oauth/authorize'
|
|
|
|
::
|
|
|
|
++ res res-handle-request-token:aut
|
|
|
|
::
|
|
|
|
++ in
|
2016-04-08 05:50:48 +03:00
|
|
|
%- in-exchange-token:aut
|
2016-04-07 20:37:28 +03:00
|
|
|
exchange-url='https://api.twitter.com/oauth/access_token'
|
|
|
|
::
|
2016-04-07 22:34:32 +03:00
|
|
|
++ bak bak-save-token:aut
|
2016-04-07 20:37:28 +03:00
|
|
|
:: ++ wyp ~
|
2016-03-11 23:34:47 +03:00
|
|
|
--
|