getECTS
Check the number of ECTS earned in all the editions of the congress.
The student can check the number of ECTS earned in all the editions of the congress. At maximum of 2ECTS.
/ects
Usage and SDK Samples
curl -X POST "https://congresotryit.es/ects?edition=&identity="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ECTSApi;
import java.io.File;
import java.util.*;
public class ECTSApiExample {
public static void main(String[] args) {
ECTSApi apiInstance = new ECTSApi();
ECTSResource body = ; // ECTSResource |
String edition = edition_example; // String | Edition which user wants to know how many ECTS he/she earned
String identity = identity_example; // String | Personal ID used by the user when the ticket was created
try {
PostSuccessResource result = apiInstance.getECTS(body, edition, identity);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ECTSApi#getECTS");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ECTSApi;
public class ECTSApiExample {
public static void main(String[] args) {
ECTSApi apiInstance = new ECTSApi();
ECTSResource body = ; // ECTSResource |
String edition = edition_example; // String | Edition which user wants to know how many ECTS he/she earned
String identity = identity_example; // String | Personal ID used by the user when the ticket was created
try {
PostSuccessResource result = apiInstance.getECTS(body, edition, identity);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ECTSApi#getECTS");
e.printStackTrace();
}
}
}
ECTSResource *body = ; //
String *edition = edition_example; // Edition which user wants to know how many ECTS he/she earned
String *identity = identity_example; // Personal ID used by the user when the ticket was created
ECTSApi *apiInstance = [[ECTSApi alloc] init];
// Check the number of ECTS earned in all the editions of the congress.
[apiInstance getECTSWith:body
edition:edition
identity:identity
completionHandler: ^(PostSuccessResource output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var TryItApi = require('try_it_api');
var api = new TryItApi.ECTSApi()
var body = ; // {{ECTSResource}}
var edition = edition_example; // {{String}} Edition which user wants to know how many ECTS he/she earned
var identity = identity_example; // {{String}} Personal ID used by the user when the ticket was created
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getECTS(bodyeditionidentity, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getECTSExample
{
public void main()
{
var apiInstance = new ECTSApi();
var body = new ECTSResource(); // ECTSResource |
var edition = edition_example; // String | Edition which user wants to know how many ECTS he/she earned
var identity = identity_example; // String | Personal ID used by the user when the ticket was created
try
{
// Check the number of ECTS earned in all the editions of the congress.
PostSuccessResource result = apiInstance.getECTS(body, edition, identity);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ECTSApi.getECTS: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiECTSApi();
$body = ; // ECTSResource |
$edition = edition_example; // String | Edition which user wants to know how many ECTS he/she earned
$identity = identity_example; // String | Personal ID used by the user when the ticket was created
try {
$result = $api_instance->getECTS($body, $edition, $identity);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ECTSApi->getECTS: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ECTSApi;
my $api_instance = WWW::SwaggerClient::ECTSApi->new();
my $body = WWW::SwaggerClient::Object::ECTSResource->new(); # ECTSResource |
my $edition = edition_example; # String | Edition which user wants to know how many ECTS he/she earned
my $identity = identity_example; # String | Personal ID used by the user when the ticket was created
eval {
my $result = $api_instance->getECTS(body => $body, edition => $edition, identity => $identity);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ECTSApi->getECTS: $@\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.ECTSApi()
body = # ECTSResource |
edition = edition_example # String | Edition which user wants to know how many ECTS he/she earned
identity = identity_example # String | Personal ID used by the user when the ticket was created
try:
# Check the number of ECTS earned in all the editions of the congress.
api_response = api_instance.get_ects(body, edition, identity)
pprint(api_response)
except ApiException as e:
print("Exception when calling ECTSApi->getECTS: %s\n" % e)
Parameters
Name | Description |
---|---|
body * |
Name | Description |
---|---|
edition* |
String
Edition which user wants to know how many ECTS he/she earned
Required
|
identity* |
String
Personal ID used by the user when the ticket was created
Required
|