Skip to content

Commit

Permalink
Rename user_ids to user_id in Account#timeline (#176)
Browse files Browse the repository at this point in the history
* Rename user_ids to user_id in Account#timeline
  • Loading branch information
esakai authored and smaeda-ks committed Jun 18, 2019
1 parent ae77c0c commit f8d3cf9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/twitter-ads/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,8 @@ def tailored_audiences(id = nil, opts = {})
# @return [Array] An Array of Tweet objects.
#
# @since 0.2.3
def scoped_timeline(ids, opts = {})
ids = ids.join(',') if ids.is_a?(Array)
params = { user_ids: ids }.merge!(opts)
def scoped_timeline(id, opts = {})
params = { user_id: id }.merge!(opts)
resource = SCOPED_TIMELINE % { id: @id }
request = Request.new(client, :get, resource, params: params)
response = request.perform
Expand Down

0 comments on commit f8d3cf9

Please sign in to comment.