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

PetscGoogleDriveRefresh

Get a new authorization token for accessing Google drive from PETSc from a refresh token

Synopsis

PetscErrorCode PetscGoogleDriveRefresh(MPI_Comm comm,const char refresh_token[],char access_token[],size_t tokensize)
Not collective, only the first process in the MPI_Comm does anything Many br

Input Parameters

comm - MPI communicator Many br
refresh token - obtained with PetscGoogleDriveAuthorize(), if NULL PETSc will first look for one in the options data Many brif not found it will call PetscGoogleDriveAuthorize() Many br
tokensize - size of the output string access_token Many br

Output Parameter

access_token -token that can be passed to PetscGoogleDriveUpload() Many br

Options Database

-google_refresh_token XXX where XXX was obtained from PetscGoogleDriveAuthorize() - Many br Many br

See Also

PetscURLShorten(), PetscGoogleDriveAuthorize(), PetscGoogleDriveUpload()

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