Skip to content

Commit

Permalink
Add listsStatuses
Browse files Browse the repository at this point in the history
  • Loading branch information
himura committed Aug 29, 2014
1 parent 9f7692b commit 44eddb3
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion Web/Twitter/Conduit/Api.hs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ module Web.Twitter.Conduit.Api

-- * Lists
-- , listsList
-- , listsStatuses
, ListsStatuses
, listsStatuses
, ListsMembersDestroy
, listsMembersDestroy
, ListsMemberships
Expand Down Expand Up @@ -607,6 +608,34 @@ deriveHasParamInstances ''FavoritesDestroy
[ "include_entities"
]

data ListsStatuses
-- | Returns the query parameter which fetches a timeline of tweets authored by members of the specified list.
--
-- You can perform request by using 'call':
--
-- @
-- res <- 'call' '$' 'listsStatuses' ('ListNameParam' "thimura/haskell")
-- @
--
-- If you need more statuses, you can obtain those by using 'sourceWithMaxId':
-- @
-- res <- sourceWithMaxId ('listsStatuses' ('ListNameParam' "thimura/haskell") & count ?~ 200) $$ CL.take 1000
-- @
--
-- >>> listsStatuses (ListNameParam "thimura/haskell")
-- APIRequestGet "https://api.twitter.com/1.1/lists/statuses.json" [("slug","haskell"),("owner_screen_name","thimura")]
-- >>> listsStatuses (ListIdParam 20849097)
-- APIRequestGet "https://api.twitter.com/1.1/lists/statuses.json" [("list_id","20849097")]
listsStatuses :: ListParam -> APIRequest ListsStatuses [Status]
listsStatuses q = APIRequestGet (endpoint ++ "lists/statuses.json") (mkListParam q)
deriveHasParamInstances ''ListsStatuses
[ "since_id"
, "max_id"
, "count"
, "include_entities"
, "include_rts"
]

data ListsMembersDestroy
-- | Returns the post parameter which removes the specified member from the list.
--
Expand Down

0 comments on commit 44eddb3

Please sign in to comment.