[api version bump] Update API documentation in the example scripts
Give better examples, and rewrite options parsing to be more consistent across examples. Make it more obvious that you can use "--user" and "--api-key" with our python examples. This bumps our python bindings to v0.1.9 (imported from commit 297468088f864b7d585e567dc45523ea681f1856)
This commit is contained in:
		
							parent
							
								
									35b822b58d
								
							
						
					
					
						commit
						dfb8a16a55
					
				
					 22 changed files with 92 additions and 87 deletions
				
			
		| 
						 | 
				
			
			@ -33,7 +33,7 @@ from distutils.version import LooseVersion
 | 
			
		|||
from ConfigParser import SafeConfigParser
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
__version__ = "0.1.8"
 | 
			
		||||
__version__ = "0.1.9"
 | 
			
		||||
 | 
			
		||||
# Check that we have a recent enough version
 | 
			
		||||
# Older versions don't provide the 'json' attribute on responses.
 | 
			
		||||
| 
						 | 
				
			
			@ -52,10 +52,10 @@ def generate_option_group(parser):
 | 
			
		|||
                     action='store')
 | 
			
		||||
    group.add_option('--user',
 | 
			
		||||
                     dest='email',
 | 
			
		||||
                     help='Email address of the calling user.')
 | 
			
		||||
                     help='Email address of the calling bot or user.')
 | 
			
		||||
    group.add_option('--config-file',
 | 
			
		||||
                     action='store',
 | 
			
		||||
                     help='Location of an ini file containing the above information.')
 | 
			
		||||
                     help='Location of an ini file containing the\nabove information. (default ~/.humbugrc)')
 | 
			
		||||
    group.add_option('-v', '--verbose',
 | 
			
		||||
                     action='store_true',
 | 
			
		||||
                     help='Provide detailed output.')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue