na

node-apontador

Node.js module for interacting with Apontador API v2.0

Showing:

Popularity

Downloads/wk

3

GitHub Stars

0

Maintenance

Last Commit

5yrs ago

Contributors

1

Package

Dependencies

1

Size (min+gzip)

5.3KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Node Apontador - build status

Node.js module for interacting with Apontador API v2.0

Install

npm install node-apontador --save

Usage

    var apontador = require('apontador');

    var client = apontador.createClient({
        clientSecret: 'nId4d7RfOyTWxSeZoIkTFskw0xT~',
        clientId: 'test_node_apontador'
    });

    client.search({q:'Place to find'}, function(err, sucess){
        if (err) {
            throw err;
        }

        console.log(sucess);
    });

Usage

  • Search

client.search({ q : 'mazza restaurante', fq : 'address.city:"santo andre"' }, function() {
    if (err) {
        throw err;
    }

    console.log(sucess);
});
  • Search for addresses
apt.addresses({ q : 'Av. Paulista', fq : 'address.city:"Sao Paulo"' }, function(err, sucess) {

    if (err) {
        throw err;
    }

    console.log(sucess);
});
  • Search a place for a ID

apt.getPlaceById('C408483939344N344B', function(err, sucess) {

    if (err) {
        throw err;
    }

    console.log(sucess);
});

  • Search for photos
// Send placeID to get photos
apt.getPlacePhotos('C408483939344N344B', function(err, sucess) {

    if (err) {
        throw err;
    }

    console.log(sucess);
});
  • Search for a zipcode
// Send a brazilian zipcode to get places.
apt.getPlacesByZipcode('09090780', function(err, sucess) {

    if (err) {
        throw err;
    }

    console.log(sucess);
});
  • Search for a zipcode
// Send placeID to get reviews
apt.getPlaceReview('C408483939344N344B', function(err, sucess) {

    if (err) {
        throw err;
    }

    console.log(sucess);
});

Informations

You can get more informations about Apontador API here. Apontador is a Brazilian local search, and only list at moment places in Brazil.

This software is not provide by Apontador or yours employees.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100