This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import base64 | |
baseUrl = 'https://www.concursolutions.com' | |
oauthUrl = baseUrl+'/net2/oauth2/accesstoken.ashx' | |
reportDigestUrl = '' | |
def getbasic(user, password): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import base64 | |
baseUrl = 'https://www.concursolutions.com' | |
oauthUrl = baseUrl+'/net2/oauth2/accesstoken.ashx' | |
def getbasic(user, password): | |
# basic authentication (according to HTTP) | |
return base64.encodestring(user + ":" + password) |