Skip to content

Instantly share code, notes, and snippets.

@rahulbanerjee26
Created September 25, 2022 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulbanerjee26/efd9d0b10331c5bcd681da910bfd9ef0 to your computer and use it in GitHub Desktop.
Save rahulbanerjee26/efd9d0b10331c5bcd681da910bfd9ef0 to your computer and use it in GitHub Desktop.
def getUserID(self):
response = self._session.get(f"{self._endpoint}me")
if response.status_code == 200:
return response.json()["data"]["id"]
else:
print("Error while retreiving user id")
print(response)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment