diff --git a/docs/conf.py b/docs/conf.py index 4ea9423..885052b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -57,9 +57,9 @@ # built documents. # # The short X.Y version. -version = 'v0.0.6' +version = 'v0.0.7' # The full version, including alpha/beta/rc tags. -release = 'v0.0.6' +release = 'v0.0.7' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/setup.py b/setup.py index d4aefdd..1ef45cb 100644 --- a/setup.py +++ b/setup.py @@ -9,11 +9,11 @@ setup( name='tdameritrade', - version='0.0.6', + version='0.0.7', description='APIs for TD Ameritrade', long_description=long_description, url='https://github.com/timkpaine/tdameritrade', - download_url='https://github.com/timkpaine/tdameritrade/archive/v0.0.6.tar.gz', + download_url='https://github.com/timkpaine/tdameritrade/archive/v0.0.7.tar.gz', author='Tim Paine', author_email='timothy.k.paine@gmail.com', license='Apache 2.0', diff --git a/tdameritrade/__init__.py b/tdameritrade/__init__.py index e654253..a6da8bb 100644 --- a/tdameritrade/__init__.py +++ b/tdameritrade/__init__.py @@ -1,3 +1,3 @@ from .client import TDClient # noqa: F401 -__version__ = '0.0.6' +__version__ = '0.0.7' diff --git a/tdameritrade/auth/__init__.py b/tdameritrade/auth/__init__.py index abf9361..4b67f50 100644 --- a/tdameritrade/auth/__init__.py +++ b/tdameritrade/auth/__init__.py @@ -78,8 +78,8 @@ def refresh_token(refresh_token, client_id): resp = requests.post('https://api.tdameritrade.com/v1/oauth2/token', headers={'Content-Type': 'application/x-www-form-urlencoded'}, data={'grant_type': 'refresh_token', - 'refresh_token': up.quote(refresh_token), - 'client_id': up.quote(client_id)}) + 'refresh_token': refresh_token, + 'client_id': client_id}) if resp.status_code != 200: raise Exception('Could not authenticate!') return resp.json()