This repository was archived by the owner on Aug 10, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ .env
Original file line number Diff line number Diff line change @@ -74,15 +74,15 @@ def update_expire(created_at):
7474def get_me (access_token ):
7575 '''
7676 DESCRIPTION:
77- Calls /vapid /me endpoint and returns user login/id.
77+ Calls /rest/v1.0 /me endpoint and returns user login/id.
7878 INPUTS:
7979 access_token = access_token used as credentials to communicate with the API
8080 OUTPUTS:
8181 me_json['login'] = user's login name
8282 me_json['id'] = user's login ID
8383 '''
8484 headers = {"Authorization" : "Bearer " + access_token }
85- response = requests .get (BASE_URL + "/vapid /me" , headers = headers )
85+ response = requests .get (BASE_URL + "/rest/v1.0 /me" , headers = headers )
8686 me_json = response .json ()
8787 return me_json ['login' ], me_json ['id' ]
8888
You can’t perform that action at this time.
0 commit comments