1.1.1 • Published 6 years ago

api_of_elsa_panel v1.1.1

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

api_of_elsa_panel

ApiOfElsaPanel - JavaScript client for api_of_elsa_panel Restful api. This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.1.1
  • Package version: 1.1.1
  • Build package: io.swagger.codegen.languages.JavascriptClientCodegen For more information, please visit https://chenxl.cn/blog

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 api_of_elsa_panel --save

git

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

    npm install GIT_USER_ID/GIT_REPO_ID --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):

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 ApiOfElsaPanel = require('api_of_elsa_panel');

var defaultClient = ApiOfElsaPanel.ApiClient.instance;

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

var api = new ApiOfElsaPanel.AlbumPanelApi()

var id = "id_example"; // {String} id

api.blockAlbum(id).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Documentation for API Endpoints

All URIs are relative to https://localhost

ClassMethodHTTP requestDescription
ApiOfElsaPanel.AlbumPanelApiblockAlbumPOST /panel/v1/album/{id}/action/block禁用指定相册
ApiOfElsaPanel.AlbumPanelApilikesOfAlbumGET /panel/v1/album/{id}/like获取指定相册的点赞记录
ApiOfElsaPanel.AlbumPanelApilistAlbumGET /panel/v1/album相册列表
ApiOfElsaPanel.AlbumPanelApisetAlbumInVisiblePOST /panel/v1/album/{id}/action/invisible取消公开指定相册
ApiOfElsaPanel.AlbumPanelApisetAlbumVisiblePOST /panel/v1/album/{id}/action/visible公开指定相册
ApiOfElsaPanel.AlbumPanelApishowAlbumGET /panel/v1/album/{id}获取指定相册信息
ApiOfElsaPanel.AlbumPanelApiunblockAlbumPOST /panel/v1/album/{id}/action/unblock取消禁用指定相册
ApiOfElsaPanel.AppVersionPanelApicreateAppVersionPOST /panel/v1/appVersion创建版本
ApiOfElsaPanel.AppVersionPanelApidisableAppVersionPOST /panel/v1/appVersion/{id}/disable禁用指定APP版本
ApiOfElsaPanel.AppVersionPanelApienableAppVersionPOST /panel/v1/appVersion/{id}/enable启用指定APP版本信息
ApiOfElsaPanel.AppVersionPanelApilistAppVersionGET /panel/v1/appVersionAPP版本列表
ApiOfElsaPanel.AppVersionPanelApishowAppVersionGET /panel/v1/appVersion/{id}获取指定APP版本信息
ApiOfElsaPanel.AuthPanelApibyUsernameAndPasswordPOST /panel/v1/auth用户名密码登录
ApiOfElsaPanel.BillPanelApilistBillGET /panel/v1/bill账单列表
ApiOfElsaPanel.BillPanelApishowBillGET /panel/v1/bill/{id}获取指定账单信息
ApiOfElsaPanel.FeedbackPanelApilistFeedbackGET /panel/v1/feedback反馈列表
ApiOfElsaPanel.FolkPanelApilistFolkGET /panel/v1/folk用户列表
ApiOfElsaPanel.FolkPanelApishowFolkGET /panel/v1/folk/{id}获取指定用户信息
ApiOfElsaPanel.FontPanelApicreateFontPOST /panel/v1/font创建字体
ApiOfElsaPanel.FontPanelApideleteFontPOST /panel/v1/font/{fontId}删除字体
ApiOfElsaPanel.FontPanelApilistFontGET /panel/v1/font字体列表
ApiOfElsaPanel.GorillaPanelApicreateGorillaPOST /panel/v1/gorilla创建管理员
ApiOfElsaPanel.GorillaPanelApilistGorillaGET /panel/v1/gorilla管理员列表
ApiOfElsaPanel.GorillaPanelApimeGET /panel/v1/gorilla/me当前用户信息
ApiOfElsaPanel.MusicPanelApicreateMusicPOST /panel/v1/music创建音乐
ApiOfElsaPanel.MusicPanelApideleteMusicPOST /panel/v1/music/{musicId}删除音乐
ApiOfElsaPanel.MusicPanelApilistMusicGET /panel/v1/music音乐列表
ApiOfElsaPanel.PlanPanelApicreatePlanPOST /panel/v1/plan创建服务计划
ApiOfElsaPanel.PlanPanelApilistPlanGET /panel/v1/plan服务计划列表
ApiOfElsaPanel.PlanPanelApioffPlanPOST /panel/v1/plan/{id}/off下架指定服务计划
ApiOfElsaPanel.PlanPanelApionPlanPOST /panel/v1/plan/{id}/on下架指定服务计划
ApiOfElsaPanel.PlanPanelApishowGET /panel/v1/plan/{id}获取指定服务计划信息
ApiOfElsaPanel.TradePanelApilistTradeGET /panel/v1/trade交易列表
ApiOfElsaPanel.TradePanelApishowTradeGET /panel/v1/trade/{id}获取指定交易信息

Documentation for Models

Documentation for Authorization

apiKey

  • Type: API key
  • API key parameter name: X-Auth-Token
  • Location: HTTP header
1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago