Socket
Socket
Sign inDemoInstall

queen-lora-pro

Package Overview
Dependencies
118
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    queen-lora-pro

The_SDK_allows_you_to_receive_and_send_messages_through_your_WhatsApp_account___Sign_up_now_https__app_chat_api_com_The_Chat_API_is_based_on_the_WhatsApp_WEB_protocol_and_excludes_the_banboth_when_using_libraries_from_mgp25_and_the_like__Despite_this_your


Version published
Weekly downloads
1
decreased by-87.5%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Queen-Lora-pro

Node.js Package
Node - JavaScript client for Queen-Lora-pro The SDK allows you to receive and send messages through your WhatsApp account. Sign up now

TheChat API is based on the WhatsApp WEB protocol and excludes the ban both when using libraries from mgp25 and the like. Despite this, your account can be banned by anti-spam system WhatsApp after several clicking the "block" button. This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • 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 Queen-Lora-pro --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 Queen-Lora-pro 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 Node = require('Queen-Lora-pro');

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

var api = new Node.Class1InstanceApi()
api.expiry().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://api.chat-api.com

ClassMethodHTTP requestDescription
Node.Class1InstanceApiexpiryPOST /expiryUpdates the QR code after its expired
Node.Class1InstanceApigetQRCodeGET /qr_codeDirect link to QR-code in the form of an image, not base64.
Node.Class1InstanceApigetSettingsGET /settingsGet settings
Node.Class1InstanceApigetStatusGET /statusGet the account status and QR code for authorization.
Node.Class1InstanceApilogoutPOST /logoutLogout from WhatsApp Web to get new QR code.
Node.Class1InstanceApirebootPOST /rebootReboot your whatsapp instance.
Node.Class1InstanceApiretryPOST /retryRepeat the manual synchronization attempt with the device
Node.Class1InstanceApisetSettingsPOST /settingsSet settings
Node.Class1InstanceApitakeoverPOST /takeoverReturns the active session if the device has connected another instance of Web WhatsApp
Node.Class2MessagesApiforwardMessagePOST /forwardMessageForwarding messages to a new or existing chat.
Node.Class2MessagesApigetMessagesGET /messagesGet a list of messages.
Node.Class2MessagesApisendContactPOST /sendContactSending a contact or contact list to a new or existing chat.
Node.Class2MessagesApisendFilePOST /sendFileSend a file to a new or existing chat.
Node.Class2MessagesApisendLinkPOST /sendLinkSend text with link and link's preview to a new or existing chat.
Node.Class2MessagesApisendLocationPOST /sendLocationSending a location to a new or existing chat.
Node.Class2MessagesApisendMessagePOST /sendMessageSend a message to a new or existing chat.
Node.Class2MessagesApisendPTTPOST /sendPTTSend a ptt-audio to a new or existing chat.
Node.Class2MessagesApisendVCardPOST /sendVCardSending a vcard to a new or existing chat.
Node.Class3ChatsApiaddGroupParticipantPOST /addGroupParticipantAdding participant to a group
Node.Class3ChatsApidemoteGroupParticipantPOST /demoteGroupParticipantDemote group participant
Node.Class3ChatsApigetChatsGET /dialogsGet the chat list.
Node.Class3ChatsApigroupPOST /groupCreates a group and sends the message to the created group.
Node.Class3ChatsApipromoteGroupParticipantPOST /promoteGroupParticipantMake participant in the group an administrator
Node.Class3ChatsApireadChatPOST /readChatOpen chat for reading messages
Node.Class3ChatsApiremoveGroupParticipantPOST /removeGroupParticipantRemove participant from a group
Node.Class4WebhooksApisetWebhookPOST /webhookSets the URL for receiving webhook
Node.Class5QueuesApiclearActionsQueuePOST /clearActionsQueueClear outbound actions queue.
Node.Class5QueuesApiclearMessagesQueuePOST /clearMessagesQueueClear outbound messages queue.
Node.Class5QueuesApishowActionsQueueGET /showActionsQueueGet outbound messages queue.
Node.Class5QueuesApishowMessagesQueueGET /showMessagesQueueGet outbound messages queue.
Node.Class6BanApibanTestPOST /banTestTest ban settings
Node.Class6BanApigetBanSettingsGET /banSettingsGet settings
Node.Class6BanApisetBanSettingsPOST /banSettingsSet settings
Node.Class7TestingApiinstanceStatusesGET /instanceStatusesReturns instance status changes history.
Node.Class7TestingApiwebhookStatusesGET /webhookStatusReturns webhook status for message.

Documentation for Models

Documentation for Authorization

instanceId

  • Type: API key
  • API key parameter name: instanceId
  • Location: URL query string

token

  • Type: API key
  • API key parameter name: token
  • Location: URL query string

Keywords

FAQs

Last updated on 03 Oct 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc