SproutCMS

This is the code documentation for the SproutCMS project

class GoogleDriveApi

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2024-09-21
**/
class NewClassName extends GoogleDriveApi {
    
    /**
    * Load Oauth2 token. May cause a token refresh
    **/
    public function getToken () {
        // Method code goes here
    }
    
    /**
    * Performs an API request
    **/
    public function apiRequest (string $method, string $url, array $data, bool $headers) {
        // Method code goes here
    }
    
    /**
    * Loads Oauth2 config
    **/
    public function getConfig () {
        // Method code goes here
    }
    
    public function refreshOauthToken (mixed $token) {
        // Method code goes here
    }
    
    /**
    * Request an Oauth2 code
    **/
    public function requestOauthCode () {
        // Method code goes here
    }
    
    /**
    * Save Oauth token
    **/
    public function saveOauthToken (string $code) {
        // Method code goes here
    }
    
}
?>