Skip to content

Instantly share code, notes, and snippets.

@pitbulk
pitbulk / OneLogin.py
Last active June 7, 2017 08:37 — forked from foxwill/OneLogin.py
to create token object and use with the Users OAUTH api endpoint
import requests
class OneLogin(object):
def __init__(self, shard='US'):
"""
Specify the shard of the system being used (us or eu)
:param shard: us or eu
:return:
"""