# campaign_ap_is

> ERROR_UNKNOWN

Latest version **0.0.34** (published 2018-06-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install campaign_ap_is
pnpm add campaign_ap_is
yarn add campaign_ap_is
bun add campaign_ap_is
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.34 |
| Published | 2018-06-27 |
| First published | 2018-06-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 603.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | jixiuapp1517 |

## Links

- npm: https://www.npmjs.com/package/campaign_ap_is
- npm.io page: https://npm.io/package/campaign_ap_is

## Dependencies (1)

- [superagent](https://npm.io/package/superagent.md) 3.5.2

## Recent versions

- 0.0.34 (latest) — 2018-06-27

## README

# 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](https://github.com/swagger-api/swagger-codegen) project:

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

## Installation

### For [Node.js](https://nodejs.org/)

#### npm

To publish the library as a [npm](https://www.npmjs.com/),
please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages).

Then install it via:

```shell
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:

```shell
npm install
```

Next, [link](https://docs.npmjs.com/cli/link) it globally in npm with the following, also from `JAVASCRIPT_CLIENT_DIR`:

```shell
npm link
```

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

```shell
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:

```shell
    npm install YOUR_USERNAME/campaign_ap_is --save
```

### For browser

The library also works in the browser environment via npm and [browserify](http://browserify.org/). 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):

```shell
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:

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

## Getting Started

Please follow the [installation](#installation) instruction and execute the following JS code:

```javascript
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*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*CampaignApIs.AlipayApi* | [**alipaySubmit**](docs/AlipayApi.md#alipaySubmit) | **POST** /Alipay/Submit | 支付宝提交页
*CampaignApIs.CrowdFundApi* | [**crowdFundChangeStatus**](docs/CrowdFundApi.md#crowdFundChangeStatus) | **POST** /CrowdFund/ChangeStatus | 应援 - 更新状态
*CampaignApIs.CrowdFundApi* | [**crowdFundDetail**](docs/CrowdFundApi.md#crowdFundDetail) | **GET** /CrowdFund/Detail | 应援 - 详情
*CampaignApIs.CrowdFundApi* | [**crowdFundEditProof**](docs/CrowdFundApi.md#crowdFundEditProof) | **PUT** /CrowdFund/EditProof | 修改凭证
*CampaignApIs.CrowdFundApi* | [**crowdFundGetRule**](docs/CrowdFundApi.md#crowdFundGetRule) | **GET** /CrowdFund/GetRule | 规则
*CampaignApIs.CrowdFundApi* | [**crowdFundList**](docs/CrowdFundApi.md#crowdFundList) | **GET** /CrowdFund/List | 应援 - 总列表
*CampaignApIs.CrowdFundApi* | [**crowdFundOrganizeList**](docs/CrowdFundApi.md#crowdFundOrganizeList) | **GET** /CrowdFund/OrganizeList | 应援 - 我发起列表
*CampaignApIs.CrowdFundApi* | [**crowdFundOrganizer**](docs/CrowdFundApi.md#crowdFundOrganizer) | **GET** /CrowdFund/Organizer | 应援 - 发起者详情
*CampaignApIs.CrowdFundApi* | [**crowdFundParticipateList**](docs/CrowdFundApi.md#crowdFundParticipateList) | **GET** /CrowdFund/ParticipateList | 应援 - 我参与列表
*CampaignApIs.CrowdFundApi* | [**crowdFundPledge**](docs/CrowdFundApi.md#crowdFundPledge) | **POST** /CrowdFund/Pledge | 应援 - 捐款 - 新增
*CampaignApIs.CrowdFundApi* | [**crowdFundPledgeRankingList**](docs/CrowdFundApi.md#crowdFundPledgeRankingList) | **GET** /CrowdFund/PledgeRankingList | 应援 - 捐款 - 排行榜
*CampaignApIs.CrowdFundApi* | [**crowdFundPledgeStatus**](docs/CrowdFundApi.md#crowdFundPledgeStatus) | **GET** /CrowdFund/PledgeStatus | 应援 - 捐款 - 状态
*CampaignApIs.CrowdFundApi* | [**crowdFundPledges**](docs/CrowdFundApi.md#crowdFundPledges) | **GET** /CrowdFund/Pledges | 应援 - 捐款 - 列表
*CampaignApIs.CrowdFundApi* | [**crowdFundPost**](docs/CrowdFundApi.md#crowdFundPost) | **POST** /CrowdFund/Post | 应援 - 新增
*CampaignApIs.CrowdFundApi* | [**crowdFundProof**](docs/CrowdFundApi.md#crowdFundProof) | **POST** /CrowdFund/Proof | 新增凭证
*CampaignApIs.CrowdFundApi* | [**crowdFundPut**](docs/CrowdFundApi.md#crowdFundPut) | **PUT** /CrowdFund/Put | 应援 - 修改
*CampaignApIs.CrowdFundApi* | [**crowdFundReport**](docs/CrowdFundApi.md#crowdFundReport) | **POST** /CrowdFund/Report | 新增举报
*CampaignApIs.CrowdFundApi* | [**crowdFundReportList**](docs/CrowdFundApi.md#crowdFundReportList) | **GET** /CrowdFund/ReportList | 举报列表
*CampaignApIs.CrowdFundApi* | [**crowdFundRule**](docs/CrowdFundApi.md#crowdFundRule) | **POST** /CrowdFund/Rule | 新增规则
*CampaignApIs.CrowdFundApi* | [**crowdFundSetPledgeStatus**](docs/CrowdFundApi.md#crowdFundSetPledgeStatus) | **PUT** /CrowdFund/SetPledgeStatusAsync | 应援 - 捐款 - 更新状态
*CampaignApIs.CrowdFundApi* | [**crowdFundShareCount**](docs/CrowdFundApi.md#crowdFundShareCount) | **POST** /CrowdFund/ShareCount | 分享数据
*CampaignApIs.CrowdFundApi* | [**crowdFundViewCount**](docs/CrowdFundApi.md#crowdFundViewCount) | **POST** /CrowdFund/ViewCount | 浏览数据
*CampaignApIs.CrowdFundApi* | [**crowdFundWithdraw**](docs/CrowdFundApi.md#crowdFundWithdraw) | **POST** /CrowdFund/Withdraw | 应援 - 发起收款
*CampaignApIs.DrawingApi* | [**drawingAnswer**](docs/DrawingApi.md#drawingAnswer) | **POST** /Drawing/Answer | 
*CampaignApIs.DrawingApi* | [**drawingAnswerList**](docs/DrawingApi.md#drawingAnswerList) | **GET** /Drawing/AnswerList | 
*CampaignApIs.DrawingApi* | [**drawingDrawingList**](docs/DrawingApi.md#drawingDrawingList) | **GET** /Drawing/DrawingList | 
*CampaignApIs.DrawingApi* | [**drawingPost**](docs/DrawingApi.md#drawingPost) | **POST** /Drawing/Post | 
*CampaignApIs.GameApi* | [**gameAddImage**](docs/GameApi.md#gameAddImage) | **POST** /Game/AddImage | add image to instance
*CampaignApIs.GameApi* | [**gameCodes**](docs/GameApi.md#gameCodes) | **GET** /Game/Codes | 游戏 - 错误码表
*CampaignApIs.GameApi* | [**gameDelete**](docs/GameApi.md#gameDelete) | **DELETE** /Game/Delete | 游戏 - 删除
*CampaignApIs.GameApi* | [**gameDeleteImage**](docs/GameApi.md#gameDeleteImage) | **DELETE** /Game/DeleteImage | Delete game image
*CampaignApIs.GameApi* | [**gameDeleteInstance**](docs/GameApi.md#gameDeleteInstance) | **DELETE** /Game/DeleteInstance | Delete game instance
*CampaignApIs.GameApi* | [**gameDetail**](docs/GameApi.md#gameDetail) | **GET** /Game/Detail | 游戏 - 详情
*CampaignApIs.GameApi* | [**gameEditInstance**](docs/GameApi.md#gameEditInstance) | **PUT** /Game/EditInstance | Edit game instance
*CampaignApIs.GameApi* | [**gameGet**](docs/GameApi.md#gameGet) | **GET** /Game/Get | 游戏 - 列表
*CampaignApIs.GameApi* | [**gameInstance**](docs/GameApi.md#gameInstance) | **GET** /Game/Instance | Get game instance
*CampaignApIs.GameApi* | [**gameInstances**](docs/GameApi.md#gameInstances) | **GET** /Game/Instances | Get game instances
*CampaignApIs.GameApi* | [**gamePost**](docs/GameApi.md#gamePost) | **POST** /Game/Post | 游戏 - 创建
*CampaignApIs.GameApi* | [**gamePostInstance**](docs/GameApi.md#gamePostInstance) | **POST** /Game/PostInstance | Create new game instance
*CampaignApIs.GameApi* | [**gamePut**](docs/GameApi.md#gamePut) | **PUT** /Game/Put | 游戏 - 更新
*CampaignApIs.GeneralApi* | [**generalCheckIn**](docs/GeneralApi.md#generalCheckIn) | **POST** /General/CheckIn | 地点打卡
*CampaignApIs.GeneralApi* | [**generalCheckInRanking**](docs/GeneralApi.md#generalCheckInRanking) | **GET** /General/CheckInRanking | 打卡排名
*CampaignApIs.GeneralApi* | [**generalIndividualRanking**](docs/GeneralApi.md#generalIndividualRanking) | **GET** /General/IndividualRanking | 用户个人排名
*CampaignApIs.GeneralApi* | [**generalPostRanking**](docs/GeneralApi.md#generalPostRanking) | **POST** /General/PostRanking | 新增/更新得分
*CampaignApIs.GeneralApi* | [**generalRanking**](docs/GeneralApi.md#generalRanking) | **GET** /General/GetRanking | 排行榜
*CampaignApIs.GeneralApi* | [**generalSendSms**](docs/GeneralApi.md#generalSendSms) | **POST** /General/SendSms | 发送短信  （服务商：https://sendcloud.sohu.com）
*CampaignApIs.GeneralApi* | [**generalUploadImage**](docs/GeneralApi.md#generalUploadImage) | **POST** /General/UploadImage | 上传照片
*CampaignApIs.GeneralApi* | [**generalVerifyPhone**](docs/GeneralApi.md#generalVerifyPhone) | **POST** /General/VerifyPhone | 验证手机号
*CampaignApIs.WechatApi* | [**wechatAccessToken**](docs/WechatApi.md#wechatAccessToken) | **GET** /Wechat/AccessToken | 获取微信 Access Token
*CampaignApIs.WechatApi* | [**wechatGetUserInfo**](docs/WechatApi.md#wechatGetUserInfo) | **GET** /Wechat/GetUserInfo | 用户信息
*CampaignApIs.WechatApi* | [**wechatHeaderImage**](docs/WechatApi.md#wechatHeaderImage) | **POST** /Wechat/HeaderImage | 下载微信头像
*CampaignApIs.WechatApi* | [**wechatMiniProgramLogin**](docs/WechatApi.md#wechatMiniProgramLogin) | **GET** /Wechat/MiniProgramLogin | 登录微信小程序
*CampaignApIs.WechatApi* | [**wechatMiniProgramSession**](docs/WechatApi.md#wechatMiniProgramSession) | **GET** /Wechat/MiniProgramSession | 解码微信小程序信息
*CampaignApIs.WechatApi* | [**wechatShareSignature**](docs/WechatApi.md#wechatShareSignature) | **GET** /Wechat/ShareSignature | 朋友圈分享签名


## Documentation for Models

 - [CampaignApIs.ApiResultBoolean](docs/ApiResultBoolean.md)
 - [CampaignApIs.ApiResultCheckinModel](docs/ApiResultCheckinModel.md)
 - [CampaignApIs.ApiResultCrowdFundModel](docs/ApiResultCrowdFundModel.md)
 - [CampaignApIs.ApiResultCrowdFundRule](docs/ApiResultCrowdFundRule.md)
 - [CampaignApIs.ApiResultGameInstance](docs/ApiResultGameInstance.md)
 - [CampaignApIs.ApiResultGameList](docs/ApiResultGameList.md)
 - [CampaignApIs.ApiResultMiniProgramSession](docs/ApiResultMiniProgramSession.md)
 - [CampaignApIs.ApiResultOrganizerModel](docs/ApiResultOrganizerModel.md)
 - [CampaignApIs.ApiResultString](docs/ApiResultString.md)
 - [CampaignApIs.ApiResultUserInfo](docs/ApiResultUserInfo.md)
 - [CampaignApIs.ApiResultWechatAccessToken](docs/ApiResultWechatAccessToken.md)
 - [CampaignApIs.ApiResultWechatCustomShare](docs/ApiResultWechatCustomShare.md)
 - [CampaignApIs.CheckinModel](docs/CheckinModel.md)
 - [CampaignApIs.CrowdFundModel](docs/CrowdFundModel.md)
 - [CampaignApIs.CrowdFundReport](docs/CrowdFundReport.md)
 - [CampaignApIs.CrowdFundRule](docs/CrowdFundRule.md)
 - [CampaignApIs.ErrorCodeModel](docs/ErrorCodeModel.md)
 - [CampaignApIs.GameInstance](docs/GameInstance.md)
 - [CampaignApIs.GameList](docs/GameList.md)
 - [CampaignApIs.GetAnswerModel](docs/GetAnswerModel.md)
 - [CampaignApIs.GetDrawingModel](docs/GetDrawingModel.md)
 - [CampaignApIs.MiniProgramSession](docs/MiniProgramSession.md)
 - [CampaignApIs.OrganizerModel](docs/OrganizerModel.md)
 - [CampaignApIs.PagingResultCrowdFundModel](docs/PagingResultCrowdFundModel.md)
 - [CampaignApIs.PagingResultCrowdFundReport](docs/PagingResultCrowdFundReport.md)
 - [CampaignApIs.PagingResultGameInstance](docs/PagingResultGameInstance.md)
 - [CampaignApIs.PagingResultGameList](docs/PagingResultGameList.md)
 - [CampaignApIs.PagingResultGetAnswerModel](docs/PagingResultGetAnswerModel.md)
 - [CampaignApIs.PagingResultGetDrawingModel](docs/PagingResultGetDrawingModel.md)
 - [CampaignApIs.PagingResultPledgeRankModel](docs/PagingResultPledgeRankModel.md)
 - [CampaignApIs.PagingResultRankingModel](docs/PagingResultRankingModel.md)
 - [CampaignApIs.PledgeRankModel](docs/PledgeRankModel.md)
 - [CampaignApIs.PostAnswerModel](docs/PostAnswerModel.md)
 - [CampaignApIs.PostDrawingModel](docs/PostDrawingModel.md)
 - [CampaignApIs.ProofModel](docs/ProofModel.md)
 - [CampaignApIs.RankingModel](docs/RankingModel.md)
 - [CampaignApIs.SendSmsRequest](docs/SendSmsRequest.md)
 - [CampaignApIs.SubmitModel](docs/SubmitModel.md)
 - [CampaignApIs.UserInfo](docs/UserInfo.md)
 - [CampaignApIs.VerifyPhoneRequest](docs/VerifyPhoneRequest.md)
 - [CampaignApIs.WechatAccessToken](docs/WechatAccessToken.md)
 - [CampaignApIs.WechatCustomShare](docs/WechatCustomShare.md)


## Documentation for Authorization


### AccessToken

- **Type**: API key
- **API key parameter name**: Authorization
- **Location**: HTTP header

### OAuth2

- **Type**: OAuth
- **Flow**: accessCode
- **Authorization URL**: https://ids.jixiucloud.cn/connect/authorize
- **Scopes**: 
  - openid: 用户标识
  - profile: 用户资料
  - campaign.apis.all: 所有接口权限

### SubscriptionKey

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

---
_Source: https://npm.io/package/campaign_ap_is · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
