Have a Question?

Get Students


Description

Return all student base on teacher


Method

POST


Endpoint

/admin/api.php?f=getStudents

Header

Content-Type: application/x-www-form-urlencoded

Body


id={teacher id}

Response

Success

{
result: "success",         //string
content: {

userid: int,

username: string,,

email: string,,

mobile: int,

firstname: string,

lastname: string,

gradelevel: int,

schoolname: string,

preferences: string,

points: int

}

}

Fail

{

result:"fail"              //String

{



Example

Javascript

POST Request

const student = async () => {
const response = await fetch('http://stockknowledge.org/admin/api.php?f=getStudent&id=2');
return await response.json();
}