SproutCMS

This is the code documentation for the SproutCMS project

function apiRequest()

Performs an API request

Usage

array GoogleDriveApi::apiRequest ( string $method , string $url [, array $data [, bool $headers ]] );

Arguments

  1. string $method
    GET|POST
  2. string $url
    API endpoint URL. @see https://developers.google.com/drive/v3/reference/
  3. array $data = NULL
    Message body. Will be json encoded
  4. bool $headers = FALSE
    False by default

Return value

  • array
    Response from Google