Factored out structures

This commit is contained in:
Anton Dyudin 2015-01-26 19:11:08 -08:00
parent a1fd3597e6
commit 3431844d94
3 changed files with 13 additions and 15 deletions

View File

@ -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

View File

@ -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
:: ::

View 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
==
--