Class AccountRepository
- java.lang.Object
-
- io.github.signalwirecommunity.repository.AccountRepository
-
- All Implemented Interfaces:
AccountInterface
public class AccountRepository extends java.lang.Object implements AccountInterface
-
-
Constructor Summary
Constructors Constructor Description AccountRepository(java.lang.String projectId, java.lang.String apiToken, java.lang.String spaceUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountResponse
getAccountByName(java.lang.String friendlyName)
Get the Account information by friendlyNameAccount
getAccountBySid(java.lang.String sid)
Get an account information using the SIDAccountResponse
getAccounts()
Get all accounts using the project ID
-
-
-
Method Detail
-
getAccounts
public AccountResponse getAccounts()
Get all accounts using the project ID- Specified by:
getAccounts
in interfaceAccountInterface
- Returns:
- AccountResponse
-
getAccountByName
public AccountResponse getAccountByName(java.lang.String friendlyName)
Get the Account information by friendlyName- Specified by:
getAccountByName
in interfaceAccountInterface
- Parameters:
friendlyName
- Name registered on the account- Returns:
- AccountResponse
-
getAccountBySid
public Account getAccountBySid(java.lang.String sid)
Get an account information using the SID- Specified by:
getAccountBySid
in interfaceAccountInterface
- Parameters:
sid
- unique account SID- Returns:
- Account
-
-