createAssessments
Create
This method allows you to create a new assessment. A new assessment is required for each of your users. The 'id' in the response will be your unique identifier to continue this assessment at a later time, view the result, or do any matching.
/v1/assessments
Usage and SDK Samples
curl -X GET "https://api.apieco.ir/traitify/v1/assessments?deck_id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssessmentsApi;
import java.io.File;
import java.util.*;
public class AssessmentsApiExample {
public static void main(String[] args) {
AssessmentsApi apiInstance = new AssessmentsApi();
String apiecoKey = apiecoKey_example; // String |
String authorization = authorization_example; // String | Basic {your_public_key}:x
String deckId = deckId_example; // String | This indicates the type of assessment that you want to create. You can get this through the deck list resource or by going to the assessments section of this website.
Example values: core, career-deck, super-hero
try {
inline_response_200_1 result = apiInstance.createAssessments(apiecoKey, authorization, deckId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AssessmentsApi#createAssessments");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AssessmentsApi;
public class AssessmentsApiExample {
public static void main(String[] args) {
AssessmentsApi apiInstance = new AssessmentsApi();
String apiecoKey = apiecoKey_example; // String |
String authorization = authorization_example; // String | Basic {your_public_key}:x
String deckId = deckId_example; // String | This indicates the type of assessment that you want to create. You can get this through the deck list resource or by going to the assessments section of this website.
Example values: core, career-deck, super-hero
try {
inline_response_200_1 result = apiInstance.createAssessments(apiecoKey, authorization, deckId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AssessmentsApi#createAssessments");
e.printStackTrace();
}
}
}
String *apiecoKey = apiecoKey_example; //
String *authorization = authorization_example; // Basic {your_public_key}:x
String *deckId = deckId_example; // This indicates the type of assessment that you want to create. You can get this through the deck list resource or by going to the assessments section of this website.
Example values: core, career-deck, super-hero
AssessmentsApi *apiInstance = [[AssessmentsApi alloc] init];
// Create
[apiInstance createAssessmentsWith:apiecoKey
authorization:authorization
deckId:deckId
completionHandler: ^(inline_response_200_1 output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var Traitify = require('traitify');
var api = new Traitify.AssessmentsApi()
var apiecoKey = apiecoKey_example; // {String}
var authorization = authorization_example; // {String} Basic {your_public_key}:x
var deckId = deckId_example; // {String} This indicates the type of assessment that you want to create. You can get this through the deck list resource or by going to the assessments section of this website.
Example values: core, career-deck, super-hero
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.createAssessments(apiecoKey, authorization, deckId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class createAssessmentsExample
{
public void main()
{
var apiInstance = new AssessmentsApi();
var apiecoKey = apiecoKey_example; // String |
var authorization = authorization_example; // String | Basic {your_public_key}:x
var deckId = deckId_example; // String | This indicates the type of assessment that you want to create. You can get this through the deck list resource or by going to the assessments section of this website.
Example values: core, career-deck, super-hero
try
{
// Create
inline_response_200_1 result = apiInstance.createAssessments(apiecoKey, authorization, deckId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AssessmentsApi.createAssessments: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\AssessmentsApi();
$apiecoKey = apiecoKey_example; // String |
$authorization = authorization_example; // String | Basic {your_public_key}:x
$deckId = deckId_example; // String | This indicates the type of assessment that you want to create. You can get this through the deck list resource or by going to the assessments section of this website.
Example values: core, career-deck, super-hero
try {
$result = $api_instance->createAssessments($apiecoKey, $authorization, $deckId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AssessmentsApi->createAssessments: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssessmentsApi;
my $api_instance = WWW::SwaggerClient::AssessmentsApi->new();
my $apiecoKey = apiecoKey_example; # String |
my $authorization = authorization_example; # String | Basic {your_public_key}:x
my $deckId = deckId_example; # String | This indicates the type of assessment that you want to create. You can get this through the deck list resource or by going to the assessments section of this website.
Example values: core, career-deck, super-hero
eval {
my $result = $api_instance->createAssessments(apiecoKey => $apiecoKey, authorization => $authorization, deckId => $deckId);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AssessmentsApi->createAssessments: $@\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.AssessmentsApi()
apiecoKey = apiecoKey_example # String |
authorization = authorization_example # String | Basic {your_public_key}:x
deckId = deckId_example # String | This indicates the type of assessment that you want to create. You can get this through the deck list resource or by going to the assessments section of this website.
Example values: core, career-deck, super-hero
try:
# Create
api_response = api_instance.create_assessments(apiecoKey, authorization, deckId)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssessmentsApi->createAssessments: %s\n" % e)
Parameters
Name | Description |
---|---|
apieco-key* |
String
Required
|
Authorization* |
Name | Description |
---|---|
deck_id* |
String
This indicates the type of assessment that you want to create. You can get this through the deck list resource or by going to the assessments section of this website.
Example values: core, career-deck, super-hero
Required
|