14 lines
		
	
	
		
			485 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			485 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| # request library
 | |
| 
 | |
| This library allows various web requests from within Ground.
 | |
| 
 | |
| ## Functions
 | |
| 
 | |
| ### fun -string !simpleRequest -string &url
 | |
| 
 | |
| Makes a web request to a URL, and returns the contents. If the request is not successful, returns a response beginning with "Error code", and prints it to the console.
 | |
| 
 | |
| ### fun -bool !saveContents -string &url -string &location
 | |
| 
 | |
| Makes a web request to a URL, and saves the contents to a file. If successful, returns true. If not, returns false.
 |