Class for manipulating google documents through the google data api.
More...
|
string const | DOCUMENTFEED_URL = 'https://docs.google.com/feeds/default/private/full' |
| Document list url.
|
|
string const | REALM = 'https://docs.google.com/feeds/ https://spreadsheets.google.com/feeds/ https://docs.googleusercontent.com/' |
| Realm for authentication, need both docs and spreadsheet realm.
|
|
string const | UPLOAD_URL = 'https://docs.google.com/feeds/upload/create-session/default/private/full?convert=false' |
| Upload url.
|
|
Class for manipulating google documents through the google data api.
Docs for this can be found here:
@subpackage lib
- Copyright
- Dan Poltawski talkt.nosp@m.odan.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
Constructor.
- Parameters
-
google_oauth | $googleoauth | oauth curl class for making authenticated requests |
◆ download_file()
google_docs::download_file |
( |
|
$url, |
|
|
|
$path, |
|
|
|
$timeout = 0 |
|
) |
| |
Downloads a file using authentication.
- Parameters
-
string | $url | url of file |
string | $path | path to save file to |
int | $timeout | request timeout, default 0 which means no timeout |
- Return values
-
array | stucture for repository download_file |
◆ get_file_list()
google_docs::get_file_list |
( |
|
$search = '' | ) |
|
Returns a list of files the user has formated for files api.
- Parameters
-
string | $search | A search string to do full text search on the documents |
- Return values
-
mixed | Array of files formated for fileapoi |
◆ send_file()
google_docs::send_file |
( |
|
$file | ) |
|
Sends a file object to google documents.
- Parameters
-
- Return values
-
The documentation for this class was generated from the following file: