Task #936
Create modular input
Start date:
01/20/2015
Due date:
% Done:
100%
Description
The inputs needs to accept:
- Credentials
	
- Either login and password or oauth2 token
 
 - Doc
	
- Either the title, key or url
 
 - Worksheet
	
- Either the number or the name
 - Might want it to create the worksheet if it does not exist
 
 - Operation
 
Subtasks
History
#1
    
    Updated by Luke Murphey almost 11 years ago
    
    - Status changed from New to In Progress
 - Assignee set to Luke Murphey
 - Target version set to 0.5
 
#2
    
    Updated by Luke Murphey almost 11 years ago
    
    This is mostly working except for the session key.
#3
    
    Updated by Luke Murphey almost 11 years ago
    
    ERROR ExecProcessor - message from "python /Library/Splunk/splunk_sp/etc/apps/google_drive/bin/google_spreadsheet_import.py" Unexpected exception: [HTTP 401] Client is not authenticated 127.0.0.1 - - [21/Jan/2015:00:41:39.820 -0600] "POST /services/data/lookup-table-files/test.csv HTTP/1.0" 401 148 - - - 0ms
#4
    
    Updated by Luke Murphey almost 11 years ago
    
    This session key thing is weird. Here are some observations:
	
    - Using a session key made by calling splunk.auth.getSessionKey() works
 - Other calls work, but not this put
 - The key is the same the one provided in the XML
 - The lookup editor works with the same code
 - The unit tests work
 
#5
    
    Updated by Luke Murphey almost 11 years ago
    
    The modular input is getting a session key for 'splunk-system-user' while the one gained by authenticating in Python is for 'admin'.
#6
    
    Updated by Luke Murphey almost 11 years ago
    
    Tried a fresh lookup file, still didn't work.
#7
    
    Updated by Luke Murphey almost 11 years ago
    
    - Status changed from In Progress to Closed