Quizz movie

API

getAnswers

Return the number of answers of the user


/answers

Usage and SDK Samples

curl -X GET "https://lp-miar-groupe01-cloned-paul604.c9users.io/quiz-omdb-1.0.0/answers?token="
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();
        String token = token_example; // String | The token of the user
        try {
            inline_response_200_4 result = apiInstance.getAnswers(token);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APIApi#getAnswers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.APIApi;

public class APIApiExample {

    public static void main(String[] args) {
        APIApi apiInstance = new APIApi();
        String token = token_example; // String | The token of the user
        try {
            inline_response_200_4 result = apiInstance.getAnswers(token);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APIApi#getAnswers");
            e.printStackTrace();
        }
    }
}
String *token = token_example; // The token of the user

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

// Return the number of answers of the user
[apiInstance getAnswersWith:token
              completionHandler: ^(inline_response_200_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var QuizzMovie = require('quizz_movie');

var api = new QuizzMovie.APIApi()

var token = token_example; // {String} The token of the user


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

namespace Example
{
    public class getAnswersExample
    {
        public void main()
        {
            
            var apiInstance = new APIApi();
            var token = token_example;  // String | The token of the user

            try
            {
                // Return the number of answers of the user
                inline_response_200_4 result = apiInstance.getAnswers(token);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling APIApi.getAnswers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\APIApi();
$token = token_example; // String | The token of the user

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

my $api_instance = WWW::SwaggerClient::APIApi->new();
my $token = token_example; # String | The token of the user

eval { 
    my $result = $api_instance->getAnswers(token => $token);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling APIApi->getAnswers: $@\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()
token = token_example # String | The token of the user

try: 
    # Return the number of answers of the user
    api_response = api_instance.get_answers(token)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling APIApi->getAnswers: %s\n" % e)

Parameters

Query parameters
Name Description
token*
String
The token of the user
Required

Responses

Status: 200 - OK

Status: 405 - Invalid token


getGoodanswers

Return the number of good answers of the user


/goodanswers

Usage and SDK Samples

curl -X GET "https://lp-miar-groupe01-cloned-paul604.c9users.io/quiz-omdb-1.0.0/goodanswers?token="
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();
        String token = token_example; // String | The token of the user
        try {
            inline_response_200_3 result = apiInstance.getGoodanswers(token);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APIApi#getGoodanswers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.APIApi;

public class APIApiExample {

    public static void main(String[] args) {
        APIApi apiInstance = new APIApi();
        String token = token_example; // String | The token of the user
        try {
            inline_response_200_3 result = apiInstance.getGoodanswers(token);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APIApi#getGoodanswers");
            e.printStackTrace();
        }
    }
}
String *token = token_example; // The token of the user

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

// Return the number of good answers of the user
[apiInstance getGoodanswersWith:token
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var QuizzMovie = require('quizz_movie');

var api = new QuizzMovie.APIApi()

var token = token_example; // {String} The token of the user


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

namespace Example
{
    public class getGoodanswersExample
    {
        public void main()
        {
            
            var apiInstance = new APIApi();
            var token = token_example;  // String | The token of the user

            try
            {
                // Return the number of good answers of the user
                inline_response_200_3 result = apiInstance.getGoodanswers(token);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling APIApi.getGoodanswers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\APIApi();
$token = token_example; // String | The token of the user

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

my $api_instance = WWW::SwaggerClient::APIApi->new();
my $token = token_example; # String | The token of the user

eval { 
    my $result = $api_instance->getGoodanswers(token => $token);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling APIApi->getGoodanswers: $@\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()
token = token_example # String | The token of the user

try: 
    # Return the number of good answers of the user
    api_response = api_instance.get_goodanswers(token)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling APIApi->getGoodanswers: %s\n" % e)

Parameters

Query parameters
Name Description
token*
String
The token of the user
Required

Responses

Status: 200 - OK

Status: 405 - Invalid token


getQuestion

Get a new question


/question

Usage and SDK Samples

curl -X GET "https://lp-miar-groupe01-cloned-paul604.c9users.io/quiz-omdb-1.0.0/question?token="
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();
        String token = token_example; // String | The token of the user
        try {
            Question result = apiInstance.getQuestion(token);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APIApi#getQuestion");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.APIApi;

public class APIApiExample {

    public static void main(String[] args) {
        APIApi apiInstance = new APIApi();
        String token = token_example; // String | The token of the user
        try {
            Question result = apiInstance.getQuestion(token);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APIApi#getQuestion");
            e.printStackTrace();
        }
    }
}
String *token = token_example; // The token of the user

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

// Get a new question
[apiInstance getQuestionWith:token
              completionHandler: ^(Question output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var QuizzMovie = require('quizz_movie');

var api = new QuizzMovie.APIApi()

var token = token_example; // {String} The token of the user


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

namespace Example
{
    public class getQuestionExample
    {
        public void main()
        {
            
            var apiInstance = new APIApi();
            var token = token_example;  // String | The token of the user

            try
            {
                // Get a new question
                Question result = apiInstance.getQuestion(token);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling APIApi.getQuestion: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\APIApi();
$token = token_example; // String | The token of the user

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

my $api_instance = WWW::SwaggerClient::APIApi->new();
my $token = token_example; # String | The token of the user

eval { 
    my $result = $api_instance->getQuestion(token => $token);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling APIApi->getQuestion: $@\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()
token = token_example # String | The token of the user

try: 
    # Get a new question
    api_response = api_instance.get_question(token)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling APIApi->getQuestion: %s\n" % e)

Parameters

Query parameters
Name Description
token*
String
The token of the user
Required

Responses

Status: 200 - OK

Status: 400 - Error not defined

Status: 405 - Invalid token


post Disconnect

Disconnect user


/disconnect

Usage and SDK Samples

curl -X POST "https://lp-miar-groupe01-cloned-paul604.c9users.io/quiz-omdb-1.0.0/disconnect?token="
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();
        String token = token_example; // String | The token of the user
        try {
            inline_response_200_2 result = apiInstance.post Disconnect(token);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APIApi#post Disconnect");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.APIApi;

public class APIApiExample {

    public static void main(String[] args) {
        APIApi apiInstance = new APIApi();
        String token = token_example; // String | The token of the user
        try {
            inline_response_200_2 result = apiInstance.post Disconnect(token);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APIApi#post Disconnect");
            e.printStackTrace();
        }
    }
}
String *token = token_example; // The token of the user

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

// Disconnect user
[apiInstance post DisconnectWith:token
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var QuizzMovie = require('quizz_movie');

var api = new QuizzMovie.APIApi()

var token = token_example; // {String} The token of the user


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

namespace Example
{
    public class post DisconnectExample
    {
        public void main()
        {
            
            var apiInstance = new APIApi();
            var token = token_example;  // String | The token of the user

            try
            {
                // Disconnect user
                inline_response_200_2 result = apiInstance.post Disconnect(token);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling APIApi.post Disconnect: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\APIApi();
$token = token_example; // String | The token of the user

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

my $api_instance = WWW::SwaggerClient::APIApi->new();
my $token = token_example; # String | The token of the user

eval { 
    my $result = $api_instance->post Disconnect(token => $token);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling APIApi->post Disconnect: $@\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()
token = token_example # String | The token of the user

try: 
    # Disconnect user
    api_response = api_instance.post_disconnect(token)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling APIApi->post Disconnect: %s\n" % e)

Parameters

Query parameters
Name Description
token*
String
The token of the user
Required

Responses

Status: 200 - OK

Status: 405 - Invalid token


postLogin

Login a user


/login

Usage and SDK Samples

curl -X POST "https://lp-miar-groupe01-cloned-paul604.c9users.io/quiz-omdb-1.0.0/login"
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();
        Login login = ; // Login | login
        try {
            token result = apiInstance.postLogin(login);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APIApi#postLogin");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.APIApi;

public class APIApiExample {

    public static void main(String[] args) {
        APIApi apiInstance = new APIApi();
        Login login = ; // Login | login
        try {
            token result = apiInstance.postLogin(login);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APIApi#postLogin");
            e.printStackTrace();
        }
    }
}
Login *login = ; // login

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

// Login a user
[apiInstance postLoginWith:login
              completionHandler: ^(token output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var QuizzMovie = require('quizz_movie');

var api = new QuizzMovie.APIApi()

var login = ; // {Login} login


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

namespace Example
{
    public class postLoginExample
    {
        public void main()
        {
            
            var apiInstance = new APIApi();
            var login = new Login(); // Login | login

            try
            {
                // Login a user
                token result = apiInstance.postLogin(login);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling APIApi.postLogin: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\APIApi();
$login = ; // Login | login

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

my $api_instance = WWW::SwaggerClient::APIApi->new();
my $login = WWW::SwaggerClient::Object::Login->new(); # Login | login

eval { 
    my $result = $api_instance->postLogin(login => $login);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling APIApi->postLogin: $@\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()
login =  # Login | login

try: 
    # Login a user
    api_response = api_instance.post_login(login)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling APIApi->postLogin: %s\n" % e)

Parameters

Body parameters
Name Description
login *

Responses

Status: 200 - OK

Status: 401 - Login or password invalid


postRegister

Register a user


/register

Usage and SDK Samples

curl -X POST "https://lp-miar-groupe01-cloned-paul604.c9users.io/quiz-omdb-1.0.0/register"
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();
        Register register = ; // Register | Register
        try {
            inline_response_200_2 result = apiInstance.postRegister(register);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APIApi#postRegister");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.APIApi;

public class APIApiExample {

    public static void main(String[] args) {
        APIApi apiInstance = new APIApi();
        Register register = ; // Register | Register
        try {
            inline_response_200_2 result = apiInstance.postRegister(register);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APIApi#postRegister");
            e.printStackTrace();
        }
    }
}
Register *register = ; // Register

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

// Register a user
[apiInstance postRegisterWith:register
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var QuizzMovie = require('quizz_movie');

var api = new QuizzMovie.APIApi()

var register = ; // {Register} Register


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

namespace Example
{
    public class postRegisterExample
    {
        public void main()
        {
            
            var apiInstance = new APIApi();
            var register = new Register(); // Register | Register

            try
            {
                // Register a user
                inline_response_200_2 result = apiInstance.postRegister(register);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling APIApi.postRegister: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\APIApi();
$register = ; // Register | Register

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

my $api_instance = WWW::SwaggerClient::APIApi->new();
my $register = WWW::SwaggerClient::Object::Register->new(); # Register | Register

eval { 
    my $result = $api_instance->postRegister(register => $register);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling APIApi->postRegister: $@\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()
register =  # Register | Register

try: 
    # Register a user
    api_response = api_instance.post_register(register)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling APIApi->postRegister: %s\n" % e)

Parameters

Body parameters
Name Description
register *

Responses

Status: 200 - OK

Status: 409 - Login already used


postResponse

Verify an answers


/response

Usage and SDK Samples

curl -X POST "https://lp-miar-groupe01-cloned-paul604.c9users.io/quiz-omdb-1.0.0/response?token="
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();
        String token = token_example; // String | The token of the user
        try {
            inline_response_200_1 result = apiInstance.postResponse(token);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APIApi#postResponse");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.APIApi;

public class APIApiExample {

    public static void main(String[] args) {
        APIApi apiInstance = new APIApi();
        String token = token_example; // String | The token of the user
        try {
            inline_response_200_1 result = apiInstance.postResponse(token);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APIApi#postResponse");
            e.printStackTrace();
        }
    }
}
String *token = token_example; // The token of the user

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

// Verify an answers
[apiInstance postResponseWith:token
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var QuizzMovie = require('quizz_movie');

var api = new QuizzMovie.APIApi()

var token = token_example; // {String} The token of the user


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

namespace Example
{
    public class postResponseExample
    {
        public void main()
        {
            
            var apiInstance = new APIApi();
            var token = token_example;  // String | The token of the user

            try
            {
                // Verify an answers
                inline_response_200_1 result = apiInstance.postResponse(token);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling APIApi.postResponse: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\APIApi();
$token = token_example; // String | The token of the user

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

my $api_instance = WWW::SwaggerClient::APIApi->new();
my $token = token_example; # String | The token of the user

eval { 
    my $result = $api_instance->postResponse(token => $token);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling APIApi->postResponse: $@\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()
token = token_example # String | The token of the user

try: 
    # Verify an answers
    api_response = api_instance.post_response(token)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling APIApi->postResponse: %s\n" % e)

Parameters

Query parameters
Name Description
token*
String
The token of the user
Required

Responses

Status: 200 - OK

Status: 400 - Error not defined

Status: 405 - Invalid token


root

Home


/

Usage and SDK Samples

curl -X GET "https://lp-miar-groupe01-cloned-paul604.c9users.io/quiz-omdb-1.0.0/"
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();
        try {
            inline_response_200 result = apiInstance.root();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APIApi#root");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.APIApi;

public class APIApiExample {

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

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

// Home
[apiInstance rootWithCompletionHandler: 
              ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var QuizzMovie = require('quizz_movie');

var api = new QuizzMovie.APIApi()

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

namespace Example
{
    public class rootExample
    {
        public void main()
        {
            
            var apiInstance = new APIApi();

            try
            {
                // Home
                inline_response_200 result = apiInstance.root();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling APIApi.root: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\APIApi();

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

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

eval { 
    my $result = $api_instance->root();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling APIApi->root: $@\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()

try: 
    # Home
    api_response = api_instance.root()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling APIApi->root: %s\n" % e)

Parameters

Responses

Status: 200 - OK


Generated 2018-03-15T15:38:00.384Z