# VmosoApi.WechatApi

All URIs are relative to *https://www.vmoso.com/svc*

Method | HTTP request | Description
------------- | ------------- | -------------
[**addAudio**](WechatApi.md#addAudio) | **POST** /wechat/audio | 
[**getJsapiSignature**](WechatApi.md#getJsapiSignature) | **GET** /wechat/jssignature | 


<a name="addAudio"></a>
# **addAudio**
> AddAudioResult addAudio(input)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.ApiClient.default;

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

var apiInstance = new VmosoApi.WechatApi()

var input = new VmosoApi.AddAudioInput(); // {AddAudioInput} 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **input** | [**AddAudioInput**](AddAudioInput.md)|  | 

### Return type

[**AddAudioResult**](AddAudioResult.md)

### Authorization

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

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="getJsapiSignature"></a>
# **getJsapiSignature**
> GetJsapiSignatureResult getJsapiSignature(corpid, agentid, url)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.ApiClient.default;

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

var apiInstance = new VmosoApi.WechatApi()

var corpid = "corpid_example"; // {String} 

var agentid = "agentid_example"; // {String} 

var url = "url_example"; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getJsapiSignature(corpid, agentid, url, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **corpid** | **String**|  | 
 **agentid** | **String**|  | 
 **url** | **String**|  | 

### Return type

[**GetJsapiSignatureResult**](GetJsapiSignatureResult.md)

### Authorization

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

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

