add twit-feed, twit-status

This commit is contained in:
Anton Dyudin 2016-03-14 15:17:47 -07:00
parent de6e230dd3
commit b6ef9f6d40
3 changed files with 36 additions and 2 deletions

17
mar/twit/feed.hoon Normal file
View File

@ -0,0 +1,17 @@
:: Twitter statuses
::
:::: /hoon/feed/twit/mar
::
/+ twitter, httr-to-json
|_ (list stat:twitter)
++ grab
|%
++ noun (list stat:twitter)
++ json (corl need (ar:jo stat:parse:twitter))
++ httr (cork httr-to-json json) :: XX mark translation
--
++ grow
|%
++ tank >[+<]<
--
--

17
mar/twit/status.hoon Normal file
View File

@ -0,0 +1,17 @@
:: Twitter status
::
:::: /hoon/stat/twit/mar
::
/+ twitter, httr-to-json
|_ stat:twitter
++ grab
|%
++ noun stat:twitter
++ json (corl need stat:parse:twitter)
++ httr (cork httr-to-json json) :: XX mark translation
--
++ grow
|%
++ tank >[+<]<
--
--

View File

@ -1,6 +1,6 @@
:: Twitter api request
:: List of twitter users
::
:::: /hoon/req/twit/mar
:::: /hoon/usel/twit/mar
::
/+ twitter, httr-to-json
|_ (list who/@ta)