Access and accepting decisions
:: services/pw_cregs module

These API methods allow you to view, sign and download decisions.

Methods

approve_creg Zatwierdzanie regulaminu przedmiotu.
deapprove_creg Anulowanie zatwierdzenia regulaminu przedmiotu.
get_coordinated_subjects Zwraca listę koordynowanych przedmiotów dla danej osoby (pracownika).
get_creg Pobieranie regulaminu przedmiotu - jeśli nie podana jest wersja, zwracana jest najnowsza wersja regulaminu.
get_creg_cycles Pobieranie obowiązującego szablonu regulaminu przedmiotu
get_creg_stats Statystyka regulaminów przedmiotów.
get_creg_statuses Lista statusów regulaminów przedmiotów.
get_creg_template Pobieranie obowiązującego szablonu regulaminu przedmiotu
get_creg_versions Lista wersji regulaminu.
is_approved_creg Werfyikacja czy regulamin jest zatwierdzony.
save_creg_element Zapisywanie elementu regulaminu przedmiotu cyklu.
save_creg_object Zapisywanie regulaminu przedmiotu cyklu.
save_creg_object_approve Zapisywanie i zatwierdzanie regulaminu przedmiotu cyklu.

services/pw_cregs/approve_creg

Consumer: required Token: optional Scopes: n/a SSL: required
https://apps.usos.pw.edu.pl/services/pw_cregs/approve_creg

Zatwierdzanie regulaminu przedmiotu.

prz_kod required Kod przedmiotu
cdyd_kod required Kod cyklu dydaktycznego
szablon_id required Id szablonu
os_id optional Identyfikator osoby (koordynatora przedmiotu) zatwierdzającej regulamin
fields optional

Default value: result

Selector of result fields you are interested in. The selector may contain any subset of fields, which are described in the returns section.

format optional

Default value: json

Format in which to return values. See supported output formats.

callback optional

Required only if you've chosen jsonp as a return format.

Plus required standard OAuth Consumer signing arguments: oauth_consumer_key, oauth_nonce, oauth_timestamp, oauth_signature, oauth_signature_method, oauth_version. Plus optional oauth_token for Token authorization.

Returned value:

The value result holds True, when the answer is positive, when negative it is False with the reason in attribute message_pl and message_en.

services/pw_cregs/deapprove_creg

Consumer: required Token: optional Scopes: n/a SSL: required
https://apps.usos.pw.edu.pl/services/pw_cregs/deapprove_creg

Anulowanie zatwierdzenia regulaminu przedmiotu.

prz_kod required Kod przedmiotu
cdyd_kod required Kod cyklu dydaktycznego
os_id optional Identyfikator osoby (koordynatora przedmiotu) anulującej zatwierdzenie regulaminu
fields optional

Default value: result

Selector of result fields you are interested in. The selector may contain any subset of fields, which are described in the returns section.

format optional

Default value: json

Format in which to return values. See supported output formats.

callback optional

Required only if you've chosen jsonp as a return format.

Plus required standard OAuth Consumer signing arguments: oauth_consumer_key, oauth_nonce, oauth_timestamp, oauth_signature, oauth_signature_method, oauth_version. Plus optional oauth_token for Token authorization.

Returned value:

The value result holds True, when the answer is positive, when negative it is False with the reason in attribute message_pl and message_en.

services/pw_cregs/get_coordinated_subjects

Consumer: required Token: optional Scopes: n/a SSL: required
https://apps.usos.pw.edu.pl/services/pw_cregs/get_coordinated_subjects

Zwraca listę koordynowanych przedmiotów dla danej osoby (pracownika).

fields optional

Default value: result

Selector of result fields you are interested in. The selector may contain any subset of fields, which are described in the returns section of get_creg_versions method.

format optional

Default value: json

Format in which to return values. See supported output formats.

callback optional

Required only if you've chosen jsonp as a return format.

Plus required standard OAuth Consumer signing arguments: oauth_consumer_key, oauth_nonce, oauth_timestamp, oauth_signature, oauth_signature_method, oauth_version. Plus optional oauth_token for Token authorization.

Returned value:

Zwraca listę koordynowanych przedmiotów dla danej osoby (pracownika).

services/pw_cregs/get_creg

Consumer: required Token: optional Scopes: n/a SSL: required
https://apps.usos.pw.edu.pl/services/pw_cregs/get_creg

Pobieranie regulaminu przedmiotu - jeśli nie podana jest wersja, zwracana jest najnowsza wersja regulaminu.

prz_kod required Kod przedmiotu
cdyd_kod required Cykl dydaktyczny
wersja optional Wersja regulaminu
fields optional

Default value: items|kolejnosc|nazwa_elementu|nazwa_elementu_ang|uwagi|wartosc|wartosc_ang

Selector of result fields you are interested in. The selector may contain any subset of fields, which are described in the returns section.

format optional

Default value: json

Format in which to return values. See supported output formats.

callback optional

Required only if you've chosen jsonp as a return format.

Plus required standard OAuth Consumer signing arguments: oauth_consumer_key, oauth_nonce, oauth_timestamp, oauth_signature, oauth_signature_method, oauth_version. Plus optional oauth_token for Token authorization.

Returned value:

A dictionary of selected fields and their values.

Available fields:

  • items - Kolekcja elementów.;

  • kolejnosc - Kolejność elementu w strukturze szablonu.;

  • nazwa_elementu - Nazwa elementu szablonu.;

  • nazwa_elementu_ang - Nazwa elementu szablonu w języku angielskim.;

  • uwagi - Uwagi do elementu szablonu (dla koordynatora).;

  • wartosc - Wartość (treść) elementu w języku polskim.;

  • wartosc_ang - Wartość (treść) elementu w języku angielskim..

services/pw_cregs/get_creg_cycles

Consumer: required Token: optional Scopes: n/a SSL: required
https://apps.usos.pw.edu.pl/services/pw_cregs/get_creg_cycles

Pobieranie obowiązującego szablonu regulaminu przedmiotu

prz_kod required Kod przedmiotu
szablon_id required Id szablonu
fields optional

Default value: items|cdyd_kod

Selector of result fields you are interested in. The selector may contain any subset of fields, which are described in the returns section.

format optional

Default value: json

Format in which to return values. See supported output formats.

callback optional

Required only if you've chosen jsonp as a return format.

Plus required standard OAuth Consumer signing arguments: oauth_consumer_key, oauth_nonce, oauth_timestamp, oauth_signature, oauth_signature_method, oauth_version. Plus optional oauth_token for Token authorization.

Returned value:

Lista cykli (cdyd_kod)

services/pw_cregs/get_creg_stats

Consumer: required Token: optional Scopes: n/a SSL: required
https://apps.usos.pw.edu.pl/services/pw_cregs/get_creg_stats

Statystyka regulaminów przedmiotów.

jed_org_kod required Kod jednostki biorcy
cdyd_kod required Kod cyklu dydaktycznego
fields optional

Default value: result

Selector of result fields you are interested in. The selector may contain any subset of fields, which are described in the returns section.

format optional

Default value: json

Format in which to return values. See supported output formats.

callback optional

Required only if you've chosen jsonp as a return format.

Plus required standard OAuth Consumer signing arguments: oauth_consumer_key, oauth_nonce, oauth_timestamp, oauth_signature, oauth_signature_method, oauth_version. Plus optional oauth_token for Token authorization.

Returned value:

The value result holds True, when the answer is positive, when negative it is False with the reason in attribute message_pl and message_en.

services/pw_cregs/get_creg_statuses

Consumer: required Token: optional Scopes: n/a SSL: required
https://apps.usos.pw.edu.pl/services/pw_cregs/get_creg_statuses

Lista statusów regulaminów przedmiotów.

jed_org_kod required Kod jednostki biorcy
cdyd_kod required Kod cyklu dydaktycznego
order_by optional Sortowanie
fields optional

Default value: result

Selector of result fields you are interested in. The selector may contain any subset of fields, which are described in the returns section.

format optional

Default value: json

Format in which to return values. See supported output formats.

callback optional

Required only if you've chosen jsonp as a return format.

Plus required standard OAuth Consumer signing arguments: oauth_consumer_key, oauth_nonce, oauth_timestamp, oauth_signature, oauth_signature_method, oauth_version. Plus optional oauth_token for Token authorization.

Returned value:

The value result holds True, when the answer is positive, when negative it is False with the reason in attribute message_pl and message_en.

services/pw_cregs/get_creg_template

Consumer: required Token: optional Scopes: n/a SSL: required
https://apps.usos.pw.edu.pl/services/pw_cregs/get_creg_template

Pobieranie obowiązującego szablonu regulaminu przedmiotu

prz_kod required Kod przedmiotu
cdyd_kod required Cykl dydaktyczny
fields optional

Default value: items|szablon_id|nazwa_szablonu|kolejnosc|nazwa_elementu|nazwa_elementu_ang|uwagi|max_dlugosc|wymagany

Selector of result fields you are interested in. The selector may contain any subset of fields, which are described in the returns section.

format optional

Default value: json

Format in which to return values. See supported output formats.

callback optional

Required only if you've chosen jsonp as a return format.

Plus required standard OAuth Consumer signing arguments: oauth_consumer_key, oauth_nonce, oauth_timestamp, oauth_signature, oauth_signature_method, oauth_version. Plus optional oauth_token for Token authorization.

Returned value:

Lista elementów (szablon_id, nazwa_szablonu, kolejnosc, nazwa_elementu, nazwa_elementu_ang, uwagi, max_dlugosc, wymagany

services/pw_cregs/get_creg_versions

Consumer: required Token: optional Scopes: n/a SSL: required
https://apps.usos.pw.edu.pl/services/pw_cregs/get_creg_versions

Lista wersji regulaminu.

prz_kod required Kod przedmiotu
cdyd_kod required Kod cyklu dydaktycznego
fields optional

Default value: result

Selector of result fields you are interested in. The selector may contain any subset of fields, which are described in the returns section.

format optional

Default value: json

Format in which to return values. See supported output formats.

callback optional

Required only if you've chosen jsonp as a return format.

Plus required standard OAuth Consumer signing arguments: oauth_consumer_key, oauth_nonce, oauth_timestamp, oauth_signature, oauth_signature_method, oauth_version. Plus optional oauth_token for Token authorization.

Returned value:

The value result holds True, when the answer is positive, when negative it is False with the reason in attribute message_pl and message_en.

services/pw_cregs/is_approved_creg

Consumer: required Token: optional Scopes: n/a SSL: required
https://apps.usos.pw.edu.pl/services/pw_cregs/is_approved_creg

Werfyikacja czy regulamin jest zatwierdzony.

prz_kod required Kod przedmiotu
cdyd_kod required Kod cyklu dydaktycznego
fields optional

Default value: result

Selector of result fields you are interested in. The selector may contain any subset of fields, which are described in the returns section.

format optional

Default value: json

Format in which to return values. See supported output formats.

callback optional

Required only if you've chosen jsonp as a return format.

Plus required standard OAuth Consumer signing arguments: oauth_consumer_key, oauth_nonce, oauth_timestamp, oauth_signature, oauth_signature_method, oauth_version. Plus optional oauth_token for Token authorization.

Returned value:

The value result holds True, when the answer is positive, when negative it is False with the reason in attribute message_pl and message_en.

services/pw_cregs/save_creg_element

Consumer: required Token: optional Scopes: n/a SSL: required
https://apps.usos.pw.edu.pl/services/pw_cregs/save_creg_element

Zapisywanie elementu regulaminu przedmiotu cyklu.

prz_kod required Kod przedmiotu
cdyd_kod required Kod cyklu dydaktycznego
szablon_id required ID szablonu
kolejnosc required Kolejność elementu w szablonie
wersja required Wersja regulaminu
opis required Zawartość elementu w języku polskim
description required Zawartość elementu w języku angielskim
fields optional

Default value: result

Selector of result fields you are interested in. The selector may contain any subset of fields, which are described in the returns section.

format optional

Default value: json

Format in which to return values. See supported output formats.

callback optional

Required only if you've chosen jsonp as a return format.

Plus required standard OAuth Consumer signing arguments: oauth_consumer_key, oauth_nonce, oauth_timestamp, oauth_signature, oauth_signature_method, oauth_version. Plus optional oauth_token for Token authorization.

Returned value:

The value result holds True, when the answer is positive, when negative it is False with the reason in attribute message_pl and message_en.

services/pw_cregs/save_creg_object

Consumer: required Token: optional Scopes: n/a SSL: required
https://apps.usos.pw.edu.pl/services/pw_cregs/save_creg_object

Zapisywanie regulaminu przedmiotu cyklu.

json_string required String json
fields optional

Default value: result

Selector of result fields you are interested in. The selector may contain any subset of fields, which are described in the returns section.

format optional

Default value: json

Format in which to return values. See supported output formats.

callback optional

Required only if you've chosen jsonp as a return format.

Plus required standard OAuth Consumer signing arguments: oauth_consumer_key, oauth_nonce, oauth_timestamp, oauth_signature, oauth_signature_method, oauth_version. Plus optional oauth_token for Token authorization.

Returned value:

The value result holds True, when the answer is positive, when negative it is False with the reason in attribute message_pl and message_en.

services/pw_cregs/save_creg_object_approve

Consumer: required Token: optional Scopes: n/a SSL: required
https://apps.usos.pw.edu.pl/services/pw_cregs/save_creg_object_approve

Zapisywanie i zatwierdzanie regulaminu przedmiotu cyklu.

json_string required String json
fields optional

Default value: result

Selector of result fields you are interested in. The selector may contain any subset of fields, which are described in the returns section.

format optional

Default value: json

Format in which to return values. See supported output formats.

callback optional

Required only if you've chosen jsonp as a return format.

Plus required standard OAuth Consumer signing arguments: oauth_consumer_key, oauth_nonce, oauth_timestamp, oauth_signature, oauth_signature_method, oauth_version. Plus optional oauth_token for Token authorization.

Returned value:

USOS API ver. 7.0.3.0-0, 51dd8c6b, dirty (2024-04-02)