[ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
Functions for operating with the skydrive API
Author: | Dan Poltawski <dan.poltawski@luns.net.uk> |
Copyright: | 2012 Lancaster University Network Services Ltd |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 243 lines (9 kb) |
Included or required: | 1 time |
Referenced: | 0 times |
Includes or requires: | 0 files |
microsoft_skydrive:: (8 methods):
__construct()
use_http_get()
auth_url()
token_url()
download_file()
get_folder_name()
get_file_list()
folder_cache_key()
Class: microsoft_skydrive - X-Ref
A helper class to access microsoft live resources using the api.__construct($clientid, $clientsecret, $returnurl) X-Ref |
Construct a skydrive request object param: string $clientid client id for OAuth 2.0 provided by microsoft param: string $clientsecret secret for OAuth 2.0 provided by microsoft param: moodle_url $returnurl url to return to after succseful auth |
use_http_get() X-Ref |
Should HTTP GET be used instead of POST? The Microsoft API does not support POST, so we should use GET instead (with the auth_token passed as a GET param). return: bool true if GET should be used |
auth_url() X-Ref |
Returns the auth url for OAuth 2.0 request return: string the auth url |
token_url() X-Ref |
Returns the token url for OAuth 2.0 request return: string the auth url |
download_file($id, $path) X-Ref |
Downloads a file to a file from skydrive using authenticated request param: string $id id of file param: string $path path to save file to return: array stucture for repository download_file |
get_folder_name($folderid) X-Ref |
Returns a folder name property for a given folderid. param: string $folderid the folder id which is passed return: mixed folder name or false in case of error |
get_file_list($path = '') X-Ref |
Returns a list of files the user has formated for files api param: string $path the path which we are in return: mixed Array of files formated for fileapoi |
folder_cache_key($folderid) X-Ref |
Returns a key for foldernane cache param: string $folderid the folder id which is to be cached return: string the cache key to use |
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |