Package com.vonage.client
Class VonageClient
java.lang.Object
com.vonage.client.VonageClient
public class VonageClient extends java.lang.Object
Top-level Vonage 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 call getVoiceClient() to obtain a client for the Vonage Voice API.
Currently this object only constructs and provides access to VoiceClient. In the future it will manage
clients for all of the Vonage APIs.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVonageClient.Builder -
Method Summary
Modifier and Type Method Description static VonageClient.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 Details
-
getAccountClient
-
getApplicationClient
-
getInsightClient
-
getNumbersClient
-
getSmsClient
-
getSnsClient
-
getVerifyClient
-
getVoiceClient
-
getConversionClient
-
getRedactClient
-
generateJwt
Generate a JWT for the application the client has been configured with.- Returns:
- A String containing the token data.
- Throws:
VonageUnacceptableAuthException- if noJWTAuthMethodis available
-
builder
-