WickrIO Node.JS API Web Interface
npm install wickrio_web_interfaceThe official WickrIO Web API tool. Allows to send HTTP requests to communicate with the WickrIO API, and also makes it possible to create Wickr Integrations using any programming language.
To get started with the WickrIO Web API Interface:
First, you would need to setup your system, download and install Docker and run the WickrIO Docker container. Full instructions on how to do so are available here: https://wickrinc.github.io/wickrio-docs/#wickr-io-getting-started
For HTTPS and SSL support, you need an OpenSSL certificate file and a key file. Both can be created with the following command:
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout my.key -out my.cert
``This version of the Web Interface supports basic authentication. The authentication will use the "Authorization" HTTP header to send the necessary authentication information to the Wickr IO server. If the proper authentication information is not presented to the Wickr IO server then an HTTP 401 response will be sent.
When using basic authentication, a base64 encoded string will be sent to the Wickr IO server. The following steps should be performed for basic authentication:
1. When the associated Wickr IO bot client is configured and associated with the Web Interface integration, the associated authentication string will be setup. You will use this string to generate the base64 encoded string.
2. Base64 encode the string mentioned above.
3. Supply an "Authorization" header with content "Basic " followed by the encoded string. For example, the string "The big red fox" encodes to "VGhlIGJpZyByZWQgZm94" in base 64, so you would send the string "Basic VGhlIGJpZyByZWQgZm94" in the "Authorization" HTTP header.
This section describes the REST APIs that are supported by the 2.x version of the Wickr IO Web Interface integration. The following table identifies each of the actions the API supports, the type of HTTP request and the URL used.
API | HTTP | URL
----|------|-----
Send Message | POST | https://\
Set Message URL Callback | POST | https://\
Get Message URL Callback | GET | https://\
Delete Message URL Callback | DELETE | https://\
Get Received Messages | GET | https://\
Get Statistics | GET | https://\
Clear Statistics | DELETE | https://\
Create Secure Room | POST | https://\
Get Room | GET | https://\
Get Rooms | GET | https://\
Delete Room | DELETE | https://\
Leave Room | DELETE | https://\
Modify Room | POST | https://\
Create Group Conversation | POST | https://\
Get Group Conversations | GET | https://\
Get Group Conversation | GET | https://\
Delete Group Conversation | DELETE | https://\
Get Directory | GET | https://\
The \