2016-10-22 02:44:39 +03:00
|
|
|
:: API: input oauth1 application credentials for domain
|
2016-03-10 02:53:58 +03:00
|
|
|
::
|
|
|
|
:::: /hoon/init-oauth1/hood/gen
|
|
|
|
::
|
|
|
|
/? 314
|
|
|
|
/- sole
|
2017-11-10 03:06:58 +03:00
|
|
|
/+ old-zuse
|
|
|
|
=, old-zuse
|
2016-03-10 02:53:58 +03:00
|
|
|
::
|
|
|
|
::::
|
2016-11-17 04:42:58 +03:00
|
|
|
::
|
2016-11-17 04:37:39 +03:00
|
|
|
=, sole
|
2016-03-10 02:53:58 +03:00
|
|
|
:- %ask
|
2016-08-11 21:15:06 +03:00
|
|
|
|= $: {now/@da eny/@uvJ bec/beak}
|
2018-03-19 07:18:20 +03:00
|
|
|
{arg/$@(~ {dom/path ~})}
|
|
|
|
~
|
2016-03-10 02:53:58 +03:00
|
|
|
==
|
|
|
|
^- (sole-result {$write-sec-atom p/host q/@})
|
|
|
|
=- ?~ arg -
|
|
|
|
(fun.q.q [%& dom.arg])
|
|
|
|
%+ sole-lo
|
|
|
|
[%& %oauth-hostname "api hostname: https://"]
|
|
|
|
%+ sole-go thos:urlp
|
|
|
|
|= hot/host
|
2018-03-19 06:54:47 +03:00
|
|
|
?: ?=(%| -.hot)
|
2016-03-10 02:53:58 +03:00
|
|
|
~|(%ips-unsupported !!)
|
|
|
|
%+ sole-lo
|
|
|
|
[%& %oauth-client "consumer key: "]
|
|
|
|
%+ sole-go (boss 256 (star prn))
|
|
|
|
|= key/@t
|
|
|
|
%+ sole-lo
|
|
|
|
[%& %oauth-secret "consumer secret: "]
|
|
|
|
%+ sole-go (boss 256 (star prn))
|
|
|
|
|= sec/@t
|
|
|
|
%+ sole-so %write-sec-atom :: XX typed pair
|
2017-11-10 03:06:58 +03:00
|
|
|
[hot (of-wain:format key sec ~)]
|