Back to list

affiliation/

This call is used when creating a new user account. It returns all of the possible affiliations that a user might have.

Extra Parameters:

Parameter none
Example https://api.agclassroom.org/api/affiliation/

HTTP Method

GET

Requires authentication:

No

Return Format:

JSON

Return Example:

{

success:true

message:Found 6 affiliations.

resultcount:6

result: [...]

0 {...}

id:1

abbreviation:NA

description:Not Applicable

1 {...}

id:2

abbreviation:ADMIN

description:Admin/Curriculum Professional

. . .

}

Back to list

affiliation/abbr/{abbreviation}/

This call is used when creating a new user account. It returns one specific affliation by abbreviation.

Extra Parameters:

Parameter abbreviation
Type string (all caps)
Description This identifier must be known previously or be pulled from the affiliation call.
Example https://api.agclassroom.org/api/affiliation/abbr/ADMIN/

HTTP Method

GET

Requires authentication:

No

Return Format:

JSON

Return Example:

{

success:true

message:Found 1 affiliations.

resultcount:1

result: [...]

0 {...}

id:5

abbreviation:HIGHSCHOOL

description:High School Teacher (9-12)

}

Back to list

affiliation/id/{id}/

This call is used when creating a new user account. It returns one specific affliation.

Extra Parameters:

Parameter id
Type number
Description This identifier must be known previously or be pulled from the affiliation call.
Example https://api.agclassroom.org/api/affiliation/id/5/

HTTP Method

GET

Requires authentication:

No

Return Format:

JSON

Return Example:

{

success:true

message:Found 1 affiliations.

resultcount:1

result: [...]

0 {...}

id:5

abbreviation:HIGHSCHOOL

description:High School Teacher (9-12)

}