mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	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:
		@@ -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',
 | 
			
		||||
 
 | 
			
		||||
@@ -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',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user