# WisiApi.UsersApi

All URIs are relative to *https://api.bakia.co*

Method | HTTP request | Description
------------- | ------------- | -------------
[**aceptarTerminosPost**](UsersApi.md#aceptarTerminosPost) | **POST** /aceptar_terminos | 
[**dADelete**](UsersApi.md#dADelete) | **DELETE** /d_a | 
[**loginGet**](UsersApi.md#loginGet) | **GET** /login | 
[**loginListaGet**](UsersApi.md#loginListaGet) | **GET** /login_lista | 
[**loginfGet**](UsersApi.md#loginfGet) | **GET** /loginf | 
[**registroPost**](UsersApi.md#registroPost) | **POST** /registro | 
[**resetPost**](UsersApi.md#resetPost) | **POST** /reset | 
[**updateExtraPost**](UsersApi.md#updateExtraPost) | **POST** /update_extra | 
[**updatePost**](UsersApi.md#updatePost) | **POST** /update | 
[**userGet**](UsersApi.md#userGet) | **GET** /user | 
[**verificarTerminosGet**](UsersApi.md#verificarTerminosGet) | **GET** /verificar_terminos | 


<a name="aceptarTerminosPost"></a>
# **aceptarTerminosPost**
> ResultMensaje aceptarTerminosPost(terminos)



Obtiene mensaje de respuesta al aceptar terminos Parametro requerido **access_token** y **terminos** 

### Example
```javascript
var WisiApi = require('wisi_api');
var defaultClient = WisiApi.ApiClient.default;

// Configure API key authorization: access_token
var access_token = defaultClient.authentications['access_token'];
access_token.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//access_token.apiKeyPrefix = 'Token';

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

var apiInstance = new WisiApi.UsersApi();

var terminos = 56; // Number | id de los terminos a aceptar


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.aceptarTerminosPost(terminos, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **terminos** | **Number**| id de los terminos a aceptar | 

### Return type

[**ResultMensaje**](ResultMensaje.md)

### Authorization

[access_token](../README.md#access_token), [api_key](../README.md#api_key)

### HTTP request headers

 - **Content-Type**: multipart/form-data
 - **Accept**: application/json

<a name="dADelete"></a>
# **dADelete**
> ResultMensaje dADelete()



Usuario que se da de baja, retorn 2 si ok Parametro requerido **access_token** 

### Example
```javascript
var WisiApi = require('wisi_api');
var defaultClient = WisiApi.ApiClient.default;

// Configure API key authorization: access_token
var access_token = defaultClient.authentications['access_token'];
access_token.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//access_token.apiKeyPrefix = 'Token';

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

var apiInstance = new WisiApi.UsersApi();

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.dADelete(callback);
```

### Parameters
This endpoint does not need any parameter.

### Return type

[**ResultMensaje**](ResultMensaje.md)

### Authorization

[access_token](../README.md#access_token), [api_key](../README.md#api_key)

### HTTP request headers

 - **Content-Type**: multipart/form-data
 - **Accept**: application/json

<a name="loginGet"></a>
# **loginGet**
> ResultUser loginGet(jformEmail, jformPassword)



Obtiene objeto &#x60;ResultUser&#x60;. Parametro requerido **jform[email]** y **jform[email]** que retorna el usuario       

### Example
```javascript
var WisiApi = require('wisi_api');
var defaultClient = WisiApi.ApiClient.default;

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

var apiInstance = new WisiApi.UsersApi();

var jformEmail = "jformEmail_example"; // String | email del user

var jformPassword = "jformPassword_example"; // String | password del user


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.loginGet(jformEmail, jformPassword, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **jformEmail** | **String**| email del user | 
 **jformPassword** | **String**| password del user | 

### Return type

[**ResultUser**](ResultUser.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

 - **Content-Type**: multipart/form-data
 - **Accept**: application/json

<a name="loginListaGet"></a>
# **loginListaGet**
> ResultMiniUser loginListaGet(jformEmail, jformPassword)



Obtiene objeto &#x60;User&#x60;. Parametro requerido **jform[email]** y **jform[email]** que retorna el usuario con permiso para manejar listas      

### Example
```javascript
var WisiApi = require('wisi_api');
var defaultClient = WisiApi.ApiClient.default;

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

var apiInstance = new WisiApi.UsersApi();

var jformEmail = "jformEmail_example"; // String | email del user

var jformPassword = "jformPassword_example"; // String | password del user


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.loginListaGet(jformEmail, jformPassword, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **jformEmail** | **String**| email del user | 
 **jformPassword** | **String**| password del user | 

### Return type

[**ResultMiniUser**](ResultMiniUser.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

 - **Content-Type**: multipart/form-data
 - **Accept**: application/json

<a name="loginfGet"></a>
# **loginfGet**
> ResultUser loginfGet(userId, userEmail, userName, userLastname, terminos)



Obtiene objeto &#x60;ResultUser&#x60;. Parametro requerido **user[]** y **terminos** con los que acepta registrarse      

### Example
```javascript
var WisiApi = require('wisi_api');
var defaultClient = WisiApi.ApiClient.default;

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

var apiInstance = new WisiApi.UsersApi();

var userId = "userId_example"; // String | id de facebook

var userEmail = "userEmail_example"; // String | email del user

var userName = "userName_example"; // String | nombre del user

var userLastname = "userLastname_example"; // String | apellido del user

var terminos = 56; // Number | id de los terminos aceptado


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.loginfGet(userId, userEmail, userName, userLastname, terminos, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **userId** | **String**| id de facebook | 
 **userEmail** | **String**| email del user | 
 **userName** | **String**| nombre del user | 
 **userLastname** | **String**| apellido del user | 
 **terminos** | **Number**| id de los terminos aceptado | 

### Return type

[**ResultUser**](ResultUser.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

 - **Content-Type**: multipart/form-data
 - **Accept**: application/json

<a name="registroPost"></a>
# **registroPost**
> ResultUser registroPost(jformEmail, jformName, jformLastname, jformPassword1, jformPassword2, terminos)



Obtiene objeto &#x60;ResultUser&#x60;. Parametro requerido **jform[]** y **terminos** con los que acepta registrarse      

### Example
```javascript
var WisiApi = require('wisi_api');
var defaultClient = WisiApi.ApiClient.default;

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

var apiInstance = new WisiApi.UsersApi();

var jformEmail = "jformEmail_example"; // String | email del user

var jformName = "jformName_example"; // String | nombre del user

var jformLastname = "jformLastname_example"; // String | apellido del user

var jformPassword1 = "jformPassword1_example"; // String | password del user

var jformPassword2 = "jformPassword2_example"; // String | confirmacion del password del user

var terminos = 56; // Number | id de los terminos aceptado


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.registroPost(jformEmail, jformName, jformLastname, jformPassword1, jformPassword2, terminos, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **jformEmail** | **String**| email del user | 
 **jformName** | **String**| nombre del user | 
 **jformLastname** | **String**| apellido del user | 
 **jformPassword1** | **String**| password del user | 
 **jformPassword2** | **String**| confirmacion del password del user | 
 **terminos** | **Number**| id de los terminos aceptado | 

### Return type

[**ResultUser**](ResultUser.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

 - **Content-Type**: multipart/form-data
 - **Accept**: application/json

<a name="resetPost"></a>
# **resetPost**
> ResultMensaje resetPost(jformEmail)



Obtiene mensaje &#x60;ResultUser&#x60; de respuesta. Parametro requerido **jform[email]** para enviar pass nueva 

### Example
```javascript
var WisiApi = require('wisi_api');
var defaultClient = WisiApi.ApiClient.default;

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

var apiInstance = new WisiApi.UsersApi();

var jformEmail = "jformEmail_example"; // String | email del user


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.resetPost(jformEmail, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **jformEmail** | **String**| email del user | 

### Return type

[**ResultMensaje**](ResultMensaje.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

 - **Content-Type**: multipart/form-data
 - **Accept**: application/json

<a name="updateExtraPost"></a>
# **updateExtraPost**
> ResultUser updateExtraPost(dataNacimiento, opts)



Obtiene objeto &#x60;ResultUser&#x60; en caso de exito Parametro requerido **data[]** para actualizar user, **access_token** requerido 

### Example
```javascript
var WisiApi = require('wisi_api');
var defaultClient = WisiApi.ApiClient.default;

// Configure API key authorization: access_token
var access_token = defaultClient.authentications['access_token'];
access_token.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//access_token.apiKeyPrefix = 'Token';

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

var apiInstance = new WisiApi.UsersApi();

var dataNacimiento = new Date("2013-10-20"); // Date | fecha de nacimiento del user (YYYY-MM-DD)

var opts = { 
  'dataCiudad': 56, // Number | id de la ciudad del user
  'dataGenero': "dataGenero_example", // String | genero del user (M,F)
  'dataOcupacion': 56, // Number | id de la ocupacion del user
  'dataEstado': 56, // Number | id del estado del user
  'dataMascota': 56 // Number | id de la mascota del user
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.updateExtraPost(dataNacimiento, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **dataNacimiento** | **Date**| fecha de nacimiento del user (YYYY-MM-DD) | 
 **dataCiudad** | **Number**| id de la ciudad del user | [optional] 
 **dataGenero** | **String**| genero del user (M,F) | [optional] 
 **dataOcupacion** | **Number**| id de la ocupacion del user | [optional] 
 **dataEstado** | **Number**| id del estado del user | [optional] 
 **dataMascota** | **Number**| id de la mascota del user | [optional] 

### Return type

[**ResultUser**](ResultUser.md)

### Authorization

[access_token](../README.md#access_token), [api_key](../README.md#api_key)

### HTTP request headers

 - **Content-Type**: multipart/form-data
 - **Accept**: application/json

<a name="updatePost"></a>
# **updatePost**
> ResultUser updatePost(jformName, jformLastname, jformIdentificacion, jformTelefono, jformNacimiento, opts)



Obtiene objeto &#x60;ResultUser&#x60; en caso de exito Parametro requerido **jform[]** para actualizar user, **access_token** requerido 

### Example
```javascript
var WisiApi = require('wisi_api');
var defaultClient = WisiApi.ApiClient.default;

// Configure API key authorization: access_token
var access_token = defaultClient.authentications['access_token'];
access_token.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//access_token.apiKeyPrefix = 'Token';

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

var apiInstance = new WisiApi.UsersApi();

var jformName = "jformName_example"; // String | nombre del user

var jformLastname = "jformLastname_example"; // String | apellido del user

var jformIdentificacion = "jformIdentificacion_example"; // String | identificacion del user

var jformTelefono = "jformTelefono_example"; // String | telefono del user

var jformNacimiento = new Date("2013-10-20"); // Date | fecha de nacimiento del user (YYYY-MM-DD)

var opts = { 
  'jformCiudad': 56, // Number | id de la ciudad del user
  'jformGenero': "jformGenero_example", // String | genero del user (M,F)
  'jformOcupacion': 56, // Number | id de la ocupacion del user
  'jformEstado': 56, // Number | id del estado del user
  'jformMascota': 56, // Number | id de la mascota del user
  'jformPassword1': "jformPassword1_example", // String | nueva password del user
  'jformPassword2': "jformPassword2_example" // String | nueva confirmacion del password del user
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.updatePost(jformName, jformLastname, jformIdentificacion, jformTelefono, jformNacimiento, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **jformName** | **String**| nombre del user | 
 **jformLastname** | **String**| apellido del user | 
 **jformIdentificacion** | **String**| identificacion del user | 
 **jformTelefono** | **String**| telefono del user | 
 **jformNacimiento** | **Date**| fecha de nacimiento del user (YYYY-MM-DD) | 
 **jformCiudad** | **Number**| id de la ciudad del user | [optional] 
 **jformGenero** | **String**| genero del user (M,F) | [optional] 
 **jformOcupacion** | **Number**| id de la ocupacion del user | [optional] 
 **jformEstado** | **Number**| id del estado del user | [optional] 
 **jformMascota** | **Number**| id de la mascota del user | [optional] 
 **jformPassword1** | **String**| nueva password del user | [optional] 
 **jformPassword2** | **String**| nueva confirmacion del password del user | [optional] 

### Return type

[**ResultUser**](ResultUser.md)

### Authorization

[access_token](../README.md#access_token), [api_key](../README.md#api_key)

### HTTP request headers

 - **Content-Type**: multipart/form-data
 - **Accept**: application/json

<a name="userGet"></a>
# **userGet**
> ResultUser userGet()



Obtiene objeto &#x60;ResultUser&#x60; con token actualizado Parametro requerido **access_token**      

### Example
```javascript
var WisiApi = require('wisi_api');
var defaultClient = WisiApi.ApiClient.default;

// Configure API key authorization: access_token
var access_token = defaultClient.authentications['access_token'];
access_token.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//access_token.apiKeyPrefix = 'Token';

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

var apiInstance = new WisiApi.UsersApi();

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.userGet(callback);
```

### Parameters
This endpoint does not need any parameter.

### Return type

[**ResultUser**](ResultUser.md)

### Authorization

[access_token](../README.md#access_token), [api_key](../README.md#api_key)

### HTTP request headers

 - **Content-Type**: multipart/form-data
 - **Accept**: application/json

<a name="verificarTerminosGet"></a>
# **verificarTerminosGet**
> ResultTerminos verificarTerminosGet(terminos)



Obtiene 1 si acepto los terminos indicados Parametro requerido **access_token** y **terminos** 

### Example
```javascript
var WisiApi = require('wisi_api');
var defaultClient = WisiApi.ApiClient.default;

// Configure API key authorization: access_token
var access_token = defaultClient.authentications['access_token'];
access_token.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//access_token.apiKeyPrefix = 'Token';

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

var apiInstance = new WisiApi.UsersApi();

var terminos = 56; // Number | id de los terminos a revisar


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.verificarTerminosGet(terminos, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **terminos** | **Number**| id de los terminos a revisar | 

### Return type

[**ResultTerminos**](ResultTerminos.md)

### Authorization

[access_token](../README.md#access_token), [api_key](../README.md#api_key)

### HTTP request headers

 - **Content-Type**: multipart/form-data
 - **Accept**: application/json

