public class Users extends Resource
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_COUNTRY_CODE |
static String |
DELETE_USER_PATH |
static String |
NEW_USER_PATH |
static String |
ONE_CODE_CALL_PATH |
static String |
SMS_PATH |
ENCODE, JSON_CONTENT_TYPE, METHOD_GET, METHOD_POST, METHOD_PUT, XML_CONTENT_TYPE| Constructor and Description |
|---|
Users(String uri,
String key) |
Users(String uri,
String key,
boolean testFlag) |
| Modifier and Type | Method and Description |
|---|---|
User |
createUser(String email,
String phone)
Create a new user using his e-mail and phone.
|
User |
createUser(String email,
String phone,
String countryCode)
Create a new user using his e-mail, phone and country code.
|
Hash |
deleteUser(int userId)
Delete a user.
|
Hash |
requestCall(int userId)
Send token via call to a user.
|
Hash |
requestCall(int userId,
Map<String,String> options)
Send token via call to a user with some options defined.
|
Hash |
requestSms(int userId)
Send token via sms to a user.
|
Hash |
requestSms(int userId,
Map<String,String> options)
Send token via sms to a user with some options defined.
|
createConnection, delete, get, getContentType, getStatus, post, put, requestpublic static final String NEW_USER_PATH
public static final String DELETE_USER_PATH
public static final String SMS_PATH
public static final String ONE_CODE_CALL_PATH
public static final String DEFAULT_COUNTRY_CODE
public User createUser(String email, String phone, String countryCode)
email - phone - countryCode - public User createUser(String email, String phone)
email - phone - public Hash requestSms(int userId)
userId - public Hash requestSms(int userId, Map<String,String> options)
userId - options - public Hash requestCall(int userId)
userId - public Hash requestCall(int userId, Map<String,String> options)
userId - options - public Hash deleteUser(int userId)
userId - Copyright © 2017. All rights reserved.