1.2.0 • Published 6 years ago

clubedevantagens v1.2.0

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

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');
1.2.0

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago