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

zulip

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zulip

Zulip API client library

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-90%
Maintainers
1
Weekly downloads
 
Created
Source

Installing

npm install zulip

Using the API

For now, the only fully supported API operation is sending a message. The other API queries work, but are under active development, so please make sure we know you're using them so that we can notify you as we make any changes to them.

You can obtain your Zulip API key, create bots, and manage bots all from your Zulip settings page.

A typical simple bot sending API messages will look as follows:

var zulip = require('zulip');
var client = new zulip.Client({
    email: "your-bot@zulip.com",
    api_key: "your_32_character_api_key",
    verbose: true
});

client.sendMessage({
    type: "stream",
    content: 'Zulip rules!',
    to: ['stream_name'],
    subject: "feedback"
});

Additional examples:

client.sendMessage({
    type: "private",
    content: "Zulip rules!",
    to: ['user1@example.com']
});

client.sendMessage({
    type: "stream",
    content: 'Zulip rules!',
    to: ['stream_name'],
    subject: "feedback"
}, function (error, response) {
    if (error) {
        console.log("Something went wrong!", error);
    } else {
        console.log("Message sent!");
    }
});

Keywords

FAQs

Package last updated on 21 Oct 2013

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