mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 18:12:47 +03:00
579efd9972
* removes old-zuse
37 lines
771 B
Plaintext
37 lines
771 B
Plaintext
:: API: input oauth1 application credentials for domain
|
|
::
|
|
:::: /hoon/init-oauth1/hood/gen
|
|
::
|
|
/? 314
|
|
/- sole
|
|
/+ generators
|
|
::
|
|
::::
|
|
::
|
|
=, generators
|
|
=, eyre
|
|
:- %ask
|
|
|= $: {now/@da eny/@uvJ bec/beak}
|
|
{arg/$@(~ {dom/path ~})}
|
|
~
|
|
==
|
|
^- (sole-result:sole {$write-sec-atom p/host q/@})
|
|
=- ?~ arg -
|
|
(fun.q.q [%& dom.arg])
|
|
%+ prompt
|
|
[%& %oauth-hostname "api hostname: https://"]
|
|
%+ parse thos:de-purl:html
|
|
|= hot/host
|
|
?: ?=(%| -.hot)
|
|
~|(%ips-unsupported !!)
|
|
%+ prompt
|
|
[%& %oauth-client "consumer key: "]
|
|
%+ parse (boss 256 (star prn))
|
|
|= key/@t
|
|
%+ prompt
|
|
[%& %oauth-secret "consumer secret: "]
|
|
%+ parse (boss 256 (star prn))
|
|
|= sec/@t
|
|
%+ produce %write-sec-atom :: XX typed pair
|
|
[hot (of-wain:format key sec ~)]
|