mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	Previously, if users of our code put the API folder in their pyshared they would have to import it as "humbug.humbug". By moving Humbug's API into a directory named "humbug" and moving the API into __init__, you can just "import humbug". (imported from commit 1d2654ae57f8ecbbfe76559de267ec4889708ee8)
		
			
				
	
	
		
			15 lines
		
	
	
		
			394 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			394 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
# Two quick API tests using curl
 | 
						|
 | 
						|
curl https://humbughq.com/api/v1/send_message \
 | 
						|
    -d "api-key=YOUR_API_KEY" \
 | 
						|
    -d "email=YOUR_EMAIL" \
 | 
						|
    -d "type=private" -d "content=test" \
 | 
						|
    -d "to=RECIPIENT_EMAIL"
 | 
						|
 | 
						|
curl https://humbughq.com/api/v1/get_messages \
 | 
						|
    -d "api-key=YOUR_API_KEY" \
 | 
						|
    -d "email=YOUR_EMAIL"
 | 
						|
 | 
						|
# Or replace https://humbughq.com with your local test instance
 |