Skip to content
This repository was archived by the owner on Aug 10, 2026. It is now read-only.

Commit 5ae7a1e

Browse files
authored
Merge pull request #1 from procore/ZL-794/vapid-to-rest
[ZL-794] Vapid to Rest v1.0
2 parents 22c6c68 + e1f8189 commit 5ae7a1e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.env

oauth_main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ def update_expire(created_at):
7474
def 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

0 commit comments

Comments
 (0)