Skip to content

Commit

Permalink
Adding logger to view access_token metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
shantanu73 committed Nov 6, 2023
1 parent 33637ad commit b042a83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tap_linkedin_ads/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,13 @@ def get_token_expires(self):
},
timeout=self.request_timeout)

LOGGER.info(f"\n\nResp status : {response.status_code}")

if response.status_code != 200:
raise_for_error(response)

data = response.json()
LOGGER.info(f"\n\nResp JSON : {data}")
self.__expires = datetime.fromtimestamp(data['expires_at'])
return self.__expires

Expand Down

0 comments on commit b042a83

Please sign in to comment.