Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File "/Users/jondevereux/Desktop/Data reporting/kpex_code/1PD/api_python_publisher_1PD.py", line 40, in <module>
- username = parser.get('api_samples', 'username')
- File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ConfigParser.py", line 607, in get
- raise NoSectionError(section)
- ConfigParser.NoSectionError: No section: 'api_samples'
- [api_samples]
- authentication_url = https://crowdcontrol.lotame.com/auth/v1/tickets
- api_url = https://api.lotame.com/2/
- username = xxx
- password = xxx
- # Set up the libs we need
- import requests
- import sys
- import csv
- import json
- from ConfigParser import SafeConfigParser # used to get information from a config file
Advertisement
Add Comment
Please, Sign In to add comment