Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wickrio_addon2

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wickrio_addon2

Wickr's Node.js C++ Addon for a JavaScript API interface

  • 4.54.24
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

WickrIO API Addon

Wickr's Node.js C++ Addon for a JavaScript API interface

Usage and example:

var addon = require('wickrio_addon'); module.exports = addon;

var client = "bot_username"; var response = addon.clientInit(client);

var vGroupID = "S9d0b36ac51c5a71f8d8dd28b8614c273084fd9785c22788df672fb6c8e0ae88"; var members = ['wickr_username']; var moderators = ['wickr_username']; var bor = "600"; //OPTIONAL var ttl = "1000"; //OPTIONAL var title = "Example Room"; var description = "The Good Room"; var message = "Testing time!" var attachmentURL = "https://www.alsop-louie.com/wp-content/uploads/2017/03/wickr-logo-2-crop.png" var displayname = "Logo.png";

var cmd1 = addon.cmdSend1to1Message(members, message, ttl, bor);
console.log(cmd1); //if successful should print "Sending message"

var cmd2 = addon.cmdAddRoom(members, moderators, title, description, ttl, bor); console.log(cmd2); //if successful should print a json with vgroupid of the newly created room

var cmd3 = addon.cmdSendRoomAttachment(vGroupID, attachmentURL, displayname); //Notice: ttl and bor arguments are omitted and command will still work console.log(cmd3); //if successful should print "Sending message"

console.log(addon.closeClient());

FAQs

Package last updated on 04 Oct 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc