Truth Inquiry

Api

createGame

Create a game session

This endpoint create a game in the server, the username passed as parametter is set as the game owner


/api/v1/createGame

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json,text/plain; charset=utf-8"\
-H "Content-Type: application/json"\
"truthInquiry.simailadjalim.fr/api/v1/createGame"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApiApi;

import java.io.File;
import java.util.*;

public class ApiApiExample {

    public static void main(String[] args) {
        
        ApiApi apiInstance = new ApiApi();
        V1_createGame_body body = ; // V1_createGame_body | username to set as game owner
        try {
            newGameData result = apiInstance.createGame(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApiApi#createGame");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApiApi;

public class ApiApiExample {

    public static void main(String[] args) {
        ApiApi apiInstance = new ApiApi();
        V1_createGame_body body = ; // V1_createGame_body | username to set as game owner
        try {
            newGameData result = apiInstance.createGame(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApiApi#createGame");
            e.printStackTrace();
        }
    }
}
V1_createGame_body *body = ; // username to set as game owner

ApiApi *apiInstance = [[ApiApi alloc] init];

// Create a game session
[apiInstance createGameWith:body
              completionHandler: ^(newGameData output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TruthInquiry = require('truth_inquiry');

var api = new TruthInquiry.ApiApi()
var body = ; // {{V1_createGame_body}} username to set as game owner

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createGame(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createGameExample
    {
        public void main()
        {

            var apiInstance = new ApiApi();
            var body = new V1_createGame_body(); // V1_createGame_body | username to set as game owner

            try
            {
                // Create a game session
                newGameData result = apiInstance.createGame(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApiApi.createGame: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiApiApi();
$body = ; // V1_createGame_body | username to set as game owner

try {
    $result = $api_instance->createGame($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ApiApi->createGame: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApiApi;

my $api_instance = WWW::SwaggerClient::ApiApi->new();
my $body = WWW::SwaggerClient::Object::V1_createGame_body->new(); # V1_createGame_body | username to set as game owner

eval { 
    my $result = $api_instance->createGame(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ApiApi->createGame: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ApiApi()
body =  # V1_createGame_body | username to set as game owner

try: 
    # Create a game session
    api_response = api_instance.create_game(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ApiApi->createGame: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - Returns a object, with the error code, and a game_id.


getGame

get game data

Guess the game from the cookie and returns general game data necessary to the client to work properly


/api/v1/getGameData

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
"truthInquiry.simailadjalim.fr/api/v1/getGameData"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApiApi;

import java.io.File;
import java.util.*;

public class ApiApiExample {

    public static void main(String[] args) {
        
        ApiApi apiInstance = new ApiApi();
        Object session = ; // Object | Local session, holds data used to authentificate the user and the games they belong.
        try {
            gameData result = apiInstance.getGame(session);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApiApi#getGame");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApiApi;

public class ApiApiExample {

    public static void main(String[] args) {
        ApiApi apiInstance = new ApiApi();
        Object session = ; // Object | Local session, holds data used to authentificate the user and the games they belong.
        try {
            gameData result = apiInstance.getGame(session);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApiApi#getGame");
            e.printStackTrace();
        }
    }
}
Object *session = ; // Local session, holds data used to authentificate the user and the games they belong.

ApiApi *apiInstance = [[ApiApi alloc] init];

// get game data
[apiInstance getGameWith:session
              completionHandler: ^(gameData output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TruthInquiry = require('truth_inquiry');

var api = new TruthInquiry.ApiApi()
var session = ; // {{Object}} Local session, holds data used to authentificate the user and the games they belong.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getGame(session, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getGameExample
    {
        public void main()
        {

            var apiInstance = new ApiApi();
            var session = new Object(); // Object | Local session, holds data used to authentificate the user and the games they belong.

            try
            {
                // get game data
                gameData result = apiInstance.getGame(session);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApiApi.getGame: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiApiApi();
$session = ; // Object | Local session, holds data used to authentificate the user and the games they belong.

try {
    $result = $api_instance->getGame($session);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ApiApi->getGame: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApiApi;

my $api_instance = WWW::SwaggerClient::ApiApi->new();
my $session = ; # Object | Local session, holds data used to authentificate the user and the games they belong.

eval { 
    my $result = $api_instance->getGame(session => $session);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ApiApi->getGame: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ApiApi()
session =  # Object | Local session, holds data used to authentificate the user and the games they belong.

try: 
    # get game data
    api_response = api_instance.get_game(session)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ApiApi->getGame: %s\n" % e)

Parameters

Responses

Status: 200 - returns a object with the error code.


getMembers

Get game members

Guess the game from the cookie and returns the members of that game


/api/v1/getGameMembers

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
"truthInquiry.simailadjalim.fr/api/v1/getGameMembers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApiApi;

import java.io.File;
import java.util.*;

public class ApiApiExample {

    public static void main(String[] args) {
        
        ApiApi apiInstance = new ApiApi();
        Object session = ; // Object | Local session, holds data used to authentificate the user and the games they belong.
        try {
            inline_response_200_2 result = apiInstance.getMembers(session);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApiApi#getMembers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApiApi;

public class ApiApiExample {

    public static void main(String[] args) {
        ApiApi apiInstance = new ApiApi();
        Object session = ; // Object | Local session, holds data used to authentificate the user and the games they belong.
        try {
            inline_response_200_2 result = apiInstance.getMembers(session);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApiApi#getMembers");
            e.printStackTrace();
        }
    }
}
Object *session = ; // Local session, holds data used to authentificate the user and the games they belong.

ApiApi *apiInstance = [[ApiApi alloc] init];

// Get game members
[apiInstance getMembersWith:session
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TruthInquiry = require('truth_inquiry');

var api = new TruthInquiry.ApiApi()
var session = ; // {{Object}} Local session, holds data used to authentificate the user and the games they belong.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getMembers(session, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getMembersExample
    {
        public void main()
        {

            var apiInstance = new ApiApi();
            var session = new Object(); // Object | Local session, holds data used to authentificate the user and the games they belong.

            try
            {
                // Get game members
                inline_response_200_2 result = apiInstance.getMembers(session);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApiApi.getMembers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiApiApi();
$session = ; // Object | Local session, holds data used to authentificate the user and the games they belong.

try {
    $result = $api_instance->getMembers($session);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ApiApi->getMembers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApiApi;

my $api_instance = WWW::SwaggerClient::ApiApi->new();
my $session = ; # Object | Local session, holds data used to authentificate the user and the games they belong.

eval { 
    my $result = $api_instance->getMembers(session => $session);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ApiApi->getMembers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ApiApi()
session =  # Object | Local session, holds data used to authentificate the user and the games they belong.

try: 
    # Get game members
    api_response = api_instance.get_members(session)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ApiApi->getMembers: %s\n" % e)

Parameters

Responses

Status: 200 - List of members in the game


getNpcImage

Get an image from its ID

This endpoint is used to show NPC images in the result page. The image id is provided by the server upon finishing the game. a static ID is needed because the server delete information related to the game after finishing it


/api/v1/getNpcImage

Usage and SDK Samples

curl -X POST\
-H "Accept: image/png"\
-H "Content-Type: application/json"\
"truthInquiry.simailadjalim.fr/api/v1/getNpcImage"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApiApi;

import java.io.File;
import java.util.*;

public class ApiApiExample {

    public static void main(String[] args) {
        
        ApiApi apiInstance = new ApiApi();
        V1_getNpcImage_body body = ; // V1_getNpcImage_body | image_id we want the image of
        try {
            'String' result = apiInstance.getNpcImage(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApiApi#getNpcImage");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApiApi;

public class ApiApiExample {

    public static void main(String[] args) {
        ApiApi apiInstance = new ApiApi();
        V1_getNpcImage_body body = ; // V1_getNpcImage_body | image_id we want the image of
        try {
            'String' result = apiInstance.getNpcImage(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApiApi#getNpcImage");
            e.printStackTrace();
        }
    }
}
V1_getNpcImage_body *body = ; // image_id we want the image of

ApiApi *apiInstance = [[ApiApi alloc] init];

// Get an image from its ID
[apiInstance getNpcImageWith:body
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TruthInquiry = require('truth_inquiry');

var api = new TruthInquiry.ApiApi()
var body = ; // {{V1_getNpcImage_body}} image_id we want the image of

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getNpcImage(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getNpcImageExample
    {
        public void main()
        {

            var apiInstance = new ApiApi();
            var body = new V1_getNpcImage_body(); // V1_getNpcImage_body | image_id we want the image of

            try
            {
                // Get an image from its ID
                'String' result = apiInstance.getNpcImage(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApiApi.getNpcImage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiApiApi();
$body = ; // V1_getNpcImage_body | image_id we want the image of

try {
    $result = $api_instance->getNpcImage($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ApiApi->getNpcImage: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApiApi;

my $api_instance = WWW::SwaggerClient::ApiApi->new();
my $body = WWW::SwaggerClient::Object::V1_getNpcImage_body->new(); # V1_getNpcImage_body | image_id we want the image of

eval { 
    my $result = $api_instance->getNpcImage(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ApiApi->getNpcImage: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ApiApi()
body =  # V1_getNpcImage_body | image_id we want the image of

try: 
    # Get an image from its ID
    api_response = api_instance.get_npc_image(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ApiApi->getNpcImage: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - image


getNpcReaction

Get an image corresponding to the reaction of a NPC in this game

This endpoint is used during the game to get a random image corresponding to the assigned reaction of a NPC. The image may change every request


/api/v1/getNpcReaction

Usage and SDK Samples

curl -X POST\
-H "Accept: image/png"\
-H "Content-Type: application/json"\
"truthInquiry.simailadjalim.fr/api/v1/getNpcReaction"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApiApi;

import java.io.File;
import java.util.*;

public class ApiApiExample {

    public static void main(String[] args) {
        
        ApiApi apiInstance = new ApiApi();
        V1_getNpcReaction_body body = ; // V1_getNpcReaction_body | ID of the NPC we want to get the image of
        Object session = ; // Object | Local session, holds data used to authentificate the user and the games they belong.
        try {
            'String' result = apiInstance.getNpcReaction(body, session);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApiApi#getNpcReaction");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApiApi;

public class ApiApiExample {

    public static void main(String[] args) {
        ApiApi apiInstance = new ApiApi();
        V1_getNpcReaction_body body = ; // V1_getNpcReaction_body | ID of the NPC we want to get the image of
        Object session = ; // Object | Local session, holds data used to authentificate the user and the games they belong.
        try {
            'String' result = apiInstance.getNpcReaction(body, session);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApiApi#getNpcReaction");
            e.printStackTrace();
        }
    }
}
V1_getNpcReaction_body *body = ; // ID of the NPC we want to get the image of
Object *session = ; // Local session, holds data used to authentificate the user and the games they belong.

ApiApi *apiInstance = [[ApiApi alloc] init];

// Get an image corresponding to the reaction of a NPC in this game
[apiInstance getNpcReactionWith:body
    session:session
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TruthInquiry = require('truth_inquiry');

var api = new TruthInquiry.ApiApi()
var body = ; // {{V1_getNpcReaction_body}} ID of the NPC we want to get the image of
var session = ; // {{Object}} Local session, holds data used to authentificate the user and the games they belong.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getNpcReaction(bodysession, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getNpcReactionExample
    {
        public void main()
        {

            var apiInstance = new ApiApi();
            var body = new V1_getNpcReaction_body(); // V1_getNpcReaction_body | ID of the NPC we want to get the image of
            var session = new Object(); // Object | Local session, holds data used to authentificate the user and the games they belong.

            try
            {
                // Get an image corresponding to the reaction of a NPC in this game
                'String' result = apiInstance.getNpcReaction(body, session);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApiApi.getNpcReaction: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiApiApi();
$body = ; // V1_getNpcReaction_body | ID of the NPC we want to get the image of
$session = ; // Object | Local session, holds data used to authentificate the user and the games they belong.

try {
    $result = $api_instance->getNpcReaction($body, $session);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ApiApi->getNpcReaction: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApiApi;

my $api_instance = WWW::SwaggerClient::ApiApi->new();
my $body = WWW::SwaggerClient::Object::V1_getNpcReaction_body->new(); # V1_getNpcReaction_body | ID of the NPC we want to get the image of
my $session = ; # Object | Local session, holds data used to authentificate the user and the games they belong.

eval { 
    my $result = $api_instance->getNpcReaction(body => $body, session => $session);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ApiApi->getNpcReaction: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ApiApi()
body =  # V1_getNpcReaction_body | ID of the NPC we want to get the image of
session =  # Object | Local session, holds data used to authentificate the user and the games they belong.

try: 
    # Get an image corresponding to the reaction of a NPC in this game
    api_response = api_instance.get_npc_reaction(body, session)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ApiApi->getNpcReaction: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - image


hasJoined

Check if the player is in a given game

Checks the cookie to see if the client is currently in a given game


/api/v1/hasJoined

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
"truthInquiry.simailadjalim.fr/api/v1/hasJoined"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApiApi;

import java.io.File;
import java.util.*;

public class ApiApiExample {

    public static void main(String[] args) {
        
        ApiApi apiInstance = new ApiApi();
        Object session = ; // Object | Local session, holds data used to authentificate the user and the games they belong.
        try {
            inline_response_200_3 result = apiInstance.hasJoined(session);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApiApi#hasJoined");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApiApi;

public class ApiApiExample {

    public static void main(String[] args) {
        ApiApi apiInstance = new ApiApi();
        Object session = ; // Object | Local session, holds data used to authentificate the user and the games they belong.
        try {
            inline_response_200_3 result = apiInstance.hasJoined(session);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApiApi#hasJoined");
            e.printStackTrace();
        }
    }
}
Object *session = ; // Local session, holds data used to authentificate the user and the games they belong.

ApiApi *apiInstance = [[ApiApi alloc] init];

// Check if the player is in a given game
[apiInstance hasJoinedWith:session
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TruthInquiry = require('truth_inquiry');

var api = new TruthInquiry.ApiApi()
var session = ; // {{Object}} Local session, holds data used to authentificate the user and the games they belong.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.hasJoined(session, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class hasJoinedExample
    {
        public void main()
        {

            var apiInstance = new ApiApi();
            var session = new Object(); // Object | Local session, holds data used to authentificate the user and the games they belong.

            try
            {
                // Check if the player is in a given game
                inline_response_200_3 result = apiInstance.hasJoined(session);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApiApi.hasJoined: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiApiApi();
$session = ; // Object | Local session, holds data used to authentificate the user and the games they belong.

try {
    $result = $api_instance->hasJoined($session);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ApiApi->hasJoined: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApiApi;

my $api_instance = WWW::SwaggerClient::ApiApi->new();
my $session = ; # Object | Local session, holds data used to authentificate the user and the games they belong.

eval { 
    my $result = $api_instance->hasJoined(session => $session);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ApiApi->hasJoined: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ApiApi()
session =  # Object | Local session, holds data used to authentificate the user and the games they belong.

try: 
    # Check if the player is in a given game
    api_response = api_instance.has_joined(session)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ApiApi->hasJoined: %s\n" % e)

Parameters

Responses

Status: 200 - Returns error code and a boolean determining if the player is in the game


isOwner

ask if the user is the game owner

This endpoint it used to know if the username stored in the cookie is the owner of the game


/api/v1/isOwner

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
"truthInquiry.simailadjalim.fr/api/v1/isOwner"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApiApi;

import java.io.File;
import java.util.*;

public class ApiApiExample {

    public static void main(String[] args) {
        
        ApiApi apiInstance = new ApiApi();
        Object session = ; // Object | Local session, holds data used to authentificate the user and the games they belong.
        try {
            inline_response_200_1 result = apiInstance.isOwner(session);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApiApi#isOwner");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApiApi;

public class ApiApiExample {

    public static void main(String[] args) {
        ApiApi apiInstance = new ApiApi();
        Object session = ; // Object | Local session, holds data used to authentificate the user and the games they belong.
        try {
            inline_response_200_1 result = apiInstance.isOwner(session);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApiApi#isOwner");
            e.printStackTrace();
        }
    }
}
Object *session = ; // Local session, holds data used to authentificate the user and the games they belong.

ApiApi *apiInstance = [[ApiApi alloc] init];

// ask if the user is the game owner
[apiInstance isOwnerWith:session
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TruthInquiry = require('truth_inquiry');

var api = new TruthInquiry.ApiApi()
var session = ; // {{Object}} Local session, holds data used to authentificate the user and the games they belong.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.isOwner(session, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class isOwnerExample
    {
        public void main()
        {

            var apiInstance = new ApiApi();
            var session = new Object(); // Object | Local session, holds data used to authentificate the user and the games they belong.

            try
            {
                // ask if the user is the game owner
                inline_response_200_1 result = apiInstance.isOwner(session);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApiApi.isOwner: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiApiApi();
$session = ; // Object | Local session, holds data used to authentificate the user and the games they belong.

try {
    $result = $api_instance->isOwner($session);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ApiApi->isOwner: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApiApi;

my $api_instance = WWW::SwaggerClient::ApiApi->new();
my $session = ; # Object | Local session, holds data used to authentificate the user and the games they belong.

eval { 
    my $result = $api_instance->isOwner(session => $session);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ApiApi->isOwner: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ApiApi()
session =  # Object | Local session, holds data used to authentificate the user and the games they belong.

try: 
    # ask if the user is the game owner
    api_response = api_instance.is_owner(session)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ApiApi->isOwner: %s\n" % e)

Parameters

Responses

Status: 200 - returns an object with the error code.


joinGame

Adds user to an existing game

This endpoint adds the username passed as parameter to the game identified by its game_id also passed as the parametter


/api/v1/joinGame

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json,text/plain; charset=utf-8"\
-H "Content-Type: application/json"\
"truthInquiry.simailadjalim.fr/api/v1/joinGame"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApiApi;

import java.io.File;
import java.util.*;

public class ApiApiExample {

    public static void main(String[] args) {
        
        ApiApi apiInstance = new ApiApi();
        JoinGameData body = ; // JoinGameData | object with a game_id and a username
        try {
            inline_response_200 result = apiInstance.joinGame(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApiApi#joinGame");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApiApi;

public class ApiApiExample {

    public static void main(String[] args) {
        ApiApi apiInstance = new ApiApi();
        JoinGameData body = ; // JoinGameData | object with a game_id and a username
        try {
            inline_response_200 result = apiInstance.joinGame(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApiApi#joinGame");
            e.printStackTrace();
        }
    }
}
JoinGameData *body = ; // object with a game_id and a username

ApiApi *apiInstance = [[ApiApi alloc] init];

// Adds user to an existing game
[apiInstance joinGameWith:body
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TruthInquiry = require('truth_inquiry');

var api = new TruthInquiry.ApiApi()
var body = ; // {{JoinGameData}} object with a game_id and a username

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.joinGame(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class joinGameExample
    {
        public void main()
        {

            var apiInstance = new ApiApi();
            var body = new JoinGameData(); // JoinGameData | object with a game_id and a username

            try
            {
                // Adds user to an existing game
                inline_response_200 result = apiInstance.joinGame(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApiApi.joinGame: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiApiApi();
$body = ; // JoinGameData | object with a game_id and a username

try {
    $result = $api_instance->joinGame($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ApiApi->joinGame: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApiApi;

my $api_instance = WWW::SwaggerClient::ApiApi->new();
my $body = WWW::SwaggerClient::Object::JoinGameData->new(); # JoinGameData | object with a game_id and a username

eval { 
    my $result = $api_instance->joinGame(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ApiApi->joinGame: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ApiApi()
body =  # JoinGameData | object with a game_id and a username

try: 
    # Adds user to an existing game
    api_response = api_instance.join_game(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ApiApi->joinGame: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - returns a object with the error code.


startGame

Start the game

Starts the game and generate necessary data


/api/v1/startGame

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
"truthInquiry.simailadjalim.fr/api/v1/startGame"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApiApi;

import java.io.File;
import java.util.*;

public class ApiApiExample {

    public static void main(String[] args) {
        
        ApiApi apiInstance = new ApiApi();
        Object session = ; // Object | Local session, holds data used to authentificate the user and the games they belong.
        try {
            inline_response_200 result = apiInstance.startGame(session);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApiApi#startGame");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApiApi;

public class ApiApiExample {

    public static void main(String[] args) {
        ApiApi apiInstance = new ApiApi();
        Object session = ; // Object | Local session, holds data used to authentificate the user and the games they belong.
        try {
            inline_response_200 result = apiInstance.startGame(session);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApiApi#startGame");
            e.printStackTrace();
        }
    }
}
Object *session = ; // Local session, holds data used to authentificate the user and the games they belong.

ApiApi *apiInstance = [[ApiApi alloc] init];

// Start the game
[apiInstance startGameWith:session
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TruthInquiry = require('truth_inquiry');

var api = new TruthInquiry.ApiApi()
var session = ; // {{Object}} Local session, holds data used to authentificate the user and the games they belong.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.startGame(session, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class startGameExample
    {
        public void main()
        {

            var apiInstance = new ApiApi();
            var session = new Object(); // Object | Local session, holds data used to authentificate the user and the games they belong.

            try
            {
                // Start the game
                inline_response_200 result = apiInstance.startGame(session);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApiApi.startGame: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiApiApi();
$session = ; // Object | Local session, holds data used to authentificate the user and the games they belong.

try {
    $result = $api_instance->startGame($session);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ApiApi->startGame: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApiApi;

my $api_instance = WWW::SwaggerClient::ApiApi->new();
my $session = ; # Object | Local session, holds data used to authentificate the user and the games they belong.

eval { 
    my $result = $api_instance->startGame(session => $session);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ApiApi->startGame: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ApiApi()
session =  # Object | Local session, holds data used to authentificate the user and the games they belong.

try: 
    # Start the game
    api_response = api_instance.start_game(session)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ApiApi->startGame: %s\n" % e)

Parameters

Responses

Status: 200 - returns a object with the error code.


Pages

homePage

Main page

Home page of the game, it serves as a hub of all other pages : legal mentions, credits and game pages


/

Usage and SDK Samples

curl -X GET\
-H "Accept: text/html"\
"truthInquiry.simailadjalim.fr/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PagesApi;

import java.io.File;
import java.util.*;

public class PagesApiExample {

    public static void main(String[] args) {
        
        PagesApi apiInstance = new PagesApi();
        try {
            apiInstance.homePage();
        } catch (ApiException e) {
            System.err.println("Exception when calling PagesApi#homePage");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PagesApi;

public class PagesApiExample {

    public static void main(String[] args) {
        PagesApi apiInstance = new PagesApi();
        try {
            apiInstance.homePage();
        } catch (ApiException e) {
            System.err.println("Exception when calling PagesApi#homePage");
            e.printStackTrace();
        }
    }
}

PagesApi *apiInstance = [[PagesApi alloc] init];

// Main page
[apiInstance homePageWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TruthInquiry = require('truth_inquiry');

var api = new TruthInquiry.PagesApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.homePage(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class homePageExample
    {
        public void main()
        {

            var apiInstance = new PagesApi();

            try
            {
                // Main page
                apiInstance.homePage();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PagesApi.homePage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPagesApi();

try {
    $api_instance->homePage();
} catch (Exception $e) {
    echo 'Exception when calling PagesApi->homePage: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PagesApi;

my $api_instance = WWW::SwaggerClient::PagesApi->new();

eval { 
    $api_instance->homePage();
};
if ($@) {
    warn "Exception when calling PagesApi->homePage: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.PagesApi()

try: 
    # Main page
    api_instance.home_page()
except ApiException as e:
    print("Exception when calling PagesApi->homePage: %s\n" % e)

Parameters

Responses

Status: 200 - return the home page of the game


invite

multiplayer lobby room

The multiplayer lobby room is shown before a multiplayer game starts, is shows the current member of the game, it is reacheable by the game id shown in the page and in the url


/lobby/{game_id}

Usage and SDK Samples

curl -X GET\
-H "Accept: text/html"\
"truthInquiry.simailadjalim.fr/lobby/{game_id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PagesApi;

import java.io.File;
import java.util.*;

public class PagesApiExample {

    public static void main(String[] args) {
        
        PagesApi apiInstance = new PagesApi();
        String gameId = gameId_example; // String | gameId
        try {
            apiInstance.invite(gameId);
        } catch (ApiException e) {
            System.err.println("Exception when calling PagesApi#invite");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PagesApi;

public class PagesApiExample {

    public static void main(String[] args) {
        PagesApi apiInstance = new PagesApi();
        String gameId = gameId_example; // String | gameId
        try {
            apiInstance.invite(gameId);
        } catch (ApiException e) {
            System.err.println("Exception when calling PagesApi#invite");
            e.printStackTrace();
        }
    }
}
String *gameId = gameId_example; // gameId

PagesApi *apiInstance = [[PagesApi alloc] init];

// multiplayer lobby room
[apiInstance inviteWith:gameId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TruthInquiry = require('truth_inquiry');

var api = new TruthInquiry.PagesApi()
var gameId = gameId_example; // {{String}} gameId

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.invite(gameId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class inviteExample
    {
        public void main()
        {

            var apiInstance = new PagesApi();
            var gameId = gameId_example;  // String | gameId

            try
            {
                // multiplayer lobby room
                apiInstance.invite(gameId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PagesApi.invite: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPagesApi();
$gameId = gameId_example; // String | gameId

try {
    $api_instance->invite($gameId);
} catch (Exception $e) {
    echo 'Exception when calling PagesApi->invite: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PagesApi;

my $api_instance = WWW::SwaggerClient::PagesApi->new();
my $gameId = gameId_example; # String | gameId

eval { 
    $api_instance->invite(gameId => $gameId);
};
if ($@) {
    warn "Exception when calling PagesApi->invite: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.PagesApi()
gameId = gameId_example # String | gameId

try: 
    # multiplayer lobby room
    api_instance.invite(gameId)
except ApiException as e:
    print("Exception when calling PagesApi->invite: %s\n" % e)

Parameters

Path parameters
Name Description
game_id*
String
gameId
Required

Responses

Status: 200 - return the lobby page.

Status: 404 - This does not exist or does not exist anymore


mentionLegales

legal mention page

The legal mention page, holds the legal mentions such as where is hosted the website and who made it


/legal

Usage and SDK Samples

curl -X GET\
-H "Accept: text/html"\
"truthInquiry.simailadjalim.fr/legal"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PagesApi;

import java.io.File;
import java.util.*;

public class PagesApiExample {

    public static void main(String[] args) {
        
        PagesApi apiInstance = new PagesApi();
        try {
            apiInstance.mentionLegales();
        } catch (ApiException e) {
            System.err.println("Exception when calling PagesApi#mentionLegales");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PagesApi;

public class PagesApiExample {

    public static void main(String[] args) {
        PagesApi apiInstance = new PagesApi();
        try {
            apiInstance.mentionLegales();
        } catch (ApiException e) {
            System.err.println("Exception when calling PagesApi#mentionLegales");
            e.printStackTrace();
        }
    }
}

PagesApi *apiInstance = [[PagesApi alloc] init];

// legal mention page
[apiInstance mentionLegalesWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TruthInquiry = require('truth_inquiry');

var api = new TruthInquiry.PagesApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.mentionLegales(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class mentionLegalesExample
    {
        public void main()
        {

            var apiInstance = new PagesApi();

            try
            {
                // legal mention page
                apiInstance.mentionLegales();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PagesApi.mentionLegales: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPagesApi();

try {
    $api_instance->mentionLegales();
} catch (Exception $e) {
    echo 'Exception when calling PagesApi->mentionLegales: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PagesApi;

my $api_instance = WWW::SwaggerClient::PagesApi->new();

eval { 
    $api_instance->mentionLegales();
};
if ($@) {
    warn "Exception when calling PagesApi->mentionLegales: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.PagesApi()

try: 
    # legal mention page
    api_instance.mention_legales()
except ApiException as e:
    print("Exception when calling PagesApi->mentionLegales: %s\n" % e)

Parameters

Responses

Status: 200 - returns the legal mention page


multiPage

multiplayer game page

Multi player game page, it holds all of the game logic from the game creator starting the game to its end


/multi

Usage and SDK Samples

curl -X GET\
-H "Accept: text/html"\
"truthInquiry.simailadjalim.fr/multi"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PagesApi;

import java.io.File;
import java.util.*;

public class PagesApiExample {

    public static void main(String[] args) {
        
        PagesApi apiInstance = new PagesApi();
        try {
            apiInstance.multiPage();
        } catch (ApiException e) {
            System.err.println("Exception when calling PagesApi#multiPage");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PagesApi;

public class PagesApiExample {

    public static void main(String[] args) {
        PagesApi apiInstance = new PagesApi();
        try {
            apiInstance.multiPage();
        } catch (ApiException e) {
            System.err.println("Exception when calling PagesApi#multiPage");
            e.printStackTrace();
        }
    }
}

PagesApi *apiInstance = [[PagesApi alloc] init];

// multiplayer game page
[apiInstance multiPageWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TruthInquiry = require('truth_inquiry');

var api = new TruthInquiry.PagesApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.multiPage(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class multiPageExample
    {
        public void main()
        {

            var apiInstance = new PagesApi();

            try
            {
                // multiplayer game page
                apiInstance.multiPage();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PagesApi.multiPage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPagesApi();

try {
    $api_instance->multiPage();
} catch (Exception $e) {
    echo 'Exception when calling PagesApi->multiPage: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PagesApi;

my $api_instance = WWW::SwaggerClient::PagesApi->new();

eval { 
    $api_instance->multiPage();
};
if ($@) {
    warn "Exception when calling PagesApi->multiPage: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.PagesApi()

try: 
    # multiplayer game page
    api_instance.multi_page()
except ApiException as e:
    print("Exception when calling PagesApi->multiPage: %s\n" % e)

Parameters

Responses

Status: 200 - returns the game page


singlePage

solo game page

Sigle player game page, it holds all of the game logic from the player entering their username to the end of the game


/solo

Usage and SDK Samples

curl -X GET\
-H "Accept: text/html"\
"truthInquiry.simailadjalim.fr/solo"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PagesApi;

import java.io.File;
import java.util.*;

public class PagesApiExample {

    public static void main(String[] args) {
        
        PagesApi apiInstance = new PagesApi();
        try {
            apiInstance.singlePage();
        } catch (ApiException e) {
            System.err.println("Exception when calling PagesApi#singlePage");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PagesApi;

public class PagesApiExample {

    public static void main(String[] args) {
        PagesApi apiInstance = new PagesApi();
        try {
            apiInstance.singlePage();
        } catch (ApiException e) {
            System.err.println("Exception when calling PagesApi#singlePage");
            e.printStackTrace();
        }
    }
}

PagesApi *apiInstance = [[PagesApi alloc] init];

// solo game page
[apiInstance singlePageWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TruthInquiry = require('truth_inquiry');

var api = new TruthInquiry.PagesApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.singlePage(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class singlePageExample
    {
        public void main()
        {

            var apiInstance = new PagesApi();

            try
            {
                // solo game page
                apiInstance.singlePage();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PagesApi.singlePage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPagesApi();

try {
    $api_instance->singlePage();
} catch (Exception $e) {
    echo 'Exception when calling PagesApi->singlePage: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PagesApi;

my $api_instance = WWW::SwaggerClient::PagesApi->new();

eval { 
    $api_instance->singlePage();
};
if ($@) {
    warn "Exception when calling PagesApi->singlePage: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.PagesApi()

try: 
    # solo game page
    api_instance.single_page()
except ApiException as e:
    print("Exception when calling PagesApi->singlePage: %s\n" % e)

Parameters

Responses

Status: 200 - returns the game page