Skip to content

Instantly share code, notes, and snippets.

View Trudeaucj's full-sized avatar

Christopher Trudeau Trudeaucj

  • Stripe
  • Seattle, WA
View GitHub Profile
import requests
import json
import base64
baseUrl = 'https://www.concursolutions.com'
oauthUrl = baseUrl+'/net2/oauth2/accesstoken.ashx'
reportDigestUrl = ''
def getbasic(user, password):
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)