Documentation of eduGAIN database access API

Method: list_fed_codes

Description:

List federations codes and their names.

Supported formats: json, print_r

Arguments used:

opt (optional)
default: 0
allowed values: 0, 1, 2, 3, 4
0 - show all; 1 - only production feds; 2 - all members; 3 - only candidates; 4 - only voting-only
format (optional)
default: json
allowed values: any supported format

Returns:
An array of code,name pairs.

Examples:

all federations
https://technical-test.edugain.org/api.php?action=list_fed_codes&format=print_r
show candidates only
https://technical-test.edugain.org/api.php?action=list_fed_codes&format=print_r&opt=3

Show full action list