Package com.vonage.client.sns
Class SnsClient
java.lang.Object
com.vonage.client.sns.SnsClient
A client for talking to the Vonage SNS API. The standard way to obtain an instance of this class is to use
VonageClient.getSnsClient()
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpublish
(SnsPublishRequest request) subscribe
(SnsSubscribeRequest request)
-
Constructor Details
-
SnsClient
Constructor.- Parameters:
httpWrapper
- (required) shared HTTP wrapper object used for making REST calls.
-
-
Method Details
-
publish
public SnsPublishResponse publish(SnsPublishRequest request) throws VonageClientException, VonageResponseParseException -
subscribe
public SnsSubscribeResponse subscribe(SnsSubscribeRequest request) throws VonageClientException, VonageResponseParseException
-