module Instagram::Client::Utils

@private

Public Instance Methods

utils_raw_response() click to toggle source

Returns the raw full response including all headers. Can be used to access the values for 'X-Ratelimit-Limit' and 'X-Ratelimit-Remaining'

Examples

client = Instagram.client(:access_token => session[:access_token])
response = client.utils_raw_response
remaining = response.headers[:x_ratelimit_remaining]
limit = response.headers[:x_ratelimit_limit]
# File lib/instagram/client/utils.rb, line 13
def utils_raw_response
  response = get('users/self/feed',nil, false, true)
  response
end

Private Instance Methods

get_username() click to toggle source

Returns the configured user name or the user name of the authenticated user

@return [String]

# File lib/instagram/client/utils.rb, line 23
def get_username
  @user_name ||= self.user.username
end