John VanOrange

{API Docs for user

user/get

Retrieve details about a user account.

Endpoint: https://jvo.io/api/user/get

Parameters

mixed value By default, this is the user_id of an account. This can also be a username if the "search_by" parameter is set to "username".

string search_by {Defaults to 'id'. Valid values are 'id' or 'username'.

user/current

Retrieve user details of currently logged in account.

Endpoint: https://jvo.io/api/user/current

Parameters

string sid {Defaults to NULL. Session ID that is provided when logged in. This is also set as a cookie. If sid cookie headers are sent, this value is not required.

user/login

Login to an account.

Endpoint: https://jvo.io/api/user/login

Parameters

string username Valid username.

string password Valid password.

user/logout

Logout of an account.

Endpoint: https://jvo.io/api/user/logout

Parameters

string sid {Defaults to NULL. Session ID that is provided when logged in. This is also set as a cookie. If sid cookie headers are sent, this value is not required.

user/add

Create new user account and login as that user.

Endpoint: https://jvo.io/api/user/add

Parameters

string username Any unique string used to login to an account

string password Any string

string email This can also be any string, but a valid email address would be required to do any password recovery.

user/saved

Load all saved images for a user account.

Endpoint: https://jvo.io/api/user/saved

Parameters

string username {Defaults to NULL. Provide the username of the user to view their saved images. Currently can only view your own saved images when logged in. If not set, the currently logged in user will be used.

string sid {Defaults to NULL. Session ID that is provided when logged in. This is also set as a cookie. Only required if the cookie sid header is not sent.

user/uploaded

Load all uploaded images for a user account.

Endpoint: https://jvo.io/api/user/uploaded

Parameters

string username {Defaults to NULL. Provide the username of the user to view their saved images. Currently can only view your own saved images when logged in. If not set, the currently logged in user will be used.

string sid {Defaults to NULL. Session ID that is provided when logged in. This is also set as a cookie. Only required if the cookie sid header is not sent.

user/requestPwReset

Sends a password reset email to the user.

Endpoint: https://jvo.io/api/user/requestPwReset

Parameters

string username Provide the username of the user to send the password reset email to.

user/changepw

Change password for account

Endpoint: https://jvo.io/api/user/changepw

Parameters

string password New password

string auth This is either a valid SID of a logged in user, or a password reset ID

string type {Defaults to 'sid'. Valid values are "sid" or "pwreset"

Methods

tag

image

user

report

setting

message