Package com.nexmo.client.sns
Class SnsClient
- java.lang.Object
-
- com.nexmo.client.sns.SnsClient
-
public class SnsClient extends java.lang.Object
A client for talking to the Nexmo Voice API. The standard way to obtain an instance of this class is to useNexmoClient.getSnsClient()
.
-
-
Constructor Summary
Constructors Constructor Description SnsClient(HttpWrapper httpWrapper)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SnsPublishResponse
publish(SnsPublishRequest request)
SnsSubscribeResponse
subscribe(SnsSubscribeRequest request)
-
-
-
Constructor Detail
-
SnsClient
public SnsClient(HttpWrapper httpWrapper)
Constructor.- Parameters:
httpWrapper
- (required) shared HTTP wrapper object used for making REST calls.
-
-
Method Detail
-
publish
public SnsPublishResponse publish(SnsPublishRequest request) throws NexmoClientException, java.io.IOException
- Throws:
NexmoClientException
java.io.IOException
-
subscribe
public SnsSubscribeResponse subscribe(SnsSubscribeRequest request) throws NexmoClientException, java.io.IOException
- Throws:
NexmoClientException
java.io.IOException
-
-