Guest User

Untitled

a guest
Jan 25th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "/Users/jondevereux/Desktop/Data reporting/kpex_code/1PD/api_python_publisher_1PD.py", line 40, in <module>
  3. username = parser.get('api_samples', 'username')
  4. File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ConfigParser.py", line 607, in get
  5. raise NoSectionError(section)
  6. ConfigParser.NoSectionError: No section: 'api_samples'
  7.  
  8. [api_samples]
  9. authentication_url = https://crowdcontrol.lotame.com/auth/v1/tickets
  10. api_url = https://api.lotame.com/2/
  11. username = xxx
  12. password = xxx
  13.  
  14. # Set up the libs we need
  15. import requests
  16. import sys
  17. import csv
  18. import json
  19. from ConfigParser import SafeConfigParser # used to get information from a config file
Advertisement
Add Comment
Please, Sign In to add comment