Map<String, String> params = new HashMap<String, String>(); Channel request = new Channel() .setId("unique_subscription_ID") .setType("web_hook") .setAddress(String.format("https://my-host.com/notification")) .setParams(params); service.events().watch("my_calendar@my-host.com", request).execute();
changes = service.events().list("my_calendar@my-host.com") .setUpdatedMin(lastSynchonizationTime).execute();
No comments :
Post a Comment