0.0.8 • Published 10 years ago

loopback-connector-sns v0.0.8

Weekly downloads
7
License
MIT
Repository
github
Last release
10 years ago

loopback-connector-sns

LoopBack connector for AWS SNS

Installation

In your LoopBack project:

$ npm install loopback-connector-sns

Using the Connector

To use the connector, define the datasource using the connector in your datasources.json file:

"sns": {
    "name": "sns",
    "connector": "loopback-connector-sns",
    "accessKeyId": "YOUR_ACCESS_KEY_ID",
    "secretAccessKey": "YOUR_SECRET_ACCESS_KEY",
    "region": "YOUR_REGION",
    "platformApplicationArn": {
        "iOs": "YOUR_PLATFORM_APPLICATION_ARN",
        "Android": "YOUR_PLATFORM_APPLICATION_ARN",
        "xxx": "xxxxx"
    }
}

Next, attach the created datasource to a model in the model-config.json file:

"Sns": {
    "dataSource": "sns",
    "public": false
}

Now, using the created model, you can create arn endpoint, create topic , subscribe to it and many more see the Official Documentation for more details.

Version

0.0.8

License

MIT

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.1

10 years ago