0.1.0 • Published 5 years ago

minarai-cli-client-saas v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

minarai-cli-client-saas

CLI client program for interact to minarai.

Install

npm install -g Nextremer/minarai-cli-client-saas

Usage

minarai-client-saas --aid xxxxxxxxxxxxxxxx --asc xxxxxxxxxxxxxxxx

Options

  • --aid: minarai application ID. It's generally used in authentication.
  • --asc: minarai application secret. It's generally used in authentication.
  • --cid: client ID.
  • --uid: user ID.
  • --did: device ID.
  • --lang: language.
  • --url: URL used to connect with Socket.IO.
  • --opt: Options for Socket.IO.
  • --ver: minarai API version.
  • --type: response display type. default is raw.

Use config file

If config.json is in current directory, the client will load at launching. config.json may be used to specify frequently used options.

{
  "applicationId": "xxxxxxxxxxxxxxxx",
  "applicationSecret": "xxxxxxxxxxxxxxxx",
  "clientId": "xxxx",
  "userId": "xxxx",
  "deviceId": "xxxx",
  "lang": "xx-xx",
  "socketIORootURL": "https://xxxx.xxxx.xxxx",
  "socketIOOptions": "{}",
  "apiVersion": "xx",
  "displayType": "cschat"
}