Sha256: 546a5ec8d2b7c70b3e56c8bf00bdf802d8b450e0da77a3c5c7003b11b8ce31b0
Contents?: true
Size: 1.18 KB
Versions: 7
Compression:
Stored size: 1.18 KB
Contents
module Gameball class Notifications # include Gameball::Utils def self.get_notifications(playerUniqueId,params={}) Gameball::Utils.validate(params, [], ["limit","page","isRead","lang"]) res = Gameball::Utils::request("get", "/integrations/notifications/#{playerUniqueId}",params:params) unless res.kind_of? Net::HTTPSuccess if res.kind_of? Net::HTTPInternalServerError raise Gameball::GameballError.new("An Internal Server Error has occurred") else raise Gameball::GameballError.new(res.body) end else return res end end def self.mark_notifications(body) Gameball::Utils.validate(body, ["notificationIds"], []) res = Gameball::Utils::request("put", "/integrations/notifications",body) unless res.kind_of? Net::HTTPSuccess if res.kind_of? Net::HTTPInternalServerError raise Gameball::GameballError.new("An Internal Server Error has occurred") else raise Gameball::GameballError.new(res.body) end else return res end end end end
Version data entries
7 entries across 7 versions & 1 rubygems