Method: Ayadn::Endpoints#global

Defined in:
lib/ayadn/endpoints.rb

#global(options) ⇒ Object



76
77
78
79
80
81
82
83
84
85
# File 'lib/ayadn/endpoints.rb', line 76

def global(options)
  make_options_list(options) do
    API.build_query({count: Settings.options.counts.global})
  end
  if Settings.global.force
    "#{@posts_url}stream/global?#{@options_list}"
  else
    "#{@posts_url}stream/global?access_token=#{Settings.user_token}#{@options_list}"
  end
end