0.0.34 • Published 6 years ago

campaign_ap_is v0.0.34

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

campaign_ap_is

CampaignApIs - JavaScript client for campaign_ap_is No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0
  • Package version: 1.0
  • Build package: io.swagger.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install campaign_ap_is --save
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

Finally, switch to the directory you want to use your campaign_ap_is from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

You should now be able to require('campaign_ap_is') in javascript files from the directory you ran the last command above from.

git

If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/campaign_ap_is then install it via:

    npm install YOUR_USERNAME/campaign_ap_is --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file, that's to say your javascript file where you actually use this library):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var CampaignApIs = require('campaign_ap_is');

var defaultClient = CampaignApIs.ApiClient.instance;

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

// Configure OAuth2 access token for authorization: OAuth2
var OAuth2 = defaultClient.authentications['OAuth2'];
OAuth2.accessToken = "YOUR ACCESS TOKEN"

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

var api = new CampaignApIs.AlipayApi()

var opts = { 
  'value': new CampaignApIs.SubmitModel(), // {SubmitModel} 
  'apiVersion': "apiVersion_example" // {String} 
};

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

Documentation for API Endpoints

All URIs are relative to https://campaigncore-gameresourcev5.chinacloudsites.cn

ClassMethodHTTP requestDescription
CampaignApIs.AlipayApialipaySubmitPOST /Alipay/Submit支付宝提交页
CampaignApIs.CrowdFundApicrowdFundChangeStatusPOST /CrowdFund/ChangeStatus应援 - 更新状态
CampaignApIs.CrowdFundApicrowdFundDetailGET /CrowdFund/Detail应援 - 详情
CampaignApIs.CrowdFundApicrowdFundEditProofPUT /CrowdFund/EditProof修改凭证
CampaignApIs.CrowdFundApicrowdFundGetRuleGET /CrowdFund/GetRule规则
CampaignApIs.CrowdFundApicrowdFundListGET /CrowdFund/List应援 - 总列表
CampaignApIs.CrowdFundApicrowdFundOrganizeListGET /CrowdFund/OrganizeList应援 - 我发起列表
CampaignApIs.CrowdFundApicrowdFundOrganizerGET /CrowdFund/Organizer应援 - 发起者详情
CampaignApIs.CrowdFundApicrowdFundParticipateListGET /CrowdFund/ParticipateList应援 - 我参与列表
CampaignApIs.CrowdFundApicrowdFundPledgePOST /CrowdFund/Pledge应援 - 捐款 - 新增
CampaignApIs.CrowdFundApicrowdFundPledgeRankingListGET /CrowdFund/PledgeRankingList应援 - 捐款 - 排行榜
CampaignApIs.CrowdFundApicrowdFundPledgeStatusGET /CrowdFund/PledgeStatus应援 - 捐款 - 状态
CampaignApIs.CrowdFundApicrowdFundPledgesGET /CrowdFund/Pledges应援 - 捐款 - 列表
CampaignApIs.CrowdFundApicrowdFundPostPOST /CrowdFund/Post应援 - 新增
CampaignApIs.CrowdFundApicrowdFundProofPOST /CrowdFund/Proof新增凭证
CampaignApIs.CrowdFundApicrowdFundPutPUT /CrowdFund/Put应援 - 修改
CampaignApIs.CrowdFundApicrowdFundReportPOST /CrowdFund/Report新增举报
CampaignApIs.CrowdFundApicrowdFundReportListGET /CrowdFund/ReportList举报列表
CampaignApIs.CrowdFundApicrowdFundRulePOST /CrowdFund/Rule新增规则
CampaignApIs.CrowdFundApicrowdFundSetPledgeStatusPUT /CrowdFund/SetPledgeStatusAsync应援 - 捐款 - 更新状态
CampaignApIs.CrowdFundApicrowdFundShareCountPOST /CrowdFund/ShareCount分享数据
CampaignApIs.CrowdFundApicrowdFundViewCountPOST /CrowdFund/ViewCount浏览数据
CampaignApIs.CrowdFundApicrowdFundWithdrawPOST /CrowdFund/Withdraw应援 - 发起收款
CampaignApIs.DrawingApidrawingAnswerPOST /Drawing/Answer
CampaignApIs.DrawingApidrawingAnswerListGET /Drawing/AnswerList
CampaignApIs.DrawingApidrawingDrawingListGET /Drawing/DrawingList
CampaignApIs.DrawingApidrawingPostPOST /Drawing/Post
CampaignApIs.GameApigameAddImagePOST /Game/AddImageadd image to instance
CampaignApIs.GameApigameCodesGET /Game/Codes游戏 - 错误码表
CampaignApIs.GameApigameDeleteDELETE /Game/Delete游戏 - 删除
CampaignApIs.GameApigameDeleteImageDELETE /Game/DeleteImageDelete game image
CampaignApIs.GameApigameDeleteInstanceDELETE /Game/DeleteInstanceDelete game instance
CampaignApIs.GameApigameDetailGET /Game/Detail游戏 - 详情
CampaignApIs.GameApigameEditInstancePUT /Game/EditInstanceEdit game instance
CampaignApIs.GameApigameGetGET /Game/Get游戏 - 列表
CampaignApIs.GameApigameInstanceGET /Game/InstanceGet game instance
CampaignApIs.GameApigameInstancesGET /Game/InstancesGet game instances
CampaignApIs.GameApigamePostPOST /Game/Post游戏 - 创建
CampaignApIs.GameApigamePostInstancePOST /Game/PostInstanceCreate new game instance
CampaignApIs.GameApigamePutPUT /Game/Put游戏 - 更新
CampaignApIs.GeneralApigeneralCheckInPOST /General/CheckIn地点打卡
CampaignApIs.GeneralApigeneralCheckInRankingGET /General/CheckInRanking打卡排名
CampaignApIs.GeneralApigeneralIndividualRankingGET /General/IndividualRanking用户个人排名
CampaignApIs.GeneralApigeneralPostRankingPOST /General/PostRanking新增/更新得分
CampaignApIs.GeneralApigeneralRankingGET /General/GetRanking排行榜
CampaignApIs.GeneralApigeneralSendSmsPOST /General/SendSms发送短信 (服务商:https://sendcloud.sohu.com)
CampaignApIs.GeneralApigeneralUploadImagePOST /General/UploadImage上传照片
CampaignApIs.GeneralApigeneralVerifyPhonePOST /General/VerifyPhone验证手机号
CampaignApIs.WechatApiwechatAccessTokenGET /Wechat/AccessToken获取微信 Access Token
CampaignApIs.WechatApiwechatGetUserInfoGET /Wechat/GetUserInfo用户信息
CampaignApIs.WechatApiwechatHeaderImagePOST /Wechat/HeaderImage下载微信头像
CampaignApIs.WechatApiwechatMiniProgramLoginGET /Wechat/MiniProgramLogin登录微信小程序
CampaignApIs.WechatApiwechatMiniProgramSessionGET /Wechat/MiniProgramSession解码微信小程序信息
CampaignApIs.WechatApiwechatShareSignatureGET /Wechat/ShareSignature朋友圈分享签名

Documentation for Models

Documentation for Authorization

AccessToken

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

OAuth2

SubscriptionKey

  • Type: API key
  • API key parameter name: Ocp-Apim-Subscription-Key
  • Location: HTTP header
0.0.34

6 years ago