User

Table of Contents

Overview

This section is you, the user. This is where you come to update account information. Change your username? Here. Change your password? Here also. Branding. Yeah.

Controller: /user
Full Url: https://apiv1.teleapi.net/user/

Functions

/update

Full Url: https://apiv1.teleapi.net/user/update

Arguments:

Info: Fix up stuff on your account. Send as many or as few of those fields as you want. Fields not send will not get updated.

Example Success
{
    "code": 200,
    "status": "success",
    "data": "successfully updated user"
}
Example Error

About the only way you'll have an error on this one is if you forget to pass something..

{
    "code": 400,
    "status": "error",
    "data": "Missing variable: email"
}

/password/update

Full Url: https://apiv1.teleapi.net/user/password/update

Arguments:

Info: Yes, this is an api call and yes you have to pass in your old password. If you have forgotten your password, go to the forgot password page in the web portal to reset it.

Example Success
{
    "code": 200,
    "status": "success",
    "data": "successfully updated password"
}
Example Error

You might see this if your user has not yet set their password. How you got this far (your api key) without setting the password is beyond me, but still.

{
    "code": 500,
    "status": "error",
    "data": "could not save new password"
}

/branding/update

Coming soon.