node-red-contrib-foursquare-api 0.1.2

A Node-RED node to query foursquare

npm install node-red-contrib-foursquare-api

RedConnect Approved

Install

Run the following command in the root directory of your Node-RED install

npm install node-red-contrib-foursquare-api

Foursquare Node

This node needs to be configured with the params below :

Resource

This param is the endpoint to call on the foursquare API, can be written in express style. Example :

venues/:id/tips

In the case you choose to put params inside your resource string, when the node is called you need to pass an Object on the payload with the value for each param. Example :

{
   "payload" : {
       "id" : "4ac518bbf964a52045a220e3"
   }
}

In the case you need to pass arguments to the Foursquare API, you can pass them with msg.foursquareArgs. Example :

{
   "payload" : {
        "id" : "4ac518bbf964a52045a220e3"
   },
   "foursquareArgs" : {
        "sort" : "recent"
   }
}

API Version

Simply choose today's date, the format of the data passed by foursquare will be fixed as the format used in the date that you put in this param.

Credentials

Here goes the credentials of your Application, in the case the same node uses multiple credentials, you can pass them in msg.creds. Example :

{
   "payload" : { },
   "creds" : {
        "client_id" : "...",
        "client_secret" : "..."
   }
}

Further Work

For the moment these addon support only the GET request, in the future a param will be added to choose between "GET" and "POST"

Node Info

Version: 0.1.2
Updated 1 year, 2 months ago
License: Apache-2.0

Downloads

0 in the last day
3 in the last week
16 in the last month

Keywords

  • node-red
  • foursquare
  • api
  • redconnect

Maintainers

  • redant

Contributors

  • Maurizio Carboni