Module: IGE_ISB_API

Defined in:
lib/ige_isb_api/games.rb,
lib/ige_isb_api.rb,
lib/ige_isb_api/bonus.rb,
lib/ige_isb_api/request.rb,
lib/ige_isb_api/version.rb,
lib/ige_isb_api/callback.rb,
lib/ige_isb_api/user_api.rb,
lib/ige_isb_api/bonus_api.rb,
lib/ige_isb_api/constants.rb,
lib/ige_isb_api/validation.rb

Overview

email from ISB on 2 Oct 2013 We will use a new parameter within pass strings something called “hostID”. However being a string, we need to agree over an internal naming convention to know which URL corresponds to the string used. For example: if hostID is “1”, the url for end of session json return is api.luckygoldfish.com/isb/end-session. The url for returning the json doesn’t needs to point to a domain whitelisted in these case as the initiation is made from our side (have to double check it though) By these, we needed to change the structure for login and pass while calling our games in real mode. Please use the following:

Flash: loginc: 54,playerID passc: requestID,token,hostID

html5 name: 54,playerID password: requestID,token,hostID

where: playerID - unique player identification requestID - has to be unique for every new game session token - SHA256 digest of our ‘SECRETKEY’ + ‘IDREQUEST’ which we will use to authenticate the incoming info. hostID - the host id (configured as INT) assigned to the real URL on our site (url to IGE api will be changeable and will be depend on the hostID parameter). see github.com/Interactive-Gaming-Entertainment/ISBAPI/issues/5 this has changed now as follows: Flash: loginc: 54,player_login passc: requestID,token,hostID

html5 name: 54,player_login password: requestID,token,hostID

Defined Under Namespace

Modules: Callback Classes: Bonus, BonusAPI, Category, Constants, Game, GameInfo, Games, IGE_ISB_API_Error, InternalException, Request, UserAPI, Validation, ValidationException

Constant Summary collapse

VERSION =
"1.2.11"

Class Method Summary collapse

Class Method Details

.request(params = {}) ⇒ Object

module level method to get the redirection URL given some params.



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/ige_isb_api.rb', line 25

def self.request(params = {})
  result = nil

  begin
    request = IGE_ISB_API::Request.new(params)
    return request

  rescue InternalException => e
    puts "Caught Internal Exception: #{e.message}"
    puts e.backtrace
    raise RuntimeError, "Internal server error. Please try again later."

  rescue ValidationException => e
    puts "Caught Validation Exception: #{e.message}"
    puts e.backtrace
    raise RuntimeError, "Validation error: #{e.message} Fix your data and retry."

  rescue IGE_ISB_API_Error => e
    puts "Caught General IGE_ISB_API Error: #{e.message}"
    puts e.backtrace
    raise RuntimeError, "Undocumented Internal error: #{e.message}"
  end
end