# WisiApi.EventosApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**checkinListPost**](EventosApi.md#checkinListPost) | **POST** /checkin_list | 
[**codigosGet**](EventosApi.md#codigosGet) | **GET** /codigos | 
[**eventoGet**](EventosApi.md#eventoGet) | **GET** /evento | 
[**eventosGet**](EventosApi.md#eventosGet) | **GET** /eventos | 
[**invitarAmigosPost**](EventosApi.md#invitarAmigosPost) | **POST** /invitar_amigos | 
[**listaAmigosGet**](EventosApi.md#listaAmigosGet) | **GET** /lista_amigos | 
[**listasGet**](EventosApi.md#listasGet) | **GET** /listas | 
[**pbGet**](EventosApi.md#pbGet) | **GET** /pb | 
[**puntosGet**](EventosApi.md#puntosGet) | **GET** /puntos | 
[**solicitarCodigoPost**](EventosApi.md#solicitarCodigoPost) | **POST** /solicitar_codigo | 
[**solicitarListaPost**](EventosApi.md#solicitarListaPost) | **POST** /solicitar_lista | 
[**statisticPost**](EventosApi.md#statisticPost) | **POST** /statistic | 
[**traerListasGet**](EventosApi.md#traerListasGet) | **GET** /traer_listas | 
[**traerRegistrosGet**](EventosApi.md#traerRegistrosGet) | **GET** /traer_registros | 


<a name="checkinListPost"></a>
# **checkinListPost**
> [Registro] checkinListPost(rid, opts)



Obtiene objeto &#x60;Registro&#x60;. Parametro requerido **access_token**  que retorna el registro de las lista del registro enviado **rid** Enviar 1 o 0 en **redimir** 

### 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.EventosApi();

var rid = 56; // Number | id del registro

var opts = { 
  'redimir': true // Boolean | Registrar o desregistrar de la lista
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **rid** | **Number**| id del registro | 
 **redimir** | **Boolean**| Registrar o desregistrar de la lista | [optional] 

### Return type

[**[Registro]**](Registro.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="codigosGet"></a>
# **codigosGet**
> InlineResponse2004 codigosGet()



Obtiene objetos &#x60;Codigo&#x60;. Parametro requerido **access_token** que retorna los codigos activos del usuario 

### 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.EventosApi();

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

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

### Return type

[**InlineResponse2004**](InlineResponse2004.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="eventoGet"></a>
# **eventoGet**
> ResultEvento eventoGet(id)



Obtiene objeto &#x60;Evento&#x60;. Parametro requerido **id** que el evento 

### 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.EventosApi();

var id = 56; // Number | 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Number**|  | 

### Return type

[**ResultEvento**](ResultEvento.md)

### Authorization

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

### HTTP request headers

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

<a name="eventosGet"></a>
# **eventosGet**
> InlineResponse2002 eventosGet(opts)



Obtiene objetos &#x60;Evento&#x60;. Parametro requerido **access_token** que retorna los eventos del usuario 

### 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.EventosApi();

var opts = { 
  'idTipo': 56, // Number | id del tipo a filtrar
  'tipo': "tipo_example" // String | tipo a filtrar EJ:\"favoritos favoritos_v e\"
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **idTipo** | **Number**| id del tipo a filtrar | [optional] 
 **tipo** | **String**| tipo a filtrar EJ:\&quot;favoritos favoritos_v e\&quot; | [optional] 

### Return type

[**InlineResponse2002**](InlineResponse2002.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="invitarAmigosPost"></a>
# **invitarAmigosPost**
> ResultMensaje invitarAmigosPost(amigos, eid)



Retorna 2 si ok Parametro requerido **access_token**,**amigos**,**eid** 

### 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.EventosApi();

var amigos = "amigos_example"; // String | Array de ids de facebook de amigos a invitar con commas

var eid = 56; // Number | id del evento


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **amigos** | **String**| Array de ids de facebook de amigos a invitar con commas | 
 **eid** | **Number**| id del evento | 

### 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="listaAmigosGet"></a>
# **listaAmigosGet**
> InlineResponse2003 listaAmigosGet(amigos, eid)



Retorna amigos que van, amigos que depronto van Parametro requerido **access_token**,**amigos**,**eid** 

### 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.EventosApi();

var amigos = "amigos_example"; // String | Array de ids de facebook de amigos a invitar con commas

var eid = 56; // Number | id del evento


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **amigos** | **String**| Array de ids de facebook de amigos a invitar con commas | 
 **eid** | **Number**| id del evento | 

### Return type

[**InlineResponse2003**](InlineResponse2003.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="listasGet"></a>
# **listasGet**
> InlineResponse2006 listasGet()



Obtiene objetos &#x60;Lista&#x60;. Parametro requerido **access_token** que retorna los listas registradas del usuario 

### 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.EventosApi();

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

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

### Return type

[**InlineResponse2006**](InlineResponse2006.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="pbGet"></a>
# **pbGet**
> &#39;String&#39; pbGet(uid, lid)



Obtiene &#x60;PassBook&#x60;. Parametro requerido **uid** y **lid** 

### 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.EventosApi();

var uid = 56; // Number | id del usuarios registrado

var lid = 56; // Number | id de la lista


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **uid** | **Number**| id del usuarios registrado | 
 **lid** | **Number**| id de la lista | 

### Return type

**&#39;String&#39;**

### 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="puntosGet"></a>
# **puntosGet**
> InlineResponse2001 puntosGet()



Obtiene objetos &#x60;Punto&#x60;. Parametro requerido **access_token** que retorna los puntos de venta 

### 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.EventosApi();

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

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

### Return type

[**InlineResponse2001**](InlineResponse2001.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="solicitarCodigoPost"></a>
# **solicitarCodigoPost**
> InlineResponse2005 solicitarCodigoPost(cid)



Obtiene objeto &#x60;Codigo&#x60;. o una respuesta con error al no poder generarlo Parametro requerido **access_token** y **cid**  

### 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.EventosApi();

var cid = 56; // Number | id de la campaña


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **cid** | **Number**| id de la campaña | 

### Return type

[**InlineResponse2005**](InlineResponse2005.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="solicitarListaPost"></a>
# **solicitarListaPost**
> InlineResponse2007 solicitarListaPost(lid)



Obtiene objeto &#x60;Lista&#x60;. o una respuesta con error al no poder generarlo Parametro requerido **access_token** y **cid**  

### 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.EventosApi();

var lid = 56; // Number | id de la lista


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **lid** | **Number**| id de la lista | 

### Return type

[**InlineResponse2007**](InlineResponse2007.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="statisticPost"></a>
# **statisticPost**
> ResultMensaje statisticPost(tipo, tid, opts)



Retorna 2 si ok Parametro requerido **access_token**,**tipo** 

### 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.EventosApi();

var tipo = "tipo_example"; // String | Tipo de dato

var tid = 56; // Number | id del tipo de dato

var opts = { 
  'eliminar': true // Boolean | define si borra la estadistica
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **tipo** | **String**| Tipo de dato | 
 **tid** | **Number**| id del tipo de dato | 
 **eliminar** | **Boolean**| define si borra la estadistica | [optional] 

### 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="traerListasGet"></a>
# **traerListasGet**
> [Lista1] traerListasGet()



Obtiene objetos &#x60;Lista&#x60;. Parametro requerido **access_token** que retorna las listas del sistema a Usuarios Autorizados 

### 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.EventosApi();

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

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

### Return type

[**[Lista1]**](Lista1.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="traerRegistrosGet"></a>
# **traerRegistrosGet**
> [Registro] traerRegistrosGet(opts)



Obtiene objetos &#x60;Registros&#x60;. Parametro requerido **access_token**  que retorna los registros de las listas enviar **lid** para filtrar por lista 

### 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.EventosApi();

var opts = { 
  'lid': 56 // Number | id de la lista
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **lid** | **Number**| id de la lista | [optional] 

### Return type

[**[Registro]**](Registro.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

