Blackjack by Emgidy

FREE
By mpfernandes
Updated 4 months ago
Entertainment
-/10
Popularity Score
-
Latency
-
Success Rate

Blackjack by Emgidy API Documentation

Open source and fully functional Blackjack game. It is built on a REST based application programming interface (API). We have taken care of all the back-end complexities so you can concentrate on creating your own games.

Register to get your API credentials to start playing or download a developers build of the game. Read the documentation at http://docs.betgidy.com/blackjack-api/

View API Details
Game Functions
POSThttp://api.emgidy.com/casino-games/blackjack/init
POSThttp://api.emgidy.com/casino-games/blackjack/init

Initialises the game.

Authorization:

Each time a new game starts, a new Authorisation Code is requested to create a new Access Token which is used by all functions throughout that game. More info at: http://docs.betgidy.com/authentication

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
AuthorizationOAUTH2
REQUIREDEach time a new game starts, a new Authorisation Code is requested to create a new Access Token which is used by all functions throughout that game. More info at: http://docs.betgidy.com/authentication
Required Parameters
idSTRING
REQUIRED
actionSTRING
REQUIRED
controllerSTRING
REQUIRED
Code Snippet
unirest.post("https://mpfernandes-blackjack-online-v1.p.rapidapi.com/api/{controller}/{action}/{id}")
.header("X-RapidAPI-Host", "mpfernandes-blackjack-online-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Authorization", "")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://mpfernandes-blackjack-online-v1.p.rapidapi.com/api/{controller}/{action}/{id}
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://mpfernandes-blackjack-online-v1.p.rapidapi.com/api/{controller}/{action}/{id}")
.header("X-RapidAPI-Host", "mpfernandes-blackjack-online-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Authorization", "")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication