Skip to content

Commit 91e7343

Browse files
authored
Update user-mentions.rb
1 parent 7c89970 commit 91e7343

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

User-Mention-Timeline/user-mentions.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ def get_user_mentions(url, bearer_token, query_params)
3232
method: 'get',
3333
headers: {
3434
"User-Agent" => "v2RubyExampleCode",
35-
"Authorization" => "Bearer #{bearer_token}",
36-
"x-des-apiservices" => "staging1" #TODO: remove
35+
"Authorization" => "Bearer #{bearer_token}"
3736
},
3837
params: query_params
3938
}
@@ -44,7 +43,8 @@ def get_user_mentions(url, bearer_token, query_params)
4443
return response
4544
end
4645

47-
endpoint_url.gsub(':id',id.to_s())
46+
id = 2244994945 #@TwitterDev's numeric User ID.
47+
endpoint_url = endpoint_url.gsub(':id',id.to_s())
4848

4949
response = get_user_mentions(endpoint_url, bearer_token, query_params)
5050
puts response.code, JSON.pretty_generate(JSON.parse(response.body))

0 commit comments

Comments
 (0)