Login   Register  
PHP Classes
elePHPant
Icontem

File: example

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Yassine Oussi  >  Gdata Google Docs  >  example  >  Download  
File: example
Role: Example script
Content type: text/plain
Description: example
Class: Gdata Google Docs
Manage documents in Google docs using GData API
Author: By
Last change:
Date: 2010-07-01 11:08
Size: 914 bytes
 

Contents

Class file image Download
<?php

$gData 
= new gData("test@gmail.com","password123");

var_dump($gData->getStatus()); 


try {

    
//var_dump($gData->createFolder("subtest1355"));
    //var_dump($gData->getInfoFolders());

    //var_dump($gData->getInfoFiles());
    //$gData->removeFileFolder("0B4T-Zj2neY2nNjFiNTFhMTAtMGI1MC00YTg3LWJjYjYtM2VmN2M2MjM3ZjA3");
    //$gData->getInfoFiles();

    //var_dump($gData->getFile("http://docs.google.com/feeds/download/documents/Export?docId=0AYT-Zj2neY2nZGNydDlkdzlfMGdqa3dqZGRw","tedd3.pdf","pdf")); 

    //var_dump($gData->uploadFile("test123.doc", "test123dddd.doc"));
      //$gData->removeFileFolder("0B4T-Zj2neY2nZDMyNjlmNjgtY2UxMS00MzJmLWJmYTYtMzZjZWIzOWRmNDZk");
      //$gData->moveFileToFolder("0AYT-Zj2neY2nZGNydDlkdzlfOWQ5YmI1N2M1", "0B4T-Zj2neY2nYmM0NDRkM2EtZWNlZC00N2QyLTk5ZjQtNTRjNmY4ZDU4MGY0");
} catch (Exception $e) {
    echo 
'Error  : ',  $e->getMessage(), "\n";
}

$gData->closeConnection();

?>