Skip to content

Commit 42c4a19

Browse files
committed
Add return data in a dictionary
1 parent f6ab947 commit 42c4a19

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tfa_python_sdk/tfa_python_sdk.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,11 @@ def __init__(self, access_token) -> None:
55
self.access_token = access_token
66

77
def authUser(self, user_token):
8-
return req.get(f'https://tele-fa-api.herokuapp.com/api/access/{self.access_token}/{user_token}')
8+
response = req.get(f'https://tele-fa-api.herokuapp.com/api/access/{self.access_token}/{user_token}')
9+
10+
data = {
11+
"status": response.status_code,
12+
"data": response.json()
13+
}
14+
15+
return data

0 commit comments

Comments
 (0)