api: remove use of zulip.com domain in API bindings.
This commit is contained in:
		
							parent
							
								
									746d9d2b6b
								
							
						
					
					
						commit
						b7f29327b6
					
				
					 4 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
#### Dependencies
 | 
					#### Dependencies
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The [Zulip API](https://zulip.com/api) Python bindings require the
 | 
					The [Zulip API](https://zulipchat.com/api) Python bindings require the
 | 
				
			||||||
following Python libraries:
 | 
					following Python libraries:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* requests (version >= 0.12.1)
 | 
					* requests (version >= 0.12.1)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -31,7 +31,7 @@ usage = """create-user --new-email=<email address> --new-password=<password> --n
 | 
				
			||||||
Create a user. You must be a realm admin to use this API, and the user
 | 
					Create a user. You must be a realm admin to use this API, and the user
 | 
				
			||||||
will be created in your realm.
 | 
					will be created in your realm.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Example: create-user --site=http://localhost:9991 --user=rwbarton@zulip.com --new-email=jarthur@zulip.com --new-password=random17 --new-full-name 'J. Arthur Random' --new-short-name='jarthur'
 | 
					Example: create-user --site=http://localhost:9991 --user=rwbarton@example.com --new-email=jarthur@example.com --new-password=random17 --new-full-name 'J. Arthur Random' --new-short-name='jarthur'
 | 
				
			||||||
"""
 | 
					"""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
sys.path.append(path.join(path.dirname(__file__), '..'))
 | 
					sys.path.append(path.join(path.dirname(__file__), '..'))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -50,7 +50,7 @@ To use this script:
 | 
				
			||||||
1. Create an RSS feed file containing 1 feed URL per line (default feed
 | 
					1. Create an RSS feed file containing 1 feed URL per line (default feed
 | 
				
			||||||
   file location: ~/.cache/zulip-rss/rss-feeds)
 | 
					   file location: ~/.cache/zulip-rss/rss-feeds)
 | 
				
			||||||
2. Subscribe to the stream that will receive RSS updates (default stream: rss)
 | 
					2. Subscribe to the stream that will receive RSS updates (default stream: rss)
 | 
				
			||||||
3. create a ~/.zuliprc as described on https://zulip.com/api#api_keys
 | 
					3. create a ~/.zuliprc as described on https://zulipchat.com/api#api_keys
 | 
				
			||||||
4. Test the script by running it manually, like this:
 | 
					4. Test the script by running it manually, like this:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/usr/local/share/zulip/integrations/rss/rss-bot
 | 
					/usr/local/share/zulip/integrations/rss/rss-bot
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -42,7 +42,7 @@ def write_config(config, since_id):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
parser = optparse.OptionParser(r"""
 | 
					parser = optparse.OptionParser(r"""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%prog --user foo@zulip.com --api-key a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5 \
 | 
					%prog --user username@example.com --api-key a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5 \
 | 
				
			||||||
    --search="@nprnews,quantum physics"
 | 
					    --search="@nprnews,quantum physics"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Send Twitter search results to a Zulip stream.
 | 
					Send Twitter search results to a Zulip stream.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue