Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
queen-lora-pro
Advanced tools
Readme
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:
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
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
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
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.
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
}
}
]
}
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);
});
All URIs are relative to https://api.chat-api.com
Class | Method | HTTP request | Description |
---|---|---|---|
Node.Class1InstanceApi | expiry | POST /expiry | Updates the QR code after its expired |
Node.Class1InstanceApi | getQRCode | GET /qr_code | Direct link to QR-code in the form of an image, not base64. |
Node.Class1InstanceApi | getSettings | GET /settings | Get settings |
Node.Class1InstanceApi | getStatus | GET /status | Get the account status and QR code for authorization. |
Node.Class1InstanceApi | logout | POST /logout | Logout from WhatsApp Web to get new QR code. |
Node.Class1InstanceApi | reboot | POST /reboot | Reboot your whatsapp instance. |
Node.Class1InstanceApi | retry | POST /retry | Repeat the manual synchronization attempt with the device |
Node.Class1InstanceApi | setSettings | POST /settings | Set settings |
Node.Class1InstanceApi | takeover | POST /takeover | Returns the active session if the device has connected another instance of Web WhatsApp |
Node.Class2MessagesApi | forwardMessage | POST /forwardMessage | Forwarding messages to a new or existing chat. |
Node.Class2MessagesApi | getMessages | GET /messages | Get a list of messages. |
Node.Class2MessagesApi | sendContact | POST /sendContact | Sending a contact or contact list to a new or existing chat. |
Node.Class2MessagesApi | sendFile | POST /sendFile | Send a file to a new or existing chat. |
Node.Class2MessagesApi | sendLink | POST /sendLink | Send text with link and link's preview to a new or existing chat. |
Node.Class2MessagesApi | sendLocation | POST /sendLocation | Sending a location to a new or existing chat. |
Node.Class2MessagesApi | sendMessage | POST /sendMessage | Send a message to a new or existing chat. |
Node.Class2MessagesApi | sendPTT | POST /sendPTT | Send a ptt-audio to a new or existing chat. |
Node.Class2MessagesApi | sendVCard | POST /sendVCard | Sending a vcard to a new or existing chat. |
Node.Class3ChatsApi | addGroupParticipant | POST /addGroupParticipant | Adding participant to a group |
Node.Class3ChatsApi | demoteGroupParticipant | POST /demoteGroupParticipant | Demote group participant |
Node.Class3ChatsApi | getChats | GET /dialogs | Get the chat list. |
Node.Class3ChatsApi | group | POST /group | Creates a group and sends the message to the created group. |
Node.Class3ChatsApi | promoteGroupParticipant | POST /promoteGroupParticipant | Make participant in the group an administrator |
Node.Class3ChatsApi | readChat | POST /readChat | Open chat for reading messages |
Node.Class3ChatsApi | removeGroupParticipant | POST /removeGroupParticipant | Remove participant from a group |
Node.Class4WebhooksApi | setWebhook | POST /webhook | Sets the URL for receiving webhook |
Node.Class5QueuesApi | clearActionsQueue | POST /clearActionsQueue | Clear outbound actions queue. |
Node.Class5QueuesApi | clearMessagesQueue | POST /clearMessagesQueue | Clear outbound messages queue. |
Node.Class5QueuesApi | showActionsQueue | GET /showActionsQueue | Get outbound messages queue. |
Node.Class5QueuesApi | showMessagesQueue | GET /showMessagesQueue | Get outbound messages queue. |
Node.Class6BanApi | banTest | POST /banTest | Test ban settings |
Node.Class6BanApi | getBanSettings | GET /banSettings | Get settings |
Node.Class6BanApi | setBanSettings | POST /banSettings | Set settings |
Node.Class7TestingApi | instanceStatuses | GET /instanceStatuses | Returns instance status changes history. |
Node.Class7TestingApi | webhookStatuses | GET /webhookStatus | Returns webhook status for message. |
FAQs
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
The npm package queen-lora-pro receives a total of 1 weekly downloads. As such, queen-lora-pro popularity was classified as not popular.
We found that queen-lora-pro demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.