Account Method
The account method allows you to access your account information.
Base Url
GET http://www.reefware.com/api/request/v1/account
Response
{
id: [account_id],
type: [account_type],
first: [first_name],
last: [last_name],
email: [email_address],
zip: [zip_code],
username: [account_username],
auth: [authorization_status],
register: [registration_status],
updated: [last_date_updated],
login: [last_date_login]
}
Data Options
id
optional
- 'id' will return your account id.
- The account id is unique and specific to your account.
- This option will result in a returned number.
type
optional
- 'type' will return the Reefware account type.
- There are two options available: user and admin.
This option will return as text and can not be changed through the api.
first
optional
- 'first' will return the first name of the account member.
- This option will return as text.
last
optional
- 'last' will return the last name of the account member.
- This option will return as text.
email
optional
- 'email' will return the email address for the account.
- This option will return as text.
If this option is updated, the account will need reauthorized.
zip
optional
- 'zip' will return the zip code for the account.
- This option will return as a number.
username
optional
- 'username' will return the username for the account.
- This option will return as text.
If this option is updated, the username must pass validation.
auth
optional
- 'auth' will return the authorization status for the account.
- This option will return as a number.
- '0' is not authorized and '1' is authorized.
This option can not be updated.
register
optional
- 'register' will return the date the account was created.
- This option will return as a date timestamp.
This option can not be updated.
updated
optional
- 'updated' will return the date the account was last updated.
- This option will return as a date timestamp.
- When an option is changed this option will automatically be updated to the current date and time.
login
optional
- 'login' will return the last login date and time for the account.
- This option will return as a date timestamp.
- This option will update automatically each time the account is accessed.
Example Request
GEThttp://www.reefware.com/api/request/v1/account/data/id.username.email
Response
- [
- [
- {
- "id": 1,
- "username": "reefware",
- "email": "[email protected]"
- }
- ]
- ]