Sha256: 3b099f6a4135dfd9f87e6a6a84a92caaa36efc214208463231bd382fd59b3b65
Contents?: true
Size: 689 Bytes
Versions: 1
Compression:
Stored size: 689 Bytes
Contents
module OnlinegamesInfoConnect module OauthMessages def messages_index(user, mailbox) user.token.get("/api/messages", {params: {mailbox: mailbox}}).parsed end def messages_show(user, message_id) user.token.get("/api/messages/#{message_id}").parsed end def messages_destroy(user, message_id) user.token.delete("/api/messages/#{message_id}").parsed end def messages_create(user, ip, message_type, to_char_id, to_unknown, subject, msg_text) return user.token.post("/api/messages", {params: {ip: ip, message_type: message_type, subject: subject, message_text: msg_text, to_char_id: to_char_id, to_unknown: to_unknown}}).parsed end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
onlinegames_info_connect-0.0.1 | lib/onlinegames_info_connect/oauth_messages.rb |