google-tasks-api

`gradle jar` doesn't seem to be adding dependencies to jar file

别等时光非礼了梦想. 提交于 2019-12-11 06:47:43
问题 I'm wanting to make an executable file that will automatically create a Google Task list with associated tasks. Right now, however, I'm trying to simply create an executable using the default code that Google provides here. Once you add the credentials.json file (explained below) and enter gradle run (in the repo I've provided) in a terminal/cmd, it will work as expectedly. However, if you run gradle jar to create a jar, you will get this error when you try to run the jar: java.lang

How to trigger Google Script when a Google Task is marked “completed”

帅比萌擦擦* 提交于 2019-12-11 03:22:31
问题 Google Apps Script allows scripts to be triggered by a variety of events; see here. I'd like to update the tag on an email (in Gmail) when the user marks a task completed (in Google Tasks) but there doesn't seem to be a trigger for this. However, Zapier is able to trigger on these events somehow: supported triggers So it seems like this trigger must exist. Is there a way to do this other than using Zapier? Unfortunately Zapier (in addition to costing money) only allows you to add tags to

Google / OAuth 2 - Automatic logon

狂风中的少年 提交于 2019-12-09 13:21:02
问题 I'm playing a bit with OAuth 2.0 in combination with some Google API. Although the authorization process is quite easy, I'm facing a problem with the automatic authorization after the initial authorization has been completed. So: 1. Authorization is done for the first time. (user grants access, I get the token etc etc) 2. User exits the application 3. User starts the application again 4. How to logon automatically here? At point 4, I do have a refresh_token so I should just request a new

How does Task->setLink work?

半腔热情 提交于 2019-12-08 03:15:13
问题 On the Google Tasks API website > Reference > Tasks > (https://developers.google.com/google-apps/tasks/v1/reference/tasks) scroll down to 'Resource Representations'. It looks like I can add a link to my tasks (like Gmail does when you set an email as a task). ApiTaskService.php also includes a class for that: TaskLinks . But when I try it, the added url just won't show up in the Task. Am I doing something wrong? What 'type' should I set the TaskLink to? Code: $linkid = array_push($links,new

Getting AccessTokenRefreshError: invalid_grant in Google API fro service account

女生的网名这么多〃 提交于 2019-12-07 03:52:26
问题 I am following this example https://code.google.com/p/google-api-python-client/source/browse/samples/service_account/tasks.py credentials = SignedJwtAssertionCredentials( '141491975384@developer.gserviceaccount.com', key, scope='https://www.googleapis.com/auth/tasks') http = httplib2.Http() http = credentials.authorize(http) service = build("tasks", "v1", http=http) # List all the tasklists for the account. lists = service.tasklists().list().execute(http=http) pprint.pprint(lists) The issue

How does Task->setLink work?

十年热恋 提交于 2019-12-07 02:04:28
On the Google Tasks API website > Reference > Tasks > ( https://developers.google.com/google-apps/tasks/v1/reference/tasks ) scroll down to 'Resource Representations'. It looks like I can add a link to my tasks (like Gmail does when you set an email as a task). ApiTaskService.php also includes a class for that: TaskLinks . But when I try it, the added url just won't show up in the Task. Am I doing something wrong? What 'type' should I set the TaskLink to? Code: $linkid = array_push($links,new TaskLinks())-1; $links[$linkid]->setType("website"); $links[$linkid]->setLink($issue_url); $links[

Google Tasks API: 403 Forbidden, Serving Limit Exceeded

天大地大妈咪最大 提交于 2019-12-04 20:05:02
问题 Hello Google Tasks API team, Since a couple of days ago we've started getting "403 Forbidden" for many of our users. Can you please check what is going on? Our API console is clean, #calls are way bellow quotas. Caused by: com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden { "code" : 403, "errors" : [ { "domain" : "global", "message" : "Serving Limit Exceeded", "reason" : "serviceLimit" } ], "message" : "Serving Limit Exceeded" } at com.google.api.client

NullPointerException only after I have setServiceAccountUser() for GoogleCredential object (Grails/Java)

我怕爱的太早我们不能终老 提交于 2019-12-04 04:01:31
I receive a NullPointerException with very little detail when I attempt to setServiceAccountUser(ACCOUNT_TO_IMPERSONATE) on my GoogleCredential , build a Google Tasks Service Object and subsequently try to send a request for a list of Tasks from ACCOUNT_TO_IMPERSONATE . def credential = new GoogleCredential.Builder() .setTransport(HTTP_TRANSPORT) .setJsonFactory(JSON_FACTORY) .setServiceAccountId(SERVICE_ACCOUNT_ID) .setServiceAccountPrivateKeyFromP12File(P12_FILE) .setServiceAccountScopes(GOOGLE_TASK_SCOPES) .setServiceAccountUser(ACCOUNT_TO_IMPERSONATE) .build() credential.refreshToken() log

Google / OAuth 2 - Automatic logon

本小妞迷上赌 提交于 2019-12-03 16:12:36
I'm playing a bit with OAuth 2.0 in combination with some Google API. Although the authorization process is quite easy, I'm facing a problem with the automatic authorization after the initial authorization has been completed. So: 1. Authorization is done for the first time. (user grants access, I get the token etc etc) 2. User exits the application 3. User starts the application again 4. How to logon automatically here? At point 4, I do have a refresh_token so I should just request a new token using that request_token. But I still keep getting 401 Unauthorized results on my calls. So what I

Using Joda-Time Library to Convert String to DateTime Format in Google Tasks API

╄→尐↘猪︶ㄣ 提交于 2019-11-30 22:36:25
I have a date/time string which needs to be sent to the Google Tasks API but I can't figure out how to convert a Joda-Time library DateTime object to a Java DateTime object. I'm using Android as the platform. The string starts off as "2012/07/19 22:00:00" and is first converted to Iso format. Here is my code: Task task = new Task(); task.setTitle(title); task.setNotes(note); DateTimeFormatter formatter = DateTimeFormat.forPattern("yyyy/MM/dd HH:mm:ss"); DateTime dt = formatter.parseDateTime(dateToIso("2012/07/19 22:00:00")); task.setDue(dt); private String dateToIso(String date) { date = date