Method: Profile#read_notifications

Defined in:
lib/user/profile/profile.rb

#read_notifications(data) ⇒ Object

Read notifications.

Read notifications by data.

Parameters

data

(Hash) – Data to be submitted.

Example

data = {
  "ids": ["406e9b74-4a9d-42f2-afc6-1587bad6147c", "a2d9f582-1bdb-4e55-8af0-cd1962eaa88c"],
  "read": true
}
@data = @mints_user.read_notifications(data)


89
90
91
92
93
# File 'lib/user/profile/profile.rb', line 89

def read_notifications(data)
    #TODO: Inform NotificationController.read method has been modified
    #TODO: Method in controller didnt return data
    return @client.raw("post", "/profile/notifications/read", nil, data_transform(data))
end