Accounts.NotImplemented, Accounts.QueryRequest, Accounts.SuggestAccountsRequest
Constructor and Description |
---|
NotImplemented() |
Modifier and Type | Method and Description |
---|---|
AccountApi |
create(AccountInput input)
Create a new account.
|
AccountApi |
create(java.lang.String username)
Create a new account with the given username and default options.
|
AccountApi |
id(int id) |
AccountApi |
id(java.lang.String id)
Look up an account by ID.
|
Accounts.QueryRequest |
query()
Query users.
|
Accounts.QueryRequest |
query(java.lang.String query)
Query users.
|
AccountApi |
self()
Look up the account of the current in-scope user.
|
Accounts.SuggestAccountsRequest |
suggestAccounts()
Suggest users for a given query.
|
Accounts.SuggestAccountsRequest |
suggestAccounts(java.lang.String query)
Suggest users for a given query.
|
public AccountApi id(java.lang.String id) throws RestApiException
Accounts
Note: This method eagerly reads the account. Methods that mutate the
account do not necessarily re-read the account. Therefore, calling a getter method on an
instance after calling a mutation method on that same instance is not guaranteed to reflect the
mutation. It is not recommended to store references to AccountApi
instances.
id
in interface Accounts
id
- any identifier supported by the REST API, including numeric ID, email, or username.RestApiException
- if an error occurred.public AccountApi id(int id) throws RestApiException
id
in interface Accounts
RestApiException
Accounts.id(String)
public AccountApi self() throws RestApiException
Accounts
self
in interface Accounts
RestApiException
Accounts.id(String)
public AccountApi create(java.lang.String username) throws RestApiException
Accounts
create
in interface Accounts
RestApiException
public AccountApi create(AccountInput input) throws RestApiException
Accounts
create
in interface Accounts
RestApiException
public Accounts.SuggestAccountsRequest suggestAccounts() throws RestApiException
Accounts
Example code: suggestAccounts().withQuery("Reviewer").withLimit(5).get()
suggestAccounts
in interface Accounts
RestApiException
public Accounts.SuggestAccountsRequest suggestAccounts(java.lang.String query) throws RestApiException
Accounts
Shortcut API for suggestAccounts().withQuery(String)
.
suggestAccounts
in interface Accounts
RestApiException
Accounts.suggestAccounts()
public Accounts.QueryRequest query() throws RestApiException
Accounts
Example code: query().withQuery("name:John email:example.com").withLimit(5).get()
query
in interface Accounts
RestApiException
public Accounts.QueryRequest query(java.lang.String query) throws RestApiException
Accounts
Shortcut API for query().withQuery(String)
.
query
in interface Accounts
RestApiException
Accounts.query()