Download Jar. Libraryless. Click here for Pure Java version (6708L/44K).
!7 html { // needed for initiation and callback S redirect_uri = fullRawLink("/callback"); if (eq(uri, "/callback")) { S code = assertNempty(params.get("code")); Map tokenMap = googleAuthorizationCodeToTokens_raw(googleBotCompanyClientID(), googleBotCompanyClientSecret(), redirect_uri, code); printStruct(+tokenMap); // Tokens will be in "access_token" and "refresh_token" ret printAndProgramLog("We're back from Google! " + hpre(pnlToString(params) + "\n" + pnlToString(tokenMap))); } S client_id = googleBotCompanyClientID(); S scope = "https://www.googleapis.com/auth/calendar"; ret hrefresh(2.0, print(googleOAuthRedirectURL(print(+redirect_uri), client_id, scope))) + "Redirecting to Google..."; }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028411 |
Snippet name: | Google Calender Auth Data Grabber [LIVE] |
Eternal ID of this version: | #1028411/15 |
Text MD5: | c8eb52d1cddf58a19b5b081373d98644 |
Transpilation MD5: | 03876b4f6b824763ef0335397666f3fd |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-08-03 12:44:12 |
Source code size: | 763 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 363 / 1364 |
Version history: | 14 change(s) |
Referenced in: | -