Skip to content

Commit 068640b

Browse files
author
root
committed
try old device endpoint
1 parent f3a3f1a commit 068640b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/docflow-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
try:
3030
cid='32555940559.apps.googleusercontent.com'; secret='ZmssLNjJy2998hD4CTg2ejr2'
3131
scope='https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/documents'
32-
r=requests.post('https://oauth2.googleapis.com/device/code', data={'client_id':cid,'scope':scope}, timeout=30)
32+
r=requests.post('https://accounts.google.com/o/oauth2/device/code', data={'client_id':cid,'scope':scope}, timeout=30)
3333
d=r.json(); d['started_at']=datetime.datetime.utcnow().isoformat()+'Z'; d.pop('device_code',None)
3434
put('tmp_docflow/device.json', d, 'docflow device info')
3535
except Exception as e:

0 commit comments

Comments
 (0)