Package com.nexmo.client
Class NexmoClient
- java.lang.Object
-
- com.nexmo.client.NexmoClient
-
public class NexmoClient extends java.lang.Object
Top-level Nexmo API client object.Construct an instance of this object with one or more
AuthMethods (providing all the authentication methods for the APIs you wish to use), and then callgetVoiceClient()to obtain a client for the Nexmo Voice API.Currently this object only constructs and provides access to
VoiceClient. In the future it will manage clients for all of the Nexmo APIs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNexmoClient.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NexmoClient.Builderbuilder()java.lang.StringgenerateJwt()Generate a JWT for the application the client has been configured with.AccountClientgetAccountClient()ApplicationClientgetApplicationClient()ConversionClientgetConversionClient()InsightClientgetInsightClient()NumbersClientgetNumbersClient()RedactClientgetRedactClient()SmsClientgetSmsClient()SnsClientgetSnsClient()VerifyClientgetVerifyClient()VoiceClientgetVoiceClient()
-
-
-
Method Detail
-
getAccountClient
public AccountClient getAccountClient()
-
getApplicationClient
public ApplicationClient getApplicationClient()
-
getInsightClient
public InsightClient getInsightClient()
-
getNumbersClient
public NumbersClient getNumbersClient()
-
getSmsClient
public SmsClient getSmsClient()
-
getSnsClient
public SnsClient getSnsClient()
-
getVerifyClient
public VerifyClient getVerifyClient()
-
getVoiceClient
public VoiceClient getVoiceClient()
-
getConversionClient
public ConversionClient getConversionClient()
-
getRedactClient
public RedactClient getRedactClient()
-
generateJwt
public java.lang.String generateJwt() throws NexmoUnacceptableAuthException
Generate a JWT for the application the client has been configured with.- Returns:
- A String containing the token data.
- Throws:
NexmoUnacceptableAuthException- if noJWTAuthMethodis available
-
builder
public static NexmoClient.Builder builder()
-
-