mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 10:02:47 +03:00
Factored out structures
This commit is contained in:
parent
a1fd3597e6
commit
3431844d94
@ -2,17 +2,12 @@
|
|||||||
::
|
::
|
||||||
:::: /hook/core/twit/app
|
:::: /hook/core/twit/app
|
||||||
::
|
::
|
||||||
:: /- twit-do :: XX wherefore broken
|
/- *twitter
|
||||||
/+ twitter
|
/+ twitter
|
||||||
::
|
::
|
||||||
:::: ~fyr
|
:::: ~fyr
|
||||||
::
|
::
|
||||||
|%
|
|%
|
||||||
++ twit-do :: action
|
|
||||||
$% [%auth p=keys] :: set API keys
|
|
||||||
[%post p=@uvI q=cord] :: post a tweet
|
|
||||||
==
|
|
||||||
::
|
|
||||||
++ twit-path :: valid peer path
|
++ twit-path :: valid peer path
|
||||||
$% [%home ~] :: home timeline
|
$% [%home ~] :: home timeline
|
||||||
[%user p=@t ~] :: user's tweets
|
[%user p=@t ~] :: user's tweets
|
||||||
|
@ -3,15 +3,7 @@
|
|||||||
:::: /hook/core/twitter/lib
|
:::: /hook/core/twitter/lib
|
||||||
::
|
::
|
||||||
/? 314
|
/? 314
|
||||||
::
|
/- *twitter
|
||||||
:::: structures
|
|
||||||
::
|
|
||||||
|%
|
|
||||||
++ keys :: twitter-key type
|
|
||||||
$: con=[tok=@t sec=@t] :: user key pair
|
|
||||||
acc=[tok=@t sec=@t] :: app key pair
|
|
||||||
==
|
|
||||||
--
|
|
||||||
!:
|
!:
|
||||||
:::: functions
|
:::: functions
|
||||||
::
|
::
|
||||||
|
11
main/sur/twitter/core.hook
Normal file
11
main/sur/twitter/core.hook
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
|%
|
||||||
|
++ twit-do
|
||||||
|
$% [%auth p=keys] :: set API keys
|
||||||
|
[%post p=@uvI q=cord] :: post a tweet
|
||||||
|
==
|
||||||
|
::
|
||||||
|
++ keys :: twitter-key type
|
||||||
|
$: con=[tok=@t sec=@t] :: user key pair
|
||||||
|
acc=[tok=@t sec=@t] :: app key pair
|
||||||
|
==
|
||||||
|
--
|
Loading…
Reference in New Issue
Block a user