KopeechkaS - wrapper around Kopeechka.store API
-
Name: KopeechkaS
Version: 1.8
Data: KopeechkaS.zip
Source: -.
Do you agree to include your module in BAS: Yes.
Описание: Working with cloud-based inbox email service Kopeechka.store. Not an official module.Changelog:
Ветка для русскоговорящих
https://community.bablosoft.com/topic/19054/kopeechkas-модуль-для-работы-с-почтами-kopeechka-store
Using the same email in multiple threads
At the same time, unnecessary requests are not sent to the server.
All emails data is stored in RAM, you can choose the storage model:local
,global
,resource
.local
- Store locally. This threads emails will not be available to other threads.
global
- Store globally. All threads can access any email data in this storage.
resource
- Store in resource. Same asglobal
model, but a bit slower.
Storage modelsglobal
andresource
cannot be cleared automatically. To avoid memory leaks, it is necessary to close the email.
Thelocal
storage model is cleared automatically when the thread ends.The code is designed to keep error rates to minimum
Several categories of errors are present:
common
,fatal
,ignored
.
Behavior can be reassigned, each error has its own ID.Common
errors - if they occur, theFail
action is called.
Fatal
errors - if they occur, theEnd Script
action is called.
Ignored
errors are ignored.List of common error IDs:
List of fatal error IDs:
List of ignored error IDs:
Strict mode
By default, all actions run in
strict mode
.
This means if anycommon
error occurs, it will call theFail
action, as it should.
However, if you disable strict mode - allcommon
errors will be ignored.
The action will continue to run until a successful result is achieved.
If it was not possible to achieve a successful result within the allotted time,null
will be returned.User-friendly interface
Clear and intuitive, there are descriptions and examples.
Some APIs are combined into one action.
The functionality has been expanded.
The standard colors of the constructor have been slightly changed to match the colors of the service.Built-in debugger
Informative and clear.
Shows queries sent, time metrics in ms, errors text, etc.Configuring requests delivery
Enable/disable SSL usage.
Individual for each action choice of waiting time and interval for sending requests.More
- Work with multiple emails simultaneously, both globally and locally.
- Applying settings globally (for all new threads).
- Internal http client is used.
- Standalone work with no additional dependencies.
List of implemented APIs
- Get email address - https://bit.ly/3myvFtt, https://bit.ly/3Hge6WV
- Get message - https://bit.ly/3JjSdI2
- Close email - https://bit.ly/3JjY9Rq
- Get domains - https://bit.ly/3eqIcuu, https://bit.ly/3pqMkkA
- Get balance - https://bit.ly/3JfllQR
The module is well tested on BAS version 24.3.1.
Version 23.2.2 was also tested. No problems were found, but the functionality of outdated versions is not guaranteed.This module is not official, it is distributed on a non-commercial basis, in "as is" format.
Modification and distribution on a commercial basis are prohibited.
-
For those who will be looking:
You can change the default errors once and for all by editing the file internal/errors.js.
This file contains an object that is a list of other objects:
ru
- Russian error text
en
- English error text
action
- the action to be called for the specified error code
fail
- Fail
die
- End Script
stop
- Don't restart thread (Fail)
instantly
- Finish script instantly (End Script)
-
upd
1.1 - interface links updated
-
upd 1.2
- Setting the maximum time of action execution is placed as a separate field
Time threshold
in the group "Requests delivery".
You can now use variables/resources to set the maximum time.
The API responsible for this has been changed slightly.
For a smooth transition from an earlier version, use theUpdate project actions
action in the drop-down menu at the top left.
Links to previous versions are in the header.
- Setting the maximum time of action execution is placed as a separate field
-
upd 1.3
- Rare bug fixed
-
upd 1.4
- Fixed bug when using variables in requests delivery group
-
upd 1.7
- Fixed a bug that caused the internal result() function to be overridden
-
Just wanted to thank @Sadzurami for spending so much time and effort into making this for all of us. Thanks a ton sir!
Appreciate ya!
-
upd 1.8
-
Added the ability to specify your soft_id when ordering mail. The setting is called "Dev id", located in "Get Email Address" > Options.
-
Fixed a bug when using the local mail storage during mail cancellation (didn't affect anything before, but was fixed).
In addition, the module has a page on github. It will be cool if you put a star on the repository. Thank you.
https://github.com/Sadzurami/KopeechkaS
-
-
Hi there.
Brand new wrapper around kopeechka.store api is available now for nodejs and browsers.
Feel free to use.git
https://github.com/Sadzurami/kopeechka-store.gitnpm
npm install @sadzurami/kopeechka-store
yarn
yarn add @sadzurami/kopeechka-store
CDN
<script src="https://cdn.jsdelivr.net/gh/Sadzurami/kopeechka-store@latest/kopeechka.min.js"></script>