Package com.vonage.client.sns
Class SnsClient
java.lang.Object
com.vonage.client.sns.SnsClient
public class SnsClient extends java.lang.Object
A client for talking to the Vonage Voice API. The standard way to obtain an instance of this class is to use
VonageClient.getSnsClient().-
Constructor Summary
Constructors Constructor Description SnsClient(HttpWrapper httpWrapper)Constructor. -
Method Summary
Modifier and Type Method Description SnsPublishResponsepublish(SnsPublishRequest request)SnsSubscribeResponsesubscribe(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
-