public class UserCall extends AbstractCall<UserDataType>
Constructor and Description |
---|
UserCall(ClearCheckBookConnection connection) |
Modifier and Type | Method and Description |
---|---|
UserDataType |
get()
Gets the details for the current user.
|
protected String |
getUrlSuffix() |
String |
insert(UserDataType dataType)
Creates a new ClearCheckbook.com user account
Method: post Call: user |
bulkProcess, delete, edit, get, getAll, getAll, getConnection, getPluralUrl, process
public static final String TYPE
public UserCall(ClearCheckBookConnection connection)
protected String getUrlSuffix()
getUrlSuffix
in class AbstractCall<UserDataType>
public UserDataType get() throws ClearcheckbookException
Example: https://username:password@www.clearcheckbook.com/api/user/
Parameters:
Parameter Required Description
None
Returned Values:
Value Description
id The current users id in the ClearCheckbook system
username The current users username
password MD5 hash of current users password
email Email address of current user
get
in class AbstractCall<UserDataType>
extends AbstractDataType
ClearcheckbookException
public String insert(UserDataType dataType) throws ClearcheckbookException
Example:
https://www.clearcheckbook.com/api/user/
Notes:
You do not pass any authentication information when creating a user. This
is the only function that behaves this way. If the username or email
address exists in the system, this function returns false.
Parameters:
Parameter Required Description
username Required The desired username for the new user
xpassword Required an unencoded password for the new user
email Required an email address for the new user
app Optional A name for your app (eg: "iPhone App" for an iPhone app).
Lets us know where users are coming from.
Returned Values:
Value Description
Multiple Responses* The new users id in the ClearCheckbook system on
successfull insert or false if the username or email already exists in
system.
insert
in class AbstractCall<UserDataType>
- ClearcheckbookException
Copyright © 2014 Leonard UK Ltd. All rights reserved.