Accounts.NotImplemented, Accounts.QueryRequest, Accounts.SuggestAccountsRequest| Modifier and Type | Method and Description |
|---|---|
AccountApi |
create(AccountInput in)
Create a new account.
|
AccountApi |
create(String username)
Create a new account with the given username and default options.
|
AccountApi |
id(int id) |
AccountApi |
id(String id)
Look up an account by ID.
|
Accounts.QueryRequest |
query()
Query users.
|
Accounts.QueryRequest |
query(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(String query)
Suggest users for a given query.
|
public AccountApi id(String id) throws RestApiException
AccountsNote: 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 Accountsid - 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 AccountsRestApiExceptionAccounts.id(String)public AccountApi self() throws RestApiException
Accountsself in interface AccountsRestApiExceptionAccounts.id(String)public AccountApi create(String username) throws RestApiException
Accountscreate in interface AccountsRestApiExceptionpublic AccountApi create(AccountInput in) throws RestApiException
Accountscreate in interface AccountsRestApiExceptionpublic Accounts.SuggestAccountsRequest suggestAccounts() throws RestApiException
AccountsExample code: suggestAccounts().withQuery("Reviewer").withLimit(5).get()
suggestAccounts in interface AccountsRestApiExceptionpublic Accounts.SuggestAccountsRequest suggestAccounts(String query) throws RestApiException
AccountsShortcut API for suggestAccounts().withQuery(String).
suggestAccounts in interface AccountsRestApiExceptionAccounts.suggestAccounts()public Accounts.QueryRequest query() throws RestApiException
AccountsExample code: query().withQuery("name:John email:example.com").withLimit(5).get()
query in interface AccountsRestApiExceptionpublic Accounts.QueryRequest query(String query) throws RestApiException
AccountsShortcut API for query().withQuery(String).
query in interface AccountsRestApiExceptionAccounts.query()