1.1.1 • Published 2 years ago

athena_management_apis v1.1.1

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

athena_management_apis

AthenaManagementApis - JavaScript client for athena_management_apis 后台管理系统 APIs This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0-SNAPSHOT
  • Package version: 1.0.0-SNAPSHOT
  • Build package: org.openapitools.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 athena_management_apis --save

Finally, you need to build the module:

npm run build
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

To use the link you just defined in your project, switch to the directory you want to use your athena_management_apis from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

Finally, you need to build the module:

npm run build

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 AthenaManagementApis = require('athena_management_apis');


var api = new AthenaManagementApis.AICreationApi()
var opts = {
  'createArticleRequest': new AthenaManagementApis.CreateArticleRequest() // {CreateArticleRequest} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createArticle(opts, callback);

Documentation for API Endpoints

All URIs are relative to http://localhost:8080/api/v1

ClassMethodHTTP requestDescription
AthenaManagementApis.AICreationApicreateArticlePOST /articles创建模板Article
AthenaManagementApis.AICreationApicreateTemplatePOST /templates创建智能文案模板
AthenaManagementApis.AICreationApideleteArticleDELETE /articles/{id}删除相关的Article文案模板
AthenaManagementApis.AICreationApideleteTemplateDELETE /templates/{id}删除相关的模板
AthenaManagementApis.AICreationApigetArticleGET /articles/{id}查询自动生成文章的详情
AthenaManagementApis.AICreationApigetTemplateGET /templates/{id}查询创作模板详情
AthenaManagementApis.AICreationApigetWritingGET /writings/{id}查询writing的详情
AthenaManagementApis.AICreationApilistArticlesGET /articles根据用户电话号码查询、标题查询生成的文章列表或者导出csv文件
AthenaManagementApis.AICreationApilistTemplatesGET /templates根据类型、状态查询模板
AthenaManagementApis.AICreationApilistWritingsGET /writings根据用户Id,模板类型,状态,利益点,品牌名,品类,产品名,时间范围查询writing列表,根据format参数选择返回数据的类型
AthenaManagementApis.AICreationApiupdateArticlePUT /articles/{id}更新模板自动生成文案的详情
AthenaManagementApis.AICreationApiupdateTemplatePUT /templates/{id}修改创作模板内容
AthenaManagementApis.AICreationApiupdateWritingPUT /writings/{id}更新writing的内容
AthenaManagementApis.AccountApideletePlanDELETE /plans/{id}根据账户套餐id删除账户套餐
AthenaManagementApis.AccountApigetAccountGET /accounts/{id}查询用户详细信息
AthenaManagementApis.AccountApigetAccountAvailablePlansGET /accounts/{id}/plans查询用户可用的套餐
AthenaManagementApis.AccountApilistAccountsGET /accounts根据电话号码、用户名查询用户列表
AthenaManagementApis.AccountApiupdateAccountPUT /accounts/{id}修改用户信息
AthenaManagementApis.AnalysisApigetAnalysisGET /analyses/{id}查询分析记录的详情
AthenaManagementApis.AnalysisApilistAnalysesGET /analyses根据用户号码、平台、报告名称查询分析记录
AthenaManagementApis.CollectionApigetCollectionGET /collections/{id}查询内容包的详情
AthenaManagementApis.CollectionApilistCollectionsGET /collections根据用户电话、平台、关键词查询内容包列表
AthenaManagementApis.OrderApigetOrderGET /orders/{id}根据id查询订单
AthenaManagementApis.OrderApilistOrdersGET /orders根据用户Id、会员套餐类型(服务应用类型,会员套餐级别,平台)、订单状态、创建时间查询账户订单列表
AthenaManagementApis.PlanApicreatePlanPOST /plans创建新的账号套餐
AthenaManagementApis.PlanApigetPlanGET /plans/{id}根据账户套餐id查询账户套餐
AthenaManagementApis.PlanApilistPlansGET /plans根据用户Id、状态、套餐类型(服务应用类型,会员套餐级别,平台)、购买时间查询账户套餐列表
AthenaManagementApis.PlanApiupdatePlanPUT /plans/{id}更新账户套餐
AthenaManagementApis.TierApicreateTierPOST /tiers创建会员套餐
AthenaManagementApis.TierApideleteTierDELETE /tiers/{id}删除会员套餐
AthenaManagementApis.TierApigetTierGET /tiers/{id}根据id查询会员套餐
AthenaManagementApis.TierApilistTiersGET /tiers根据application、平台、会员套餐级别查询会员套餐列表
AthenaManagementApis.TierApiupdateTierPUT /tiers/{id}更新会员套餐

Documentation for Models

Documentation for Authorization

ApiKeyAuth

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

BearerAuth

  • Type: Bearer authentication (Bearer)
1.1.1

2 years ago

1.1.0

2 years ago

1.0.0-11

2 years ago

1.0.0-9

2 years ago

1.0.0-8

2 years ago

1.0.0-10

2 years ago

1.0.0-7

2 years ago

1.0.0-6

2 years ago

1.0.0-5

2 years ago

1.0.0-4

2 years ago

1.0.0-3

2 years ago

1.0.0-2

2 years ago

1.0.0-1

2 years ago

1.0.0-SNAPSHOT

2 years ago