sscarpa / google-api-php-client

Automatically exported from code.google.com/p/google-api-php-client
Apache License 2.0
0 stars 0 forks source link

Task API doesn't get lists with Google Apps domains #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

I have 4 task lists on my flx.me google apps domain but I can't retrieve the 
lists. It only receives the list "me's list" (which reflect's the username 
"me"). However, when using a task list on gmail, it works fine and retrieves 
all lists.

Code used:

<?php
//load libs
require_once "include/google-api-php-client/src/apiClient.php";
require_once "include/google-api-php-client/src/contrib/apiTasksService.php";

//load api
$apiClient = new apiClient();
$service = new apiTasksService($apiClient);

//authenticate
if (isset($_SESSION['oauth_access_token'])) {
  $apiClient->setAccessToken($_SESSION['oauth_access_token']);
} else {
  $token = $apiClient->authenticate();
  $_SESSION['oauth_access_token'] = $token;
}

//get list
$taskLists = $service->listTasklists();

foreach ($taskLists['items'] as $taskList) {
  echo $taskList['title'] . " - " . $taskList['id'] . "<br />";
}
?>

How can I fix this?

Thanks,
Dennis

Original issue reported on code.google.com by flx...@gmail.com on 13 May 2011 at 10:25

GoogleCodeExporter commented 8 years ago
This particular issue is being tracked here: 
https://code.google.com/apis/tasks/forum.html?place=topic%2Fgoogle-tasks-api%2FC
Vyxwz-Z9Rg%2Fdiscussion

Original comment by chirags@google.com on 20 Jun 2011 at 6:06