# WisiApi.PushApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**openPushPost**](PushApi.md#openPushPost) | **POST** /open_push | 
[**quitarTokenDelete**](PushApi.md#quitarTokenDelete) | **DELETE** /quitar_token | 
[**registrarTokenPost**](PushApi.md#registrarTokenPost) | **POST** /registrar_token | 


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



Enviar id del mensaje push recibido para validar lectura Parametro requerido **access_token** y **id** 

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

var id = 56; // Number | id del mensaje


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

### Parameters

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

### 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="quitarTokenDelete"></a>
# **quitarTokenDelete**
> ResultMensaje quitarTokenDelete(token, tipo)



Enviar token y tipo para eliminar de usuario en sistema Parametro **token** y **tipo** (ios,android) 

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

var token = "token_example"; // String | Token del celular (GCM, APNS)

var tipo = "tipo_example"; // String | tipo de celular (ios,android)


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **token** | **String**| Token del celular (GCM, APNS) | 
 **tipo** | **String**| tipo de celular (ios,android) | 

### 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="registrarTokenPost"></a>
# **registrarTokenPost**
> ResultMensaje registrarTokenPost(token, tipo)



Enviar token y tipo para registrar en sistema Parametro requerido **access_token**, **token** y **tipo** (ios,android) 

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

var token = "token_example"; // String | Token del celular (GCM, APNS)

var tipo = "tipo_example"; // String | tipo de celular (ios,android)


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **token** | **String**| Token del celular (GCM, APNS) | 
 **tipo** | **String**| tipo de celular (ios,android) | 

### 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

