UseGoogleDrive()

Syntax

UseGoogleDrive(ClientID$, ApiKey$, Callback)
Description
Initializes Google Drive access for a specific application. Only one application can be registered at once.

Parameters

ClientID$ The google client ID of the application which is used to access the drive. Each application has it's own ID, for example "568545051626-vlffi940ra93pmb3pl3tq1eaueejje7h" for the test application 'SpiderEditor'. To create your own id, you need to go to the google developer console.
ApiKey$ The API key of the application which is used to access the drive. Each application has it's own API key, for example "AIzaSyAp_978UH3YhI4czaGaFmWWvN14AJgNfVQ" for the test application 'SpiderEditor'. To create your own API key, you need to go to the google developer console.
Callback The callback which will be called when everything is ready to use Google Drive. If it is not called, then Google Drive is not available. It has to be declared like this:
  Procedure Callback()
    ; Google drive is ready to use.
  EndProcedure

Return value

None.

Example

  Procedure GoogleDriveReady()
    Debug "Google drive is ready"
  EndProcedure
  
  ; Uses the SpiderEditor test application
  ;
  UseGoogleDrive("568545051626-vlffi940ra93pmb3pl3tq1eaueejje7h", 
                 "AIzaSyAp_978UH3YhI4czaGaFmWWvN14AJgNfVQ", @GoogleDriveReady())

See Also

OpenFileRequester()

Supported OS

All

<- SelectedFileName() - Requester Index