Module: Freefeed::V2::Users

Included in:
Client
Defined in:
lib/freefeed/v2/users.rb

Instance Method Summary collapse

Instance Method Details

#blocked_by_meObject



12
13
14
# File 'lib/freefeed/v2/users.rb', line 12

def blocked_by_me
  authenticated_request(:get, "/v2/users/blockedByMe")
end

#mark_all_directs_as_readObject



24
25
26
# File 'lib/freefeed/v2/users.rb', line 24

def mark_all_directs_as_read
  authenticated_request(:get, "/v2/users/markAllDirectsAsRead")
end

#mark_all_notifications_as_readObject



28
29
30
# File 'lib/freefeed/v2/users.rb', line 28

def mark_all_notifications_as_read
  authenticated_request(:post, "/v2/users/markAllNotificationsAsRead")
end

#unread_directs_numberObject



16
17
18
# File 'lib/freefeed/v2/users.rb', line 16

def unread_directs_number
  authenticated_request(:get, "/v2/users/getUnreadDirectsNumber")
end

#unread_notifications_numberObject



20
21
22
# File 'lib/freefeed/v2/users.rb', line 20

def unread_notifications_number
  authenticated_request(:get, "/v2/users/getUnreadNotificationsNumber")
end

#whoamiObject



8
9
10
# File 'lib/freefeed/v2/users.rb', line 8

def whoami
  authenticated_request(:get, "/v2/users/whoami")
end