Get or Edit User Info
Get Account Info
URL: https://api.engrade.com/api/Input fields:
apitask - profile
apikey - contact us for your API key
ses - The session token ID
Output fields:
uid - Account user ID
usr - Account username
type - 2 for student, 3 for teacher, 4 for admin
status - 2 for active, 0 for blocked
created - Unix timestamp of when account was created
lastlog - Unix timestamp of user's last login
email - Email address
name - Owner's name as it appears in account
pic - 1 if the user has uploaded a profile pic, 0 if he hasn't
mailmail - 1 to receive email notifications of new message or 0 for no emails
***** Request *****
POST /api/ HTTP/1.1
Host: api.engrade.com
Content-length: x
apikey=1234&apitask=profile&ses=123456789
***** Response *****
HTTP/1.0 200 OK
Date: Sat, 15 Jan 2000 14:37:12 GMT
Content-Type: text/xml
Content-Length: x
<?xml version="1.0" encoding="utf-8" ?>
<engrade>
<values>
<uid>1000002975618</uid>
<usr>teacher</usr>
<type>3</type>
<status>2</status>
<created>1078034461</created>
<lastlog>1286222925</lastlog>
<email>holtlabs@gmail.com</email>
<name>Mr. Teacher</name>
<pic>1</pic>
<mailmail>1</mailmail>
</values>
<time>1286227728</time>
</engrade>
POST /api/ HTTP/1.1
Host: api.engrade.com
Content-length: x
apikey=1234&apitask=profile&ses=123456789
***** Response *****
HTTP/1.0 200 OK
Date: Sat, 15 Jan 2000 14:37:12 GMT
Content-Type: text/xml
Content-Length: x
<?xml version="1.0" encoding="utf-8" ?>
<engrade>
<values>
<uid>1000002975618</uid>
<usr>teacher</usr>
<type>3</type>
<status>2</status>
<created>1078034461</created>
<lastlog>1286222925</lastlog>
<email>holtlabs@gmail.com</email>
<name>Mr. Teacher</name>
<pic>1</pic>
<mailmail>1</mailmail>
</values>
<time>1286227728</time>
</engrade>
Edit Account Info
URL: https://api.engrade.com/apiInput Fields:
apitask = profile
ses = The session token ID
usr = Account username (required)
name = Owner's name as it appears in account (required)
email = Email address (required)
mailmail = Enter 1 to receive email notifications of new message or 0 for no emails (required)
pwd = New account password (or leave leave blank to keep same)
pwd2 = Confirm new account password (or leave blank to keep same)
pwdconf = Current account password (required)
***** Request *****
POST /api HTTP/1.1
Host: api.engrade.com
Content-length: x
apitask=profile&usr=teacher&name=Mr.%20Teacher&email=teacher%40email.com&mailmail=1&pwdconf=Password123&ses=123456789
***** Response *****
HTTP/1.0 200 OK
Date: Sat, 15 Jan 2000 14:37:12 GMT
Content-Type: text/xml
Content-Length: x
<?xml version="1.0" encoding="utf-8" ?>
<engrade>
<success>true</success>
<values>
<usr>teacher</usr>
<name>Mr. Teacher</name>
<email>teacher@email.com</email>
<mailmail>1</mailmail>
<pwdconf>Password123</pwdconf>
</values>
<time>1286227626</time>
</engrade>
POST /api HTTP/1.1
Host: api.engrade.com
Content-length: x
apitask=profile&usr=teacher&name=Mr.%20Teacher&email=teacher%40email.com&mailmail=1&pwdconf=Password123&ses=123456789
***** Response *****
HTTP/1.0 200 OK
Date: Sat, 15 Jan 2000 14:37:12 GMT
Content-Type: text/xml
Content-Length: x
<?xml version="1.0" encoding="utf-8" ?>
<engrade>
<success>true</success>
<values>
<usr>teacher</usr>
<name>Mr. Teacher</name>
<email>teacher@email.com</email>
<mailmail>1</mailmail>
<pwdconf>Password123</pwdconf>
</values>
<time>1286227626</time>
</engrade>
