it gives

"in first if"

so it is getting in the first  if block but is not going in second as 
"gotm" is not getting echoed 

my call back url file is like
<?php 



require_once 'Zend/Oauth/Consumer.php';
require_once 'Zend/Gdata/Docs.php';
//$_SESSION['REQUEST_TOKEN']=$_GET['oauth_token'];
if (!isset($_SESSION['ACCESS_TOKEN'])) {echo "in first if /br";
  if (!empty($_GET) && isset($_SESSION['REQUEST_TOKEN'])) { echo "gotm";
    $_SESSION['ACCESS_TOKEN'] = serialize($consumer->getAccessToken($_GET, 
unserialize($_SESSION['REQUEST_TOKEN'])));
  }
}
echo "i am here and i love it2";
echo $_SESSION['ACCESS_TOKEN'];
if (isset($_SESSION['ACCESS_TOKEN'])) {
  $accessToken = unserialize($_SESSION['ACCESS_TOKEN']);
} else {echo "in exit";
  exit;
}


/*  Or, you could set an existing token (say one stored from your database). 
For HMAC-SHA1:
$accessToken = new Zend_Oauth_Token_Access();
$accessToken->setToken('1/AQfoI-qJDqkvvkf216Gc2g');
$accessToken->setTokenSecret('2c26GLW250tZiQ');
*/

$httpClient = $accessToken->getHttpClient($oauthOptions);
$client = new Zend_Gdata_Docs($httpClient, "yourCompany-YourAppName-v1");

// Retrieve user's list of Google Docs
$feed = $client->getDocumentListFeed();
foreach ($feed->entries as $entry) {
  echo "$entry->title\n";
}
?>

-- 
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/contacts/community/forum.html

Reply via email to