petsc-3.7.1 2016-05-15
Report Typos and Errors

PetscGoogleDriveUpload

Loads a file to the Google Drive

Synopsis

PetscErrorCode PetscGoogleDriveUpload(MPI_Comm comm,const char access_token[],const char filename[])
Not collective, only the first process in the MPI_Comm uploads the file Many br

Input Parameters

comm - MPI communicator Many br
access_token - obtained with PetscGoogleDriveRefresh(), pass NULL to have PETSc generate one Many br
filename - file to upload; if you upload multiple times it will have different names each time on Google Drive Many br

Options Database

-google_refresh_token XXX - Many brUsage Patterns: Many brWith PETSc option -google_refresh_token XXX given Many brPetscGoogleDriveUpload(comm,NULL,filename); will upload file with no user interaction Many br

Without PETSc option -google_refresh_token XXX given Many brPetscGoogleDriveUpload(comm,NULL,filename); for first use will prompt user to authorize access to Google Drive with their processor Many br

With PETSc option -google_refresh_token XXX given Many brPetscGoogleDriveRefresh(comm,NULL,access_token,sizeof(access_token)); Many brPetscGoogleDriveUpload(comm,access_token,filename); Many br

With refresh token entered in some way by the user Many brPetscGoogleDriveRefresh(comm,refresh_token,access_token,sizeof(access_token)); Many brPetscGoogleDriveUpload(comm,access_token,filename); Many br

PetscGoogleDriveAuthorize(comm,access_token,refresh_token,sizeof(access_token)); Many brPetscGoogleDriveUpload(comm,access_token,filename); Many br

Many br

See Also

PetscURLShorten(), PetscGoogleDriveAuthorize(), PetscGoogleDriveRefresh()

Level:intermediate
Location:
src/sys/webclient/google.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/sys/webclient/examples/tutorialsgoogledriveupload.c.html