Skip to content

Commit f8d3cf9

Browse files
esakaismaeda-ks
authored andcommitted
Rename user_ids to user_id in Account#timeline (#176)
* Rename user_ids to user_id in Account#timeline
1 parent ae77c0c commit f8d3cf9

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/twitter-ads/account.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,8 @@ def tailored_audiences(id = nil, opts = {})
256256
# @return [Array] An Array of Tweet objects.
257257
#
258258
# @since 0.2.3
259-
def scoped_timeline(ids, opts = {})
260-
ids = ids.join(',') if ids.is_a?(Array)
261-
params = { user_ids: ids }.merge!(opts)
259+
def scoped_timeline(id, opts = {})
260+
params = { user_id: id }.merge!(opts)
262261
resource = SCOPED_TIMELINE % { id: @id }
263262
request = Request.new(client, :get, resource, params: params)
264263
response = request.perform

0 commit comments

Comments
 (0)