Skip to content

Commit ee9cef6

Browse files
committed
Rename client_key to client_id which better matches fitbit docs
1 parent 149656c commit ee9cef6

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
0.2 (2016-03-23)
22
================
33

4-
* Drop OAuth1 support. See .. _OAuth1-deprecated: https://dev.fitbit.com/docs/oauth2/#oauth-1-0a-deprecated
4+
* Drop OAuth1 support. See `OAuth1 deprecated <https://dev.fitbit.com/docs/oauth2/#oauth-1-0a-deprecated>`_
55
* Drop py26 and py32 support
66

77
0.1.3 (2015-02-04)

fitbit/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,12 @@ class Fitbit(object):
198198
'frequent',
199199
]
200200

201-
def __init__(self, client_key, client_secret, system=US, **kwargs):
201+
def __init__(self, client_id, client_secret, system=US, **kwargs):
202202
"""
203203
Fitbit(<id>, <secret>, access_token=<token>, refresh_token=<token>)
204204
"""
205205
self.system = system
206-
self.client = FitbitOauth2Client(client_key, client_secret, **kwargs)
206+
self.client = FitbitOauth2Client(client_id, client_secret, **kwargs)
207207

208208
# All of these use the same patterns, define the method for accessing
209209
# creating and deleting records once, and use curry to make individual

fitbit_tests/test_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Auth2Test(TestCase):
1111
make sure we call the right oauth calls, respond correctly based on the responses
1212
"""
1313
client_kwargs = {
14-
'client_key': 'fake_id',
14+
'client_id': 'fake_id',
1515
'client_secret': 'fake_secret',
1616
'callback_uri': 'fake_callback_url',
1717
'scope': ['fake_scope1']

fitbit_tests/test_exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ExceptionTest(unittest.TestCase):
1111
Tests that certain response codes raise certain exceptions
1212
"""
1313
client_kwargs = {
14-
"client_key": "",
14+
"client_id": "",
1515
"client_secret": "",
1616
"access_token": None,
1717
"refresh_token": None

0 commit comments

Comments
 (0)