... | ... | @@ -34,14 +34,14 @@ Usage: datovka [ options ] [ zfo-file ] |
|
|
* **--load-conf _conf_** - On start load *conf* file.
|
|
|
* **--save-conf _conf_** - On stop save *conf* file.
|
|
|
|
|
|
* **--connect _string_of_parameters_** - Logint into databox. It is mandatory for following services. If Datovka already knows the login information for the related account then the supplied information will be ignored.
|
|
|
* **--login _string_of_parameters_** - Logint into databox. It is mandatory for following services. If Datovka already knows the login information for the related account then the supplied information will be ignored.
|
|
|
|
|
|
#### Arguments:
|
|
|
**zfo-file** - ZFO file to be viewed.
|
|
|
|
|
|
## Proposed CLI
|
|
|
|
|
|
The following options (services) are related to actions that should be performed.
|
|
|
The following options (services) are related to actions that should be performed. Login attribut must be present.
|
|
|
|
|
|
#### Service Names:
|
|
|
* **--get-msg-list _string_of_parameters_** - Download list of received/sent messages.
|
... | ... | @@ -60,7 +60,7 @@ The following options (services) are related to actions that should be performed |
|
|
|
|
|
#### List of supported parameters for services:
|
|
|
|
|
|
**--connect**
|
|
|
**--login**
|
|
|
* *username* - Username. Length is 6 characters. [Mandatory]
|
|
|
* *method* - Login method. Values: {user,cert,totp,hotp}. Note: totp = sms code; hotp = security code; Default is user. [Mandatory]
|
|
|
* *type* - Account type. Values: {test,std}. Default is std. [Mandatory]
|
... | ... | @@ -73,11 +73,10 @@ Return [status] |
|
|
Example:
|
|
|
|
|
|
```
|
|
|
datovka --connect "method='certificate',type='std',username='xxxxxx',password='yyyyyyyy',certificate='C:\temp\certificate.pem'"
|
|
|
datovka --login "username='xxxxxx',method='certificate',type='std',password='yyyyyyyy',certificate='C:\temp\certificate.pem'"
|
|
|
```
|
|
|
|
|
|
**--get-msg-list**
|
|
|
* *username* - Username. Length is 6 characters. [Mandatory]
|
|
|
* *dmType* - Type of messages. Values: {sent,received,all}, default is received. [Mandatory]
|
|
|
* *dmStatusFilter* - Filter focused on the message status. Value: {1,2,...,10} - see ISDS for more info, default is -1 = (all message status). [Optional]
|
|
|
* *dmLimit* - Limit of returned messages. Maximal value is 10000. [Optional]
|
... | ... | @@ -89,11 +88,10 @@ Return [msgIdList, status] |
|
|
Example:
|
|
|
|
|
|
```
|
|
|
datovka --get-msg-list "username='xxxxxx',dmType='received',dmStatusFilter='6'"
|
|
|
datovka --login "username='xxxxxx',method='user',type='std',password='yyyyyyyy'" --get-msg-list "dmType='received',dmStatusFilter='6'"
|
|
|
```
|
|
|
|
|
|
**--send-msg**
|
|
|
* *username* - Username. Length is 6 characters. [Mandatory]
|
|
|
* *dbIDRecipient* - Box ID of recipient. Length is 7 characters. [Mandatory]
|
|
|
* *dmAnnotation* - Subject (title) of the message. Maximal length is 255 characters. [Mandatory]
|
|
|
* *dmToHands* - Person in recipient organisation. Maximal length is 50 characters. [Optional]
|
... | ... | @@ -118,11 +116,10 @@ Return [dmID, status] |
|
|
Example:
|
|
|
|
|
|
```
|
|
|
datovka --send-msg "username='xxxxxx',dbIDRecipient='zzzzzzz',dmAnnotation='Example',dmPersonalDelivery='1',dmAllowSubstDelivery='1',dmOVM='0',dmPublishOwnID='0',dmAttachment='C:\temp\info.doc;C:\temp\food.doc'"
|
|
|
datovka --login "username='xxxxxx',method='user',type='std',password='yyyyyyyy'" --send-msg "dbIDRecipient='zzzzzzz',dmAnnotation='Example',dmPersonalDelivery='1',dmAllowSubstDelivery='1',dmOVM='0',dmPublishOwnID='0',dmAttachment='C:\temp\info.doc;C:\temp\food.doc'"
|
|
|
```
|
|
|
|
|
|
**--download-msg**
|
|
|
* *username* - Username. Length is 6 characters. [Mandatory]
|
|
|
* *dmID* - Message ID. Maximal length 20 characters. [Mandatory]
|
|
|
* *dmType* - Type of messages. Values: {sent,received}, default is received. [Mandatory]
|
|
|
|
... | ... | @@ -131,11 +128,10 @@ Return [msgStruct, status] |
|
|
Example:
|
|
|
|
|
|
```
|
|
|
datovka --download-msg "username='xxxxxx',dmID='123456789',dmType='received'"
|
|
|
datovka --login "username='xxxxxx',method='user',type='std',password='yyyyyyyy'" --download-msg "dmID='123456789',dmType='received'"
|
|
|
```
|
|
|
|
|
|
**--download-delivery-info**
|
|
|
* *username* - Username. Length is 6 characters. [Mandatory]
|
|
|
* *dmID* - Message ID. Maximal length 20 characters. [Mandatory]
|
|
|
|
|
|
Return [deliveryStruct, status]
|
... | ... | @@ -143,39 +139,36 @@ Return [deliveryStruct, status] |
|
|
Example:
|
|
|
|
|
|
```
|
|
|
datovka --download-delivery-info "username='xxxxxx',dmID='123456789'"
|
|
|
datovka --login "username='xxxxxx',method='user',type='std',password='yyyyyyyy'" --download-delivery-info "dmID='123456789'"
|
|
|
```
|
|
|
|
|
|
**--get-user-info**
|
|
|
* *username* - Username. Length is 6 characters. [Mandatory]
|
|
|
|
|
|
Return [userInfoStruct, status]
|
|
|
|
|
|
Example:
|
|
|
|
|
|
```
|
|
|
datovka --get-user-info "username='xxxxxx'"
|
|
|
datovka --login "username='xxxxxx',method='user',type='std',password='yyyyyyyy'" --get-user-info
|
|
|
```
|
|
|
|
|
|
**--get-owner-info**
|
|
|
* *username* - Username. Length is 6 characters. [Mandatory]
|
|
|
|
|
|
Return [ownerInfoStruct, status]
|
|
|
|
|
|
Example:
|
|
|
|
|
|
```
|
|
|
datovka --get-owner-info "username='xxxxxx'"
|
|
|
datovka --login "username='xxxxxx',method='user',type='std',password='yyyyyyyy'" --get-owner-info
|
|
|
```
|
|
|
|
|
|
|
|
|
**--check-attachment**
|
|
|
* *username* - Username. Length is 6 characters. [Mandatory]
|
|
|
|
|
|
Return [msgIDsList, status]
|
|
|
|
|
|
Example:
|
|
|
|
|
|
```
|
|
|
datovka --check-attachment "username='xxxxxx'"
|
|
|
datovka --login "username='xxxxxx',method='user',type='std',password='yyyyyyyy'" --check-attachment
|
|
|
``` |
|
|
\ No newline at end of file |