-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathconfig.py
More file actions
25 lines (21 loc) · 849 Bytes
/
config.py
File metadata and controls
25 lines (21 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
"""This module contains static URLs
"""
import platform
from intuitlib import version
MIGRATION_URL = {
'sandbox': 'https://developer-sandbox.api.intuit.com/v2/oauth2/tokens/migrate',
'production': 'https://developer.api.intuit.com/v2/oauth2/tokens/migrate',
}
DISCOVERY_URL = {
'sandbox': 'https://developer.intuit.com/.well-known/openid_sandbox_configuration/',
'production': 'https://developer.intuit.com/.well-known/openid_configuration/',
}
# info for user-agent
PYTHON_VERSION = platform.python_version()
OS_SYSTEM = platform.uname()[0]
OS_RELEASE_VER = platform.uname()[2]
OS_MACHINE = platform.uname()[4]
ACCEPT_HEADER = {
'Accept': 'application/json',
'User-Agent': '{0}-{1}-{2}-{3} {4} {5} {6}'.format('Intuit-OAuthClient', version.__version__,'Python', PYTHON_VERSION, OS_SYSTEM, OS_RELEASE_VER, OS_MACHINE)
}