1.0.2 • Published 7 years ago

rhmap-params v1.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

rhmap-params

This module adds a new endpoint to the running Cloud app. This new endpoint returns back the fh parameters needed to do a manual call from an external program like POSTMAN.

The params check returns a JSON response formatted as shown below (using a single whitespace between key and values):

{
    "body": {
        "cuid":"<uuid>",
        "cuidMap":null,
        "destination":"web",
        "sdk_version":"FH_PHONEGAP_SDK",
        "appid":"<App ID>",
        "appkey":"<App Key>",
        "projectid":"<Project Id>",
        "connectiontag":"<Connection Tag>",
    },
    "header": {
        "X-FH-cuid":"<uuid>",
        "X-FH-cuidMap":null,
        "X-FH-destination":"web",
        "X-FH-sdk_version":"FH_PHONEGAP_SDK",
        "X-FH-appid":"<App ID>",
        "X-FH-appkey":"<App Key>",
        "X-FH-projectid":"<Project Id>",
        "X-FH-connectiontag":"<Connection Tag>",
    }
}

Usage

The module should be initialised from your application.js file as shown below. This will setup a new endpoint in your application called "/params", so ensure none of your endpoints are called params to avoid conflicts.

This modules requires an API_KEY, this can be created at: Profile > Settings > API Key Management > Add New Key

// Before var app = express()
require('rhmap-params')(app,"<API_KEY>");
1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago