Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1028554 - googleCalendarService

JavaX fragment (include) [tags: use-pretranspiled]

Uses 4337K of libraries. Click here for Pure Java version (2644L/17K).

// Library is imported in GoogleAccess

import com.google.api.client.util.DateTime;
import com.google.api.client.util.store.FileDataStoreFactory;
import com.google.api.services.calendar.Calendar;
import com.google.api.services.calendar.CalendarScopes;
import com.google.api.services.calendar.model.Event;
import com.google.api.services.calendar.model.Events;

static Calendar googleCalendarService(GoogleAccess ga, S applicationName) {
  ret new Calendar.Builder(ga.transport(), ga.jsonFactory(), ga.credential)
    .setApplicationName(applicationName)
    .build();
}

Author comment

Began life as a copy of #1028420

download  show line numbers  debug dex   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028554
Snippet name: googleCalendarService
Eternal ID of this version: #1028554/3
Text MD5: 1a85e0c09c1a4f9175d29ad9ceffecad
Transpilation MD5: d2b2dec772adf55246fc772aef973f1c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-26 18:38:55
Source code size: 581 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 40 / 82
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1028554 & http://1028554.tinybrain.de