| | 73 | |
| | 74 | == Duplicacy own API token generate |
| | 75 | {{{ |
| | 76 | #!bash |
| | 77 | oauth2l fetch \ |
| | 78 | --refresh \ |
| | 79 | --type=oauth \ |
| | 80 | --scope=drive \ |
| | 81 | --output_format=json \ |
| | 82 | --cache=auth-cache.mjson \ |
| | 83 | --credentials=client_secret_id.json > |
| | 84 | token.json |
| | 85 | }}} |
| | 86 | `token.json`: |
| | 87 | {{{ |
| | 88 | #!json |
| | 89 | { |
| | 90 | "client_secret":"secret", |
| | 91 | "client_id": "id.apps.googleusercontent.com", |
| | 92 | "end_point": { |
| | 93 | "TokenURL": "https://oauth2.googleapis.com/token" |
| | 94 | }, |
| | 95 | "token": { |
| | 96 | "access_token": "preventive expired with working refresh_token", |
| | 97 | "refresh_token": "refresh", |
| | 98 | "expiry": "2000-02-22T10:22:17.547011879Z" |
| | 99 | } |
| | 100 | } |
| | 101 | }}} |
| | 102 | |
| | 103 | [[br]] |