Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[enhance] Twitter: New option for user timeline

  • Loading branch information...
commit 3842e4919c7b95680474c4eed8ea8353fcf709dc 1 parent a076852
Nicolas Glondu authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 stdlib/apis/twitter/twitter.opa
View
5 stdlib/apis/twitter/twitter.opa
@@ -88,6 +88,7 @@ type Twitter.timeline_options = {
page : int
since_id : int
max_id : int
+ include_rts : bool
}
/**
@@ -539,6 +540,9 @@ type Twitter.rate_limit = {
|> add_if("page", p.page, (_>0))
|> add_if("since_id", p.since_id, (_>0))
|> add_if("max_id", p.max_id, (_>0))
+ params =
+ if p.include_rts then [("include_rts", "true")|params]
+ else params
_get_res(path, params, credentials, TwitParse._build_timeline_response)
_get_generic_socgraph(name, id, cursor, graphtype:string, credentials) =
@@ -739,6 +743,7 @@ Twitter(conf:Twitter.configuration) = {{
page = 0
since_id = 0
max_id = 0
+ include_rts = true
} : Twitter.timeline_options
/**
Please sign in to comment.
Something went wrong with that request. Please try again.