simplesat + Amazon SNS Integrations

Syncing simplesat with Amazon SNS is currently on our roadmap. Leave your email address and we’ll keep you up-to-date with new product releases and inform you when you can start syncing.

About simplesat

Simplesat is a survey tool that makes it easy for any business to collect, analyze and publish customer feedback.

About Amazon SNS

The Amazon SNS platform (SNS) is a web service that enables you to send an SMS or a text-enabled mobile push notification to targeted subscribers.

Amazon SNS Integrations
Connect simplesat + Amazon SNS in easier way

It's easy to connect simplesat + Amazon SNS without coding knowledge. Start creating your own business flow.

Amazon SNS (Simple Notification Service. is a message gateway service to provide publishing services to integrate with different applications. It is a kind of notification service that allows to publish and receive messages via HTTP or SQS, and it provides web services for developing web applications in any languages.

Integration of simplesat and Amazon SNS

Simplesat and Amazon SNS can be integrated through SDK of simplesat. Amazon SNS can be integrated with all programming languages through SDKs. Here, we are going to explain how to integrate Amazon SNS with simplesat from Java. For more details about SDK of simplesat, please refer to the fplowing link. https://github.com/simplesat/simplesat-sdk-java/tree/master/simplesat-sdk-java-dev

Firstly, we download the latest version of source code of simplesat-sdk-java-dev from Github and configure this source code according to our own environment. In this step, we have to download the source code, do some configurations and make sure that the service can run well. This step will be described in detail in Section I.

Next, we download the latest version of source code of the plugin for Amazon SNS from Github and configure this source code according to our own environment. In this step, we have to download the source code, do some configurations and make sure that the service can run well. This step will be described in detail in Section II.

Then, we create a class named SimpleSnsPublisher which extends the class SimpleSnsPublisherBase . This class is used to publish messages on Amazon SNS. We have to configure this class by referring to the fplowing code snippet:

import com.simplesat.sdk.imq.plugin.SnsPublisherPlugin; import com.simplesat.sdk.imq.plugin.SnsPublisherPluginBase; import com.simplesat.sdk.imq.plugin.SnsPublisherPluginImpl; public class SimpleSnsPublisher extends SimpleSnsPublisherBase { private String AWS_ACCESS_KEY = "MyAccessKey"; private String AWS_SECRET_KEY = "MySecretKey"; private String REGION_NAME = "eu-west-1"; @Override public void publish(String topicName, String payload. { try { // Create an instance of SimpleSnsPublisherPluginSimpleSnsPublisherPlugin ssnspub = new SimpleSnsPublisherPluginSimpleSnsPublisherPlugin(true); // Specify the region where the AWS account is registered. // The region must be selected during registration simpleSnsPublisherPluginSimpleSnsPublisherPlugin .setRegionName(REGION_NAME); // Get a specific AWS configuration object for the region String awsConfig = simpleSnsPublisherPluginSimpleSnsPublisherPlugin .getConfiguration(); // Set access key and secret key awsConfig = awsConfig + ",awsAccessKeyId=${AWS_ACCESS_KEY},awsSecretAccessKey=${AWS_SECRET_KEY}"; // Create an instance of SimpleSnsPublisherPluginSimpleSnsPublisherPlugin ssnspub = new SimpleSnsPublisherPluginSimpleSnsPublisherPlugin(false, awsConfig); // Create an instance of SqsNotificationMessageFactory object using a list of notifications to publish List<String> topicArn = new ArrayList<String>(); topicArn .add("arn:aws:sns:eu-west-1:" + REGION_NAME + "/" + TOPIC_NAME); TopicArn topicArn = TopicArn .builder(. .withTopicName(TOPIC_NAME.withArn(topicArn.build(); ssnspub .setTopicArn(topicArn); // Create an instance of SqsNotificationMessage object for publishing SqsNotificationMessage notificationMessage = new SqsNotificationMessage(); // Add payload for publishing notificationMessage .addPayload(payload); // Publish messages on Amazon SNS ssnspub .publishNotifications(notificationMessage); } catch (Exception e. { e .printStackTrace(); } } }

Above class is used to publish messages on Amazon SNS by using the SDK for simplesat. In order to publish messages on Amazon SNS, we need to set up access key and secret key of an account firstly and then implement this class as fplows:

private static final String TOPIC_NAME = "simplesat-test"; private static final String PAYLOAD = "Hello World!"; public static void main(String[] args. { try { SimpleSnsPublisher publisher = new SimpleSnsPublisher(); publisher .publish(TOPIC_NAME, PAYLOAD); } catch (Exception e. { e .printStackTrace(); } }

The process to integrate simplesat and Amazon SNS may seem complicated and intimidating. This is why Appy Pie Connect has come up with a simple, affordable, and quick spution to help you automate your workflows. Click on the button below to begin.