clubedevantagens
### Clube de Vantagens javascript client.
Last updated 3 years ago by pcarrara .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install clubedevantagens 
SYNC missed versions from official npm registry.

clubedevantagens

Clube de Vantagens javascript client.

  • Installing

npm install clubedevantagens --save
  • Setting it up

To initiate the client you need to pass your authenticated user and password.

var clubedevantagens = require('clubedevantagens');
clubedevantagens.setUser('your-authenticated-user');
clubedevantagens.setPassword('user-password');
  • Using it

...
var clienteAutenticarPromise = clubedevantagens.clienteAutenticar('registereduseremail@provider.com')
clienteAutenticarPromise
  .then(function (response) {
    // do what you gotta do.
  })
  .catch(function (error) {
    // error handling.
  });

Methods

  • clienteCadastrar

Registers an user.

clubedevantagens.clienteCadastrar('User full name', 'User email', 'User CPF', 'User cellphone', 'User birth date', 'User gender', 'User state', 'User city', 'User password');

  • clienteAutenticar

Verifies if the user with the given email and password is registered.

clubedevantagens.clienteAutenticar('User email, User password');

  • clienteRecuperarSenha

Sends an recover password email to the given email address.

clubedevantagens.clienteRecuperarSenha('User email');

  • ofertaCodigo

Gets the details of an offer.

clubedevantagens.ofertaCodigo('offer code');

  • ofertaBuscar (limit, offset, uf, codigoCategoria, urlCategoria, termoDeBusca)

Lists offers based on a search term.

arguments

limit: Total of results per page offset: Page number uf: State abbreviation codigoCategoria: Category code urlCategoria: Category url termoDeBusca: Search term

clubedevantagens.ofertaBuscar('limit', 'offset', 'uf', 'codigoCategoria', 'urlCategoria', 'termoDeBusca');

Current Tags

  • 1.2.0                                ...           latest (3 years ago)

11 Versions

  • 1.2.0                                ...           3 years ago
  • 1.1.3                                ...           3 years ago
  • 1.1.2                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.6                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 7
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |