List Classes
Method : POST
Base URL : https://api.braincert.com
API Endpoint : /v2/listclass?apikey=YOUR_API_KEY_HERE
All requests are POST
and sent to https://api.braincert.com/v2/listclass?apikey=YOUR_API_KEY_HERE You will retrieve results assuming you have added your appKey, and require parameter.
Request parameters
Parameter | Type | Description | Example |
format | optional | Response data format | xml for XML response, default JSON response |
published | optional | List published classes only | 1 for list published classes, default to list all classes |
limitstart | optional | Start limit of list class | default value is 0 |
limit | optional | Limit of list class | default value is 10 |
search | optional | Class title or class id | string |
Response XML Example
https://api.braincert.com/v2/listclass?apikey=WbMlO5sAx1fmV&format=xmlSuccess Response
<xml>
<total>1</total>
<classes>
<class>
<id>790</id>
<user_id>43</user_id>
<title>abcd</title>
<date>2014-09-24</date>
<start_time>9:45 PM</start_time>
<end_time>10:15PM</end_time>
<timezone>33</timezone>
<end_date>0000-00-00</end_date>
<description/>
<record>0</record>
<ispaid>0</ispaid>
<currency>usd</currency>
<status>Live</status>
<weekdays>5,6,7</weekdays>
<duration>1800</duration>
<language>13</language>
<seat_attendees>10</seat_attendees>
<label>India Standard Time</label>
<privacy>0</privacy>
<published>1</published>
<isBoard>0</isBoard>
<isScreenshare>0</isScreenshare>
<isCorporate>0</isCorporate>
</class>
</classes>
</xml>
Error Response
<rsp status="error">
<errors> error </errors>
</rsp>
Response JSON Example
https://api.braincert.com/v2/listclass?apikey=WbMlO5sAx1fmVSuccess Response
{
"total":1,
"classes":[{
"id":"618",
"user_id":"43",
"title":"test-api",
"date":"2014-09-24",
"start_time":"9:45 PM",
"end_time":"10:15PM",
"timezone":"33",
"end_date":"0000-00-00",
"description":"",
"record":"0",
"ispaid":"0",
"currency":"usd",
"status":"Live",
"weekdays":"5,6,7",
"duration":"3600",
"seat_attendees":"10",
"language":"13",
"label":"India Standard Time",
"privacy":"0",
"published":"0"
"isBoard":"0"
"isScreenshare":"0"
"isCorporate":"0"
}]
}
Error Response
[{
"status":"error",
"error":"Invalid API KEY"
}]