8a1835e3ad
Api fix HandleDisseminatePreEncryptedMsg
...
- PoW target formula correction
- correctly decode expiration time / TTL, object type and destination
stream
2023-01-06 15:57:29 +08:00
5e2dcd70af
Fix docstrings in the api module
2022-11-22 12:41:21 +02:00
813492291816
e6ecaa5e7d
Add API endpoint to return inbound and outbound connections
2022-11-05 02:26:02 -04:00
20ce69b337
Add enableAddress API command and a check for sending from disabled address
2022-07-26 03:28:05 +03:00
e12e9c4155
Add exception type in HandleSendMessage and HandleSendBroadcast
...
and API error 14 in HandleSendBroadcast.
2022-07-26 03:28:05 +03:00
93c283a467
Place obvious bandit nosec comments
2022-05-02 18:00:55 +03:00
a5773999fe
Refactor BMConfigParser as a Module variable
2022-02-15 17:12:43 +05:30
Marius Kjærstad
584ea0f6a0
Changed copyright year to 2022
2022-01-17 18:11:23 +01:00
ef2d005957
Fix #1898
2021-12-11 16:32:54 +02:00
5771f21cfb
Added undeleteMessage function in helper_inbox & respective method in api.py and separated inbox & trash testcases
2021-12-02 19:11:38 +05:30
56ec5b8a03
Created testmode decorator & routed command decorator through it
2021-12-02 19:11:36 +05:30
21cb4e516d
Added testmode check for HandleclearUISignalQueue & HandleGetStatusBar functions, replaced sample_inbox_msg_receiver_address by sample_deterministic_addr4
2021-12-02 19:11:36 +05:30
9a194f0bae
Added statusBar, getAllInboxMessages, getAllInboxMessageIds, getInboxMessageById, getInboxMessagesByReceiver, trashMessage, trashInboxMessage & addSubscription, methods testcases & updated related functions
2021-12-02 19:11:35 +05:30
7702b33ac2
Updated code quality replaced unicode by decode function in api.py
2021-09-01 13:31:35 +05:30
0becc5bdeb
Updated code quality binary operator based changes in api.py
2021-08-11 21:26:15 +05:30
813492291816
a0e1c0041f
Add missing TTL to API sendMessage
2021-01-07 19:51:12 -05:00
navjot
4681d37377
validate address in insert method and improve test cases
2020-11-21 13:53:10 +05:30
navjot
61f7f32dfc
removed unused code and return ackdata from inset method insted of msgid
2020-11-21 13:53:10 +05:30
navjot
beaece254c
omitted unused code and optimized it
2020-11-21 13:53:10 +05:30
navjot
89254064f6
fixed default variables in insert method
2020-11-21 13:53:10 +05:30
navjot
a9e9f25b5d
change helper_sent.insert methods
2020-11-21 13:53:10 +05:30
813492291816
601158f6fb
add pendingDownload to return of API clientStatus
2020-11-21 01:00:11 +00:00
6b65113bb4
Added missing msgid in HandleGetInboxMessageById() query
2020-10-04 17:24:45 +03:00
380530c839
Experimental APIError codes table
2020-09-14 13:11:43 +03:00
ef5593b3d5
Formatted lines for PEP8, handled pylint warnings, added docstrings
2020-09-14 13:11:43 +03:00
3a8e842e60
Use encodingType arg in sendMessage and sendBroadcast API commands
2020-09-14 13:11:43 +03:00
5b07d2de30
httplib status codes constants in response
2020-09-14 13:11:43 +03:00
efff8f95ba
Prefix based command filter
2020-09-14 13:11:42 +03:00
06033ed96e
Fixed response for bad username or password and content-type header
...
(closes #244 )
2020-09-14 13:11:42 +03:00
726986c1eb
Implemented JSON-RPC apivariant
2020-09-14 13:11:42 +03:00
6a089e0f88
Decoupled SimpleXMLRPCRequestHandler subclass
...
and added simple introspection
2020-09-14 13:11:42 +03:00
f4bf3bac2a
Used defusedxml to protect against XML vulnerabilities
2020-09-14 13:11:42 +03:00
2142888cbe
Inherited APIError from xmlrpclib.Fault.
...
From now on any errors are raised.
2020-09-14 13:11:42 +03:00
25abf66f1d
Reused _verifyAddress() in HandleDecodeAddress()
2020-09-14 13:11:41 +03:00
5925781b9a
Proper message for APIError 0
2020-09-14 13:11:41 +03:00
7cafe402be
Methods to form a dictionary for inbox and sent messages
2020-09-14 13:11:41 +03:00
45b0659e4c
Refactoring the API with metaclass and decorator
2020-09-14 13:11:35 +03:00
185ad66ea5
Moved most of variables from shared elsewhere (mostly to state)
2020-05-05 17:27:38 +03:00
lakshyacis
6f35da4096
Imported packages sequencing and formatting
2020-01-30 12:14:40 +05:30
lakshyacis
3211fca953
formatting and shorten line length
2020-01-22 15:55:26 +05:30
sandakersmann
9119507b03
Changed copyright year to 2020
2019-12-27 18:23:02 +01:00
bbdbca253b
Added warnings about changing port settings in api and network.tcp
2019-10-18 09:35:31 +03:00
7a89109fc9
New logging approach in order to reduce imports from submodules
...
and use logging without risk of circular import. Only subpackage
that imports from debug is bitmessageqt - because it also uses
debug.resetLogging().
Instead of from debug import logger is now recommended to use:
import logging
logger = logging.getLogger('default')
All subclasses of StoppableThread now have a logger attribute.
All threading related stuff except for set_thread_name()
was moved from helper_threading to network.threads.
Fixed two my mistakes from previous edit of debug in a1a8d3a:
- logger.handlers is not dict but iterable
- sys.excepthook should be set unconditionally
2019-10-18 09:35:24 +03:00
b5df242141
Fixed badly formatted docstrings and some wrong text
2019-10-18 01:06:02 +03:00
ad2a2b3fb4
Inherit helper_threading.StoppableThread from threading.Thread
...
and do random.seed() in its __init__
2019-08-06 18:07:19 +03:00
9992626438
Fix API command 'shutdown'
2019-08-01 12:04:13 +03:00
Marius Kjærstad
e0efb7fd2f
Merge branch 'v0.6' into v0.6
2019-03-23 15:14:56 +01:00
7e1ee815b9
Rerender more widgets when deleting address by API
2019-03-05 18:47:37 +02:00
sandakersmann
8924d4be5c
Changed copyright year to 2019
2019-02-05 15:16:30 +01:00
58bc170bda
Fix #1383 - formatting artifact in 7ed459b
2018-11-01 16:53:53 +02:00