Skip to content
Node client for Geoloqi
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/geoloqi
test
.gitignore
.travis.yml
README.markdown
index.js
package.json

README.markdown

Geoloqi library for Node.js

Powerful, flexible, lightweight interface to the Geoloqi Platform API, written in JavaScript for Node.js!

This library was developed with two goals in mind: to be as simple as possible, but also to be very powerful to allow for much higher-end development (multiple Geoloqi apps per instance, concurrency, performance).

Installation

npm install geoloqi

Basic Usage

First, retrieve an application access token from one of your applications on the applications page.

Here is an example to create a geotrigger:

var geoloqi = require('geoloqi');
var session = new geoloqi.Session({'access_token':'YOUR APPLICATION ACCESS TOKEN'});

session.post('/trigger/create', {
  "place_name": "Powell's Books",
  "key":        "powells_books",
  "type":       "message",
  "text":       "Welcome to Powell's Books!",
  "latitude":   45.523334,
  "longitude":  122.681612,
  "radius":     150,
  "trigger_on": "enter"
}, function(result, err) {
  if(err) {
    throw new Error('There has been an error! '+err);
  } else {
    console.log(result.trigger_id);
  }
});

Found a bug?

Let us know! Send a pull request or a patch. Questions? Ask! We're here to help. File issues, we'll respond to them!

Authors

  • Patrick Arlt
  • Kyle Drake
  • Aaron Parecki
You can’t perform that action at this time.