Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rahul-barick/localytics
sending real-time push notifications using node.js and Built.io Flow
https://github.com/rahul-barick/localytics
action activity custom-actions flow json-schema localytics nodejs notifications push-api push-notifications real-time request service
Last synced: about 7 hours ago
JSON representation
sending real-time push notifications using node.js and Built.io Flow
- Host: GitHub
- URL: https://github.com/rahul-barick/localytics
- Owner: Rahul-Barick
- License: mit
- Created: 2018-02-24T12:15:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-03-12T19:01:07.000Z (over 6 years ago)
- Last Synced: 2024-04-16T09:19:22.899Z (7 months ago)
- Topics: action, activity, custom-actions, flow, json-schema, localytics, nodejs, notifications, push-api, push-notifications, real-time, request, service
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Localytics
The Push API is an interface for sending real-time push notifications that leverages the Localytics marketing platform using node.jsCreated Source Code for Localytics Service Custom Activity or Action with [flow](https://flow.built.io/)
If you have not yet integrated the Localytics SDK into your app then you can use [Localytics](https://docs.localytics.com/dev/push-api.html#getting-started)
Flow provides an action builder that lets you insert custom code and create an action that looks and works exactly the way other actions do.
To create a new custom action yo need to follow Some Conventions.
These conventions are mainly classified into 3 main blocks of program code as given below:1. ``this.input``: This block includes the definition of form input fields.
2. ``this.output``: This block includes the definition of the output parameters that your action will return.
3. ``this.execute``: This block includes the program logic that will run inside Flow Engine.
# request module:
This module helps you to make HTTP calls to third party applications. In order to do that, you need to provide values for following keys:- ``Headers``: Pass the required values to create a connection.
- ``Method``: Specify the HTTP method to be used to make an API call.
- ``URL``: Provide the URL to which you wish to make HTTP request.
- ``Error handler``: Specify error handler function 'function (err,response,body)' for your action. If the action throws an error, it should return 'output(err)', and if the action is executed successfully, it should return 'output(body)'.