xuyu.iot.cardservice
v0.0.11
Published
* npm i jquery * npm i identityserver4.microservice.openapis2
Downloads
10
Readme
需要安装
- npm i jquery
- npm i identityserver4.microservice.openapis2
使用
// 配置接口地址和APPKEY等信息
openapis.init({
server_endpoint: '',
clientId: '',
client_secret: '',
scope: '',
token_endpoint: ''
});
openapis.IOTCardService.{methods}
SDK
;(function () {
var sdk = new Object();
sdk.basepath = function()
{
return openapis._settings.server_endpoint + '/cards';
};
/**
* @name 充值卡 - 列表
* @description <label>Client Scopes:</label><code>iot.cardservice.datacard.get</code><label>User Permissions:</label><code>iot.cardservice.datacard.get</code>
* @param q.cardNo 卡号
* @param q.cardType Format - int32. 卡类
* @param q.status 卡状态(-1:全部,0:可使用,1:已使用)
* @param orderby 排序字段
* @param asc 正序或倒序
* @param skip Format - int32. 跳过的数据条数
* @param take Format - int32. 将获取的数据条数
* @param startTime Format - date-time (as date-time in RFC3339). 开始时间。yyyy-MM-dd
* @param endTime Format - date-time (as date-time in RFC3339). 结束时间。yyyy-MM-dd
*/
sdk.DatacardGet = function(q_cardNo,q_cardType,q_status,orderby,asc,skip,take,startTime,endTime,api_version) {
var url = this.basepath() +'/DataCard';
var params = {};
if (q_cardNo !== undefined) { params['q.cardNo'] =q_cardNo }
if (q_cardType !== undefined) { params['q.cardType'] =q_cardType }
if (q_status !== undefined) { params['q.status'] =q_status }
if (orderby !== undefined) { params['orderby'] =orderby }
if (asc !== undefined) { params['asc'] =asc }
if (skip !== undefined) { params['skip'] =skip }
if (take !== undefined) { params['take'] =take }
if (startTime !== undefined) { params['startTime'] =startTime }
if (endTime !== undefined) { params['endTime'] =endTime }
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,method:'GET'});
}
/**
* @name 充值卡 - 充值记录
* @description <label>Client Scopes:</label><code>iot.cardservice.datacard.history</code><label>User Permissions:</label><code>iot.cardservice.datacard.history</code>
* @param q.cardNo 流量卡号
* @param q.flowCardNo 充值卡号
* @param q.userName 用户昵称。暂未开放
* @param orderby 排序字段
* @param asc 正序或倒序
* @param skip Format - int32. 跳过的数据条数
* @param take Format - int32. 将获取的数据条数
* @param startTime Format - date-time (as date-time in RFC3339). 开始时间。yyyy-MM-dd
* @param endTime Format - date-time (as date-time in RFC3339). 结束时间。yyyy-MM-dd
*/
sdk.DatacardHistory = function(q_cardNo,q_flowCardNo,q_userName,orderby,asc,skip,take,startTime,endTime,api_version) {
var url = this.basepath() +'/DataCard/History';
var params = {};
if (q_cardNo !== undefined) { params['q.cardNo'] =q_cardNo }
if (q_flowCardNo !== undefined) { params['q.flowCardNo'] =q_flowCardNo }
if (q_userName !== undefined) { params['q.userName'] =q_userName }
if (orderby !== undefined) { params['orderby'] =orderby }
if (asc !== undefined) { params['asc'] =asc }
if (skip !== undefined) { params['skip'] =skip }
if (take !== undefined) { params['take'] =take }
if (startTime !== undefined) { params['startTime'] =startTime }
if (endTime !== undefined) { params['endTime'] =endTime }
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,method:'GET'});
}
/**
* @name 充值卡 - 批量划卡
* @description <label>Client Scopes:</label><code>iot.cardservice.datacard.transfer</code><label>User Permissions:</label><code>iot.cardservice.datacard.transfer</code>
*/
sdk.DatacardTransfer = function(model,api_version) {
var url = this.basepath() +'/DataCard/Transfer';
var params = {};
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,data:JSON.stringify(model),method:'POST'});
}
/**
* @name 充值卡 - 制卡
* @description <label>Client Scopes:</label><code>iot.cardservice.datacard.generate</code><label>User Permissions:</label><code>iot.cardservice.datacard.generate</code><label>User Roles:</label><code>administrators</code>
*/
sdk.DatacardGenerate = function(model,api_version) {
var url = this.basepath() +'/DataCard/Generate';
var params = {};
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,data:JSON.stringify(model),method:'POST'});
}
/**
* @name 充值卡 - 错误码表
* @description 充值卡代码对照表
*/
sdk.DatacardCodes = function(api_version) {
var url = this.basepath() +'/DataCard/Codes';
var params = {};
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,method:'GET'});
}
/**
* @name 流量卡 - 列表
* @description <label>Client Scopes:</label><code>iot.cardservice.flowcard.get</code><label>User Permissions:</label><code>iot.cardservice.flowcard.get</code>
* @param q.userName 用户昵称
* @param q.cardNo 卡号/接入号(已过时)
建议采用cardId、callNbr、cardNbr、mobile查询,提高性能
* @param q.cardType Format - int32. 卡类型
* @param q.status Format - int32. 卡状态
* @param q.authenFlag 实名认证
* @param q.customer Format - int32. 用途类型
* @param q.onlineState 在线状态(online,offline)
* @param q.cardId Format - int64. 惟一标识号
* @param q.callNbr 接入号
* @param q.cardNbr 卡号
* @param q.mobile 手机号
* @param orderby 排序字段
* @param asc 正序或倒序
* @param skip Format - int32. 跳过的数据条数
* @param take Format - int32. 将获取的数据条数
* @param startTime Format - date-time (as date-time in RFC3339). 开始时间。yyyy-MM-dd
* @param endTime Format - date-time (as date-time in RFC3339). 结束时间。yyyy-MM-dd
*/
sdk.FlowcardGet = function(q_userName,q_cardNo,q_cardType,q_status,q_authenFlag,q_customer,q_onlineState,q_cardId,q_callNbr,q_cardNbr,q_mobile,orderby,asc,skip,take,startTime,endTime,api_version) {
var url = this.basepath() +'/FlowCard';
var params = {};
if (q_userName !== undefined) { params['q.userName'] =q_userName }
if (q_cardNo !== undefined) { params['q.cardNo'] =q_cardNo }
if (q_cardType !== undefined) { params['q.cardType'] =q_cardType }
if (q_status !== undefined) { params['q.status'] =q_status }
if (q_authenFlag !== undefined) { params['q.authenFlag'] =q_authenFlag }
if (q_customer !== undefined) { params['q.customer'] =q_customer }
if (q_onlineState !== undefined) { params['q.onlineState'] =q_onlineState }
if (q_cardId !== undefined) { params['q.cardId'] =q_cardId }
if (q_callNbr !== undefined) { params['q.callNbr'] =q_callNbr }
if (q_cardNbr !== undefined) { params['q.cardNbr'] =q_cardNbr }
if (q_mobile !== undefined) { params['q.mobile'] =q_mobile }
if (orderby !== undefined) { params['orderby'] =orderby }
if (asc !== undefined) { params['asc'] =asc }
if (skip !== undefined) { params['skip'] =skip }
if (take !== undefined) { params['take'] =take }
if (startTime !== undefined) { params['startTime'] =startTime }
if (endTime !== undefined) { params['endTime'] =endTime }
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,method:'GET'});
}
/**
* @name 流量卡 - 更新
* @description <label>Client Scopes:</label><code>iot.cardservice.flowcard.put</code><label>User Permissions:</label><code>iot.cardservice.flowcard.put</code>
*/
sdk.FlowcardPut = function(model,api_version) {
var url = this.basepath() +'/FlowCard/Put';
var params = {};
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,data:JSON.stringify(model),method:'PUT'});
}
/**
* @name 流量卡 - 批量更新
* @description <label>Client Scopes:</label><code>iot.cardservice.flowcard.patch</code><label>User Permissions:</label><code>iot.cardservice.flowcard.patch</code>
*/
sdk.FlowcardPatch = function(model,api_version) {
var url = this.basepath() +'/FlowCard/Patch';
var params = {};
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,data:JSON.stringify(model),method:'PATCH'});
}
/**
* @name 流量卡 - 查流量
* @description <label>Client Scopes:</label><code>iot.cardservice.flowcard.data</code><label>User Permissions:</label><code>iot.cardservice.flowcard.data</code>
* @param cardNo
*/
sdk.FlowcardData = function(cardNo,api_version) {
var url = this.basepath() +'/FlowCard/Data';
var params = {};
if (cardNo !== undefined) { params['cardNo'] =cardNo }
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,method:'GET'});
}
/**
* @name 流量卡 - 查状态
* @description <label>Client Scopes:</label><code>iot.cardservice.flowcard.status</code><label>User Permissions:</label><code>iot.cardservice.flowcard.status</code>
* @param cardNo
*/
sdk.FlowcardStatus = function(cardNo,api_version) {
var url = this.basepath() +'/FlowCard/Status';
var params = {};
if (cardNo !== undefined) { params['cardNo'] =cardNo }
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,method:'GET'});
}
/**
* @name 流量卡 - 停复机(暂未开放)
* @description <label>Client Scopes:</label><code>iot.cardservice.flowcard.network</code><label>User Permissions:</label><code>iot.cardservice.flowcard.network</code>
*/
sdk.FlowcardNetwork = function(model,api_version) {
var url = this.basepath() +'/FlowCard/Network';
var params = {};
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,data:JSON.stringify(model),method:'PUT'});
}
/**
* @name 流量卡 - 划卡记录
* @description <label>Client Scopes:</label><code>iot.cardservice.flowcard.transferhistory</code><label>User Permissions:</label><code>iot.cardservice.flowcard.transferhistory</code>
* @param q.cardNo
* @param q.userName
* @param orderby 排序字段
* @param asc 正序或倒序
* @param skip Format - int32. 跳过的数据条数
* @param take Format - int32. 将获取的数据条数
* @param startTime Format - date-time (as date-time in RFC3339). 开始时间。yyyy-MM-dd
* @param endTime Format - date-time (as date-time in RFC3339). 结束时间。yyyy-MM-dd
*/
sdk.FlowcardTransferhistory = function(q_cardNo,q_userName,orderby,asc,skip,take,startTime,endTime,api_version) {
var url = this.basepath() +'/FlowCard/TransferHistory';
var params = {};
if (q_cardNo !== undefined) { params['q.cardNo'] =q_cardNo }
if (q_userName !== undefined) { params['q.userName'] =q_userName }
if (orderby !== undefined) { params['orderby'] =orderby }
if (asc !== undefined) { params['asc'] =asc }
if (skip !== undefined) { params['skip'] =skip }
if (take !== undefined) { params['take'] =take }
if (startTime !== undefined) { params['startTime'] =startTime }
if (endTime !== undefined) { params['endTime'] =endTime }
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,method:'GET'});
}
/**
* @name 流量卡 - 划卡
* @description <label>Client Scopes:</label><code>iot.cardservice.flowcard.transfer</code><label>User Permissions:</label><code>iot.cardservice.flowcard.transfer</code>
*/
sdk.FlowcardTransfer = function(model,api_version) {
var url = this.basepath() +'/FlowCard/Transfer';
var params = {};
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,data:JSON.stringify(model),method:'POST'});
}
/**
* @name 流量卡 - 导卡记录
* @description <label>Client Scopes:</label><code>iot.cardservice.flowcard.importhistory</code><label>User Permissions:</label><code>iot.cardservice.flowcard.importhistory</code><label>User Roles:</label><code>administrators</code>
* @param q.typeIds 类目
* @param q.categoryIds 分类
* @param q.tagIds 标签
* @param orderby 排序字段
* @param asc 正序或倒序
* @param skip Format - int32. 跳过的数据条数
* @param take Format - int32. 将获取的数据条数
* @param startTime Format - date-time (as date-time in RFC3339). 开始时间。yyyy-MM-dd
* @param endTime Format - date-time (as date-time in RFC3339). 结束时间。yyyy-MM-dd
*/
sdk.FlowcardImporthistory = function(q_typeIds,q_categoryIds,q_tagIds,orderby,asc,skip,take,startTime,endTime,api_version) {
var url = this.basepath() +'/FlowCard/ImportHistory';
var params = {};
if (q_typeIds !== undefined) { params['q.typeIds'] =q_typeIds }
if (q_categoryIds !== undefined) { params['q.categoryIds'] =q_categoryIds }
if (q_tagIds !== undefined) { params['q.tagIds'] =q_tagIds }
if (orderby !== undefined) { params['orderby'] =orderby }
if (asc !== undefined) { params['asc'] =asc }
if (skip !== undefined) { params['skip'] =skip }
if (take !== undefined) { params['take'] =take }
if (startTime !== undefined) { params['startTime'] =startTime }
if (endTime !== undefined) { params['endTime'] =endTime }
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,method:'GET'});
}
/**
* @name 流量卡 - 导卡
* @description <label>Client Scopes:</label><code>iot.cardservice.flowcard.import</code><label>User Permissions:</label><code>iot.cardservice.flowcard.import</code><label>User Roles:</label><code>administrators</code>
*/
sdk.FlowcardImport = function(model,api_version) {
var url = this.basepath() +'/FlowCard/Import';
var params = {};
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,data:JSON.stringify(model),method:'POST'});
}
/**
* @name 流量卡 - 实名认证
* @description <label>Client Scopes:</label><code>iot.cardservice.flowcard.reality</code><label>User Permissions:</label><code>iot.cardservice.flowcard.reality</code>
* @param userName 用户姓名
* @param cardID 卡号/接入号/标识
* @param idCard 身份证号
* @param mobile 联系手机
* @param typeIDs 类目
* @param authenFlag 实名认证状态
* @param profile 身份证照
*/
sdk.FlowcardReality = function(userName,cardID,idCard,mobile,typeIDs,authenFlag,profile,api_version) {
var url = this.basepath() +'/FlowCard/Reality';
var params = {};
if (userName !== undefined) { params['userName'] =userName }
if (cardID !== undefined) { params['cardID'] =cardID }
if (idCard !== undefined) { params['idCard'] =idCard }
if (mobile !== undefined) { params['mobile'] =mobile }
if (typeIDs !== undefined) { params['typeIDs'] =typeIDs }
if (authenFlag !== undefined) { params['authenFlag'] =authenFlag }
if (profile !== undefined) { params['profile'] =profile }
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,method:'POST'});
}
/**
* @name 流量卡 - 分类
* @description <label>Client Scopes:</label><code>iot.cardservice.flowcard.types</code><label>User Permissions:</label><code>iot.cardservice.flowcard.types</code>
* @param q.isShow Format - int32.
* @param orderby 排序字段
* @param asc 正序或倒序
* @param skip Format - int32. 跳过的数据条数
* @param take Format - int32. 将获取的数据条数
* @param startTime Format - date-time (as date-time in RFC3339). 开始时间。yyyy-MM-dd
* @param endTime Format - date-time (as date-time in RFC3339). 结束时间。yyyy-MM-dd
*/
sdk.FlowcardTypes = function(q_isShow,orderby,asc,skip,take,startTime,endTime,api_version) {
var url = this.basepath() +'/FlowCard/Types';
var params = {};
if (q_isShow !== undefined) { params['q.isShow'] =q_isShow }
if (orderby !== undefined) { params['orderby'] =orderby }
if (asc !== undefined) { params['asc'] =asc }
if (skip !== undefined) { params['skip'] =skip }
if (take !== undefined) { params['take'] =take }
if (startTime !== undefined) { params['startTime'] =startTime }
if (endTime !== undefined) { params['endTime'] =endTime }
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,method:'GET'});
}
/**
* @name 流量卡 - 用途类型
* @description <label>Client Scopes:</label><code>iot.cardservice.flowcard.categories</code><label>User Permissions:</label><code>iot.cardservice.flowcard.categories</code>
* @param q.isShow Format - int32.
* @param orderby 排序字段
* @param asc 正序或倒序
* @param skip Format - int32. 跳过的数据条数
* @param take Format - int32. 将获取的数据条数
* @param startTime Format - date-time (as date-time in RFC3339). 开始时间。yyyy-MM-dd
* @param endTime Format - date-time (as date-time in RFC3339). 结束时间。yyyy-MM-dd
*/
sdk.FlowcardCategories = function(q_isShow,orderby,asc,skip,take,startTime,endTime,api_version) {
var url = this.basepath() +'/FlowCard/Categories';
var params = {};
if (q_isShow !== undefined) { params['q.isShow'] =q_isShow }
if (orderby !== undefined) { params['orderby'] =orderby }
if (asc !== undefined) { params['asc'] =asc }
if (skip !== undefined) { params['skip'] =skip }
if (take !== undefined) { params['take'] =take }
if (startTime !== undefined) { params['startTime'] =startTime }
if (endTime !== undefined) { params['endTime'] =endTime }
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,method:'GET'});
}
/**
* @name 流量卡 - 标签
* @description <label>Client Scopes:</label><code>iot.cardservice.flowcard.tags</code><label>User Permissions:</label><code>iot.cardservice.flowcard.tags</code>
* @param q.isShow Format - int32.
* @param orderby 排序字段
* @param asc 正序或倒序
* @param skip Format - int32. 跳过的数据条数
* @param take Format - int32. 将获取的数据条数
* @param startTime Format - date-time (as date-time in RFC3339). 开始时间。yyyy-MM-dd
* @param endTime Format - date-time (as date-time in RFC3339). 结束时间。yyyy-MM-dd
*/
sdk.FlowcardTags = function(q_isShow,orderby,asc,skip,take,startTime,endTime,api_version) {
var url = this.basepath() +'/FlowCard/Tags';
var params = {};
if (q_isShow !== undefined) { params['q.isShow'] =q_isShow }
if (orderby !== undefined) { params['orderby'] =orderby }
if (asc !== undefined) { params['asc'] =asc }
if (skip !== undefined) { params['skip'] =skip }
if (take !== undefined) { params['take'] =take }
if (startTime !== undefined) { params['startTime'] =startTime }
if (endTime !== undefined) { params['endTime'] =endTime }
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,method:'GET'});
}
/**
* @name 流量卡 - 错误码表
* @description 流量卡代码对照表
*/
sdk.FlowcardCodes = function(api_version) {
var url = this.basepath() +'/FlowCard/Codes';
var params = {};
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,method:'GET'});
}
/**
* @name 流量卡 - 定位
* @description <label>Client Scopes:</label><code>iot.cardservice.flowcard.location</code><label>User Permissions:</label><code>iot.cardservice.flowcard.location</code>
* @param cardNo
*/
sdk.FlowCardLocation = function(cardNo,api_version) {
var url = this.basepath() +'/FlowCard/Location';
var params = {};
if (cardNo !== undefined) { params['cardNo'] =cardNo }
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,method:'GET'});
}
/**
* @name 流量卡 - 发送短信(暂未开放)
* @description <label>Client Scopes:</label><code>iot.cardservice.flowcard.sendsms</code><label>User Permissions:</label><code>iot.cardservice.flowcard.sendsms</code>
*/
sdk.FlowCardSendSms = function(model,api_version) {
var url = this.basepath() +'/FlowCard/SendSms';
var params = {};
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,data:JSON.stringify(model),method:'POST'});
}
/**
* @name 流量卡 - 代理商直充
* @description <label>Client Scopes:</label><code>iot.cardservice.flowcard.recharge</code><label>User Permissions:</label><code>iot.cardservice.flowcard.recharge</code>
* @param callNbrs 接入号(callNbrs和cardNos都传入时,取callNbrs)
* @param cardNos 卡号(callNbrs和cardNos都传入时,取callNbrs)
* @param data Format - int64. 充值流量(单位MB)
* @param remark 备注信息(250个字以内)
*/
sdk.FlowCardRecharge = function(callNbrs,cardNos,data,remark,api_version) {
var url = this.basepath() +'/FlowCard/Recharge';
var params = {};
if (callNbrs !== undefined) { params['callNbrs'] =callNbrs }
if (cardNos !== undefined) { params['cardNos'] =cardNos }
if (data !== undefined) { params['data'] =data }
if (remark !== undefined) { params['remark'] =remark }
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,method:'POST'});
}
/**
* @name 流量卡 - 代理商直充记录
* @description <label>Client Scopes:</label><code>iot.cardservice.flowcard.rechargehistory</code><label>User Permissions:</label><code>iot.cardservice.flowcard.rechargehistory</code>
* @param q.cardNo 卡号
* @param orderby 排序字段
* @param asc 正序或倒序
* @param skip Format - int32. 跳过的数据条数
* @param take Format - int32. 将获取的数据条数
* @param startTime Format - date-time (as date-time in RFC3339). 开始时间。yyyy-MM-dd
* @param endTime Format - date-time (as date-time in RFC3339). 结束时间。yyyy-MM-dd
*/
sdk.FlowCardRechargeHistory = function(q_cardNo,orderby,asc,skip,take,startTime,endTime,api_version) {
var url = this.basepath() +'/FlowCard/RechargeHistory';
var params = {};
if (q_cardNo !== undefined) { params['q.cardNo'] =q_cardNo }
if (orderby !== undefined) { params['orderby'] =orderby }
if (asc !== undefined) { params['asc'] =asc }
if (skip !== undefined) { params['skip'] =skip }
if (take !== undefined) { params['take'] =take }
if (startTime !== undefined) { params['startTime'] =startTime }
if (endTime !== undefined) { params['endTime'] =endTime }
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,method:'GET'});
}
/**
* @name 流量卡 - 代理商流量余额
* @description <label>Client Scopes:</label><code>iot.cardservice.flowcard.accountbalance</code><label>User Permissions:</label><code>iot.cardservice.flowcard.accountbalance</code>
*/
sdk.FlowCardAccountBalance = function(api_version) {
var url = this.basepath() +'/FlowCard/AccountBalance';
var params = {};
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,method:'GET'});
}
window.openapis.IOTCardServiceClient = sdk;
})()