Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    node-red-contrib-foursquare-apipublic

    Node-red 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"

    install

    npm i node-red-contrib-foursquare-api

    Downloadsweekly downloads

    1

    version

    0.1.2

    license

    Apache-2.0

    repository

    githubgithub

    last publish

    collaborators

    • avatar