api examples: Change required JS module from zulip to zulip-js.

The JS module we ask our users to install in the installation
instructions is zulip-js, not zulip. These examples would fail
with the latter. This commit updates the examples to use the
name zulip-js.
This commit is contained in:
Eeshan Garg
2017-12-28 19:12:59 -03:30
committed by showell
parent 89f622937d
commit 3003d3d927
2 changed files with 2 additions and 2 deletions

View File

@@ -68,7 +68,7 @@ See also the [full API endpoint documentation](/api/endpoints).
<div data-language="javascript" markdown="1">
More examples and documentation can be found [here](https://github.com/zulip/zulip-js).
```js
const zulip = require('zulip');
const zulip = require('zulip-js');
const config = {
username: 'othello-bot@example.com',

View File

@@ -82,7 +82,7 @@ See also the [full API endpoint documentation](/api/endpoints).
<div data-language="javascript" markdown="1">
More examples and documentation can be found [here](https://github.com/zulip/zulip-js).
```js
const zulip = require('zulip');
const zulip = require('zulip-js');
const config = {
username: 'othello-bot@example.com',