class EME::Auth
Public Class Methods
generate_authentication_token(game_account_id, conn = connection)
click to toggle source
# File lib/eme/auth.rb, line 20 def self.generate_authentication_token(game_account_id, conn = connection) do_request("/api/v1/generate_authentication_token?game_account_id=#{game_account_id}", conn) end
make_ticket(game_account_id, conn = connection)
click to toggle source
# File lib/eme/auth.rb, line 5 def self.make_ticket(game_account_id, conn = connection) do_request("/ticket/#{game_account_id}", conn) end
verify_simple_ticket(ticket, conn = connection)
click to toggle source
# File lib/eme/auth.rb, line 10 def self.verify_simple_ticket(ticket, conn = connection) path = URI.encode("/ticket/#{ticket}/verify_simple") do_request(path, conn, {:method => :post, :errors => {'404' => 'Ticket not found or already used.'}}) end
verify_ticket(ticket, conn = connection)
click to toggle source
# File lib/eme/auth.rb, line 15 def self.verify_ticket(ticket, conn = connection) path = URI.encode("/ticket/#{ticket}/verify") do_request(path, conn, {:method => :post, :errors => {'404' => 'Ticket not found or already used.'}}) end