getCoursesOfStudy
Pobranie toków nauki
/api/services/app/CourseOfStudy/GetCoursesOfStudy
Usage and SDK Samples
curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/api/services/app/CourseOfStudy/GetCoursesOfStudy?SEMUCZ_ID="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CourseOfStudyApi;
import java.io.File;
import java.util.*;
public class CourseOfStudyApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");
CourseOfStudyApi apiInstance = new CourseOfStudyApi();
Integer sEMUCZID = 56; // Integer | Id semestru
try {
APRPagedResultDto_LearningCourseDto result = apiInstance.getCoursesOfStudy(sEMUCZID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CourseOfStudyApi#getCoursesOfStudy");
e.printStackTrace();
}
}
}
import io.swagger.client.api.CourseOfStudyApi;
public class CourseOfStudyApiExample {
public static void main(String[] args) {
CourseOfStudyApi apiInstance = new CourseOfStudyApi();
Integer sEMUCZID = 56; // Integer | Id semestru
try {
APRPagedResultDto_LearningCourseDto result = apiInstance.getCoursesOfStudy(sEMUCZID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CourseOfStudyApi#getCoursesOfStudy");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: bearerAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
Integer *sEMUCZID = 56; // Id semestru (optional)
CourseOfStudyApi *apiInstance = [[CourseOfStudyApi alloc] init];
// Pobranie toków nauki
[apiInstance getCoursesOfStudyWith:sEMUCZID
completionHandler: ^(APRPagedResultDto_LearningCourseDto output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ProAkademiaApi = require('pro_akademia_api');
var defaultClient = ProAkademiaApi.ApiClient.instance;
// Configure API key authorization: bearerAuth
var bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.apiKeyPrefix['Authorization'] = "Token"
var api = new ProAkademiaApi.CourseOfStudyApi()
var opts = {
'sEMUCZID': 56 // {Integer} Id semestru
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getCoursesOfStudy(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getCoursesOfStudyExample
{
public void main()
{
// Configure API key authorization: bearerAuth
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new CourseOfStudyApi();
var sEMUCZID = 56; // Integer | Id semestru (optional)
try
{
// Pobranie toków nauki
APRPagedResultDto_LearningCourseDto result = apiInstance.getCoursesOfStudy(sEMUCZID);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CourseOfStudyApi.getCoursesOfStudy: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: bearerAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$api_instance = new Swagger\Client\Api\CourseOfStudyApi();
$sEMUCZID = 56; // Integer | Id semestru
try {
$result = $api_instance->getCoursesOfStudy($sEMUCZID);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CourseOfStudyApi->getCoursesOfStudy: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CourseOfStudyApi;
# Configure API key authorization: bearerAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
my $api_instance = WWW::SwaggerClient::CourseOfStudyApi->new();
my $sEMUCZID = 56; # Integer | Id semestru
eval {
my $result = $api_instance->getCoursesOfStudy(sEMUCZID => $sEMUCZID);
print Dumper($result);
};
if ($@) {
warn "Exception when calling CourseOfStudyApi->getCoursesOfStudy: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: bearerAuth
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.CourseOfStudyApi()
sEMUCZID = 56 # Integer | Id semestru (optional)
try:
# Pobranie toków nauki
api_response = api_instance.get_courses_of_study(sEMUCZID=sEMUCZID)
pprint(api_response)
except ApiException as e:
print("Exception when calling CourseOfStudyApi->getCoursesOfStudy: %s\n" % e)
Parameters
Name | Description |
---|---|
SEMUCZ_ID |
Integer
(int32)
Id semestru
|