jixiu.campaignapis.jquery
v0.0.52
Published
需要安装 * npm i jquery * npm i jixiu.openapis.jquery
Downloads
8
Readme
需要安装
- npm i jquery
- npm i jixiu.openapis.jquery
// 配置接口地址和APPKEY等信息
openapis.init({
server_endpoint: '',
clientId: '',
client_secret: '',
scope: '',
token_endpoint: ''
});
openapis.{apiName}.{methods}
;(function () {
var sdk = new Object();
sdk.basepath = function()
{
return openapis._settings.server_endpoint + '/gamev5';
};
/**
* @name 支付宝提交页
* @description 支付宝提交页
*/
sdk.AlipaySubmit = function(model,api_version) {
var url = this.basepath() +'/Alipay/Submit';
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.CrowdfundPost = function(model,api_version) {
var url = this.basepath() +'/CrowdFund/Post';
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 应援 - 总列表
* @param status Format - int32.
* @param take Format - int32.
* @param skip Format - int32.
*/
sdk.CrowdfundList = function(status,take,skip,api_version) {
var url = this.basepath() +'/CrowdFund/List';
var params = {};
if (status !== undefined) { params['status'] =status }
if (take !== undefined) { params['take'] =take }
if (skip !== undefined) { params['skip'] =skip }
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 应援 - 详情
* @param crowdFundId
*/
sdk.CrowdfundDetail = function(crowdFundId,api_version) {
var url = this.basepath() +'/CrowdFund/Detail';
var params = {};
if (crowdFundId !== undefined) { params['crowdFundId'] =crowdFundId }
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.CrowdfundPut = function(model,api_version) {
var url = this.basepath() +'/CrowdFund/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 应援 - 更新状态
* @param crowdFundId
* @param status Format - int32.
* @param operatedBy
* @param transactionId
*/
sdk.CrowdfundChangestatus = function(crowdFundId,status,operatedBy,transactionId,api_version) {
var url = this.basepath() +'/CrowdFund/ChangeStatus';
var params = {};
if (crowdFundId !== undefined) { params['crowdFundId'] =crowdFundId }
if (status !== undefined) { params['status'] =status }
if (operatedBy !== undefined) { params['operatedBy'] =operatedBy }
if (transactionId !== undefined) { params['transactionId'] =transactionId }
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 应援 - 我发起列表
* @param userId
* @param take Format - int32.
* @param skip Format - int32.
*/
sdk.CrowdfundOrganizelist = function(userId,take,skip,api_version) {
var url = this.basepath() +'/CrowdFund/OrganizeList';
var params = {};
if (userId !== undefined) { params['userId'] =userId }
if (take !== undefined) { params['take'] =take }
if (skip !== undefined) { params['skip'] =skip }
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 应援 - 我参与列表
* @param userId
* @param take Format - int32.
* @param skip Format - int32.
*/
sdk.CrowdfundParticipatelist = function(userId,take,skip,api_version) {
var url = this.basepath() +'/CrowdFund/ParticipateList';
var params = {};
if (userId !== undefined) { params['userId'] =userId }
if (take !== undefined) { params['take'] =take }
if (skip !== undefined) { params['skip'] =skip }
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.CrowdfundPledge = function(model,api_version) {
var url = this.basepath() +'/CrowdFund/Pledge';
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 应援 - 捐款 - 列表
* @param crowdFundId
* @param sorting Format - int32.
* @param take Format - int32.
* @param skip Format - int32.
*/
sdk.CrowdfundPledges = function(crowdFundId,sorting,take,skip,api_version) {
var url = this.basepath() +'/CrowdFund/Pledges';
var params = {};
if (crowdFundId !== undefined) { params['crowdFundId'] =crowdFundId }
if (sorting !== undefined) { params['sorting'] =sorting }
if (take !== undefined) { params['take'] =take }
if (skip !== undefined) { params['skip'] =skip }
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 应援 - 捐款 - 排行榜
* @param crowdFundId
* @param userId
* @param sorting Format - int32.
* @param take Format - int32.
* @param skip Format - int32.
*/
sdk.CrowdfundPledgerankinglist = function(crowdFundId,userId,sorting,take,skip,api_version) {
var url = this.basepath() +'/CrowdFund/PledgeRankingList';
var params = {};
if (crowdFundId !== undefined) { params['crowdFundId'] =crowdFundId }
if (userId !== undefined) { params['userId'] =userId }
if (sorting !== undefined) { params['sorting'] =sorting }
if (take !== undefined) { params['take'] =take }
if (skip !== undefined) { params['skip'] =skip }
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.CrowdfundWithdraw = function(model,api_version) {
var url = this.basepath() +'/CrowdFund/Withdraw';
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 应援 - 发起者详情
* @param crowdFundId
*/
sdk.CrowdfundOrganizer = function(crowdFundId,api_version) {
var url = this.basepath() +'/CrowdFund/Organizer';
var params = {};
if (crowdFundId !== undefined) { params['crowdFundId'] =crowdFundId }
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 应援 - 捐款 - 状态
* @param pledgeId
*/
sdk.CrowdfundPledgestatus = function(pledgeId,api_version) {
var url = this.basepath() +'/CrowdFund/PledgeStatus';
var params = {};
if (pledgeId !== undefined) { params['pledgeId'] =pledgeId }
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.CrowdfundProof = function(model,api_version) {
var url = this.basepath() +'/CrowdFund/Proof';
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.CrowdfundEditproof = function(model,api_version) {
var url = this.basepath() +'/CrowdFund/EditProof';
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 新增举报
*/
sdk.CrowdfundReport = function(model,api_version) {
var url = this.basepath() +'/CrowdFund/Report';
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 举报列表
* @param crowdFundId
* @param take Format - int32.
* @param skip Format - int32.
*/
sdk.CrowdfundReportlist = function(crowdFundId,take,skip,api_version) {
var url = this.basepath() +'/CrowdFund/ReportList';
var params = {};
if (crowdFundId !== undefined) { params['crowdFundId'] =crowdFundId }
if (take !== undefined) { params['take'] =take }
if (skip !== undefined) { params['skip'] =skip }
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.CrowdfundRule = function(model,api_version) {
var url = this.basepath() +'/CrowdFund/Rule';
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.CrowdfundGetrule = function(api_version) {
var url = this.basepath() +'/CrowdFund/GetRule';
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 浏览数据
* @param crowdFundId
*/
sdk.CrowdfundViewcount = function(crowdFundId,api_version) {
var url = this.basepath() +'/CrowdFund/ViewCount';
var params = {};
if (crowdFundId !== undefined) { params['crowdFundId'] =crowdFundId }
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 分享数据
* @param crowdFundId
*/
sdk.CrowdfundSharecount = function(crowdFundId,api_version) {
var url = this.basepath() +'/CrowdFund/ShareCount';
var params = {};
if (crowdFundId !== undefined) { params['crowdFundId'] =crowdFundId }
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 游戏 - 列表
* @param take Format - int32.
* @param skip Format - int32.
*/
sdk.GameGet = function(take,skip,api_version) {
var url = this.basepath() +'/Game/Get';
var params = {};
if (take !== undefined) { params['take'] =take }
if (skip !== undefined) { params['skip'] =skip }
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.GamePut = function(model,api_version) {
var url = this.basepath() +'/Game/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 游戏 - 创建
*/
sdk.GamePost = function(model,api_version) {
var url = this.basepath() +'/Game/Post';
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 游戏 - 详情
* @param id Format - uuid.
*/
sdk.GameDetail = function(id,api_version) {
var url = this.basepath() +'/Game/Detail';
var params = {};
if (id !== undefined) { params['id'] =id }
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 游戏 - 删除
* @param id Format - uuid.
*/
sdk.GameDelete = function(id,api_version) {
var url = this.basepath() +'/Game/Delete';
var params = {};
if (id !== undefined) { params['id'] =id }
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,method:'DELETE'});
}
/**
* @name 游戏 - 错误码表
* @description 游戏 - 错误码表
*/
sdk.GameCodes = function(api_version) {
var url = this.basepath() +'/Game/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 排行榜
* @param gameId Format - uuid.
* @param instanceId Format - int64.
* @param skip Format - int32.
* @param take Format - int32.
*/
sdk.GeneralRanking = function(gameId,instanceId,skip,take,api_version) {
var url = this.basepath() +'/General/GetRanking';
var params = {};
if (gameId !== undefined) { params['gameId'] =gameId }
if (instanceId !== undefined) { params['instanceId'] =instanceId }
if (skip !== undefined) { params['skip'] =skip }
if (take !== undefined) { params['take'] =take }
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 用户个人排名
* @param gameId Format - uuid.
* @param instanceId Format - int64.
* @param userId
* @param platform Format - int32.
* @param nickName
* @param headImgUrl
*/
sdk.GeneralIndividualranking = function(gameId,instanceId,userId,platform,nickName,headImgUrl,api_version) {
var url = this.basepath() +'/General/IndividualRanking';
var params = {};
if (gameId !== undefined) { params['gameId'] =gameId }
if (instanceId !== undefined) { params['instanceId'] =instanceId }
if (userId !== undefined) { params['userId'] =userId }
if (platform !== undefined) { params['platform'] =platform }
if (nickName !== undefined) { params['nickName'] =nickName }
if (headImgUrl !== undefined) { params['headImgUrl'] =headImgUrl }
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.GeneralPostranking = function(model,api_version) {
var url = this.basepath() +'/General/PostRanking';
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 用户信息
* @param appTag Format - int32.
* @param code
*/
sdk.WechatGetuserinfo = function(appTag,code,api_version) {
var url = this.basepath() +'/Wechat/GetUserInfo';
var params = {};
if (appTag !== undefined) { params['appTag'] =appTag }
if (code !== undefined) { params['code'] =code }
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 登录微信小程序
* @param code
*/
sdk.WechatMiniprogramlogin = function(code,api_version) {
var url = this.basepath() +'/Wechat/MiniProgramLogin';
var params = {};
if (code !== undefined) { params['code'] =code }
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 解码微信小程序信息
* @param token
* @param encryptedData
* @param iv
*/
sdk.WechatMiniprogramsession = function(token,encryptedData,iv,api_version) {
var url = this.basepath() +'/Wechat/MiniProgramSession';
var params = {};
if (token !== undefined) { params['token'] =token }
if (encryptedData !== undefined) { params['encryptedData'] =encryptedData }
if (iv !== undefined) { params['iv'] =iv }
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 发送短信
(服务商:https://sendcloud.sohu.com)
* @description <label>Client Scopes:</label><code>campaign.apis.general.sendsms</code>
*/
sdk.GeneralSendsms = function(model,api_version) {
var url = this.basepath() +'/General/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 验证手机号
*/
sdk.GeneralVerifyphone = function(model,api_version) {
var url = this.basepath() +'/General/VerifyPhone';
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 朋友圈分享签名
* @param appTag Format - int32.
* @param url
*/
sdk.WechatShareSignature = function(appTag,url,api_version) {
var url = this.basepath() +'/Wechat/ShareSignature';
var params = {};
if (appTag !== undefined) { params['appTag'] =appTag }
if (url !== undefined) { params['url'] =url }
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 应援 - 捐款 - 更新状态
* @param pledgeId
* @param status Format - int32.
*/
sdk.CrowdFundSetPledgeStatus = function(pledgeId,status,api_version) {
var url = this.basepath() +'/CrowdFund/SetPledgeStatusAsync';
var params = {};
if (pledgeId !== undefined) { params['pledgeId'] =pledgeId }
if (status !== undefined) { params['status'] =status }
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,method:'PUT'});
}
/**
* @name 上传照片
* @description 上传照片
*/
sdk.GeneralUploadImage = function(formData) {
var url = this.basepath() +'/General/UploadImage';
return openapis._request({url:url,processData: false,contentType: false,data:formData,method:'POST'});
}
/**
* @name Get game instances
* @description Get game instances
* @param gameId Format - uuid.
* @param take Format - int32.
* @param skip Format - int32.
*/
sdk.GameInstances = function(gameId,take,skip,api_version) {
var url = this.basepath() +'/Game/Instances';
var params = {};
if (gameId !== undefined) { params['gameId'] =gameId }
if (take !== undefined) { params['take'] =take }
if (skip !== undefined) { params['skip'] =skip }
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 Get game instance
* @description Get game instance
* @param instanceId Format - int64.
*/
sdk.GameInstance = function(instanceId,api_version) {
var url = this.basepath() +'/Game/Instance';
var params = {};
if (instanceId !== undefined) { params['instanceId'] =instanceId }
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 Create new game instance
* @description Create new game instance
*/
sdk.GamePostInstance = function(model,api_version) {
var url = this.basepath() +'/Game/PostInstance';
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 Edit game instance
* @description Edit game instance
*/
sdk.GameEditInstance = function(model,api_version) {
var url = this.basepath() +'/Game/EditInstance';
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 Delete game instance
* @description Delete game instance
* @param instanceId Format - int64.
*/
sdk.GameDeleteInstance = function(instanceId,api_version) {
var url = this.basepath() +'/Game/DeleteInstance';
var params = {};
if (instanceId !== undefined) { params['instanceId'] =instanceId }
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,method:'DELETE'});
}
/**
* @name add image to instance
* @description add image to instance
*/
sdk.GameAddImage = function(api_version) {
var url = this.basepath() +'/Game/AddImage';
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:'POST'});
}
/**
* @name Delete game image
* @description Delete game image
* @param imageId Format - int64.
*/
sdk.GameDeleteImage = function(imageId,api_version) {
var url = this.basepath() +'/Game/DeleteImage';
var params = {};
if (imageId !== undefined) { params['imageId'] =imageId }
if (api_version !== undefined) { params['api-version'] =api_version }
if(Object.keys(params).length>0){
url += '?'+ $.param(params)
}
return openapis._request({url:url,method:'DELETE'});
}
/**
* @name 下载微信头像
* @description 下载微信头像
* @param userId
* @param imageUrl
*/
sdk.WechatHeaderImage = function(userId,imageUrl,api_version) {
var url = this.basepath() +'/Wechat/HeaderImage';
var params = {};
if (userId !== undefined) { params['userId'] =userId }
if (imageUrl !== undefined) { params['imageUrl'] =imageUrl }
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 地点打卡
*/
sdk.GeneralCheckIn = function(model,api_version) {
var url = this.basepath() +'/General/CheckIn';
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 打卡排名
* @param gameId Format - uuid.
* @param instanceId Format - int64.
* @param userId
* @param platform Format - int32.
*/
sdk.GeneralCheckInRanking = function(gameId,instanceId,userId,platform,api_version) {
var url = this.basepath() +'/General/CheckInRanking';
var params = {};
if (gameId !== undefined) { params['gameId'] =gameId }
if (instanceId !== undefined) { params['instanceId'] =instanceId }
if (userId !== undefined) { params['userId'] =userId }
if (platform !== undefined) { params['platform'] =platform }
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 获取微信 Access Token
* @description 获取微信 Access Token
* @param appTag Format - int32.
* @param code
*/
sdk.WechatAccessToken = function(appTag,code,api_version) {
var url = this.basepath() +'/Wechat/AccessToken';
var params = {};
if (appTag !== undefined) { params['appTag'] =appTag }
if (code !== undefined) { params['code'] =code }
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 Drawing/Post
*/
sdk.DrawingPost = function(model,api_version) {
var url = this.basepath() +'/Drawing/Post';
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 Drawing/Answer
*/
sdk.DrawingAnswer = function(model,api_version) {
var url = this.basepath() +'/Drawing/Answer';
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 Drawing/AnswerList
* @param gameId Format - uuid.
* @param instanceId Format - int64.
* @param drawerId
* @param questionId Format - int32.
* @param take Format - int32.
* @param skip Format - int32.
*/
sdk.DrawingAnswerList = function(gameId,instanceId,drawerId,questionId,take,skip,api_version) {
var url = this.basepath() +'/Drawing/AnswerList';
var params = {};
if (gameId !== undefined) { params['gameId'] =gameId }
if (instanceId !== undefined) { params['instanceId'] =instanceId }
if (drawerId !== undefined) { params['drawerId'] =drawerId }
if (questionId !== undefined) { params['questionId'] =questionId }
if (take !== undefined) { params['take'] =take }
if (skip !== undefined) { params['skip'] =skip }
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 Drawing/DrawingList
* @param gameId Format - uuid.
* @param instanceId Format - int64.
* @param questionId Format - int32.
* @param take Format - int32.
* @param skip Format - int32.
*/
sdk.DrawingDrawingList = function(gameId,instanceId,questionId,take,skip,api_version) {
var url = this.basepath() +'/Drawing/DrawingList';
var params = {};
if (gameId !== undefined) { params['gameId'] =gameId }
if (instanceId !== undefined) { params['instanceId'] =instanceId }
if (questionId !== undefined) { params['questionId'] =questionId }
if (take !== undefined) { params['take'] =take }
if (skip !== undefined) { params['skip'] =skip }
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 QQ用户信息
* @description QQ用户信息
* @param oauthConsumerKey
* @param openId
* @param accessToken
*/
sdk.GeneralQQUserInfo = function(oauthConsumerKey,openId,accessToken,api_version) {
var url = this.basepath() +'/General/QQUserInfo';
var params = {};
if (oauthConsumerKey !== undefined) { params['oauthConsumerKey'] =oauthConsumerKey }
if (openId !== undefined) { params['openId'] =openId }
if (accessToken !== undefined) { params['accessToken'] =accessToken }
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 内容检测
* @param userId
* @param content
*/
sdk.GeneralContentChecking = function(userId,content,api_version) {
var url = this.basepath() +'/General/ContentChecking';
var params = {};
if (userId !== undefined) { params['userId'] =userId }
if (content !== undefined) { params['content'] =content }
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'});
}
window.openapis.CampaignAPIsClient = sdk;
})()