GCP.CredentialMethod
Credential(data::Dict{Symbol, String})

Initialise credentials from dictionary containing values.

GCP.CredentialMethod
Credential(filename)

Load credentials from a JSON file.

GCP.SessionType

Session(...)

OAuth 2.0 session for Google using provided credential.

Caches authorisation tokens up to expiry.

sess = Session(Credential(expanduser("~/auth.json")), ["devstorage.full_control"])
GCP.JWSFunction
JWS(credential, claimset)

Construct the Base64-encoded JSON Web Signature based on the JWT header, claimset and signed using the private key provided in the Google JSON service-account key.

GCP.SHA256withRSAMethod
SHA256withRSA(message, key)

Sign message using private key with RSASSA-PKCS1-V1_5-SIGN algorithm.

GCP.authorizeMethod
authorize(session; cache=true)

Get OAuth 2.0 authorisation token from Google.

If cache set to true, get a new token only if the existing token has expired.

GCP.isurlMethod
isurl(path)

Return true if path is a URL and false a path fragment.

GCP.unixsecondsMethod
unixseconds(x)

Convert date-time into unix seconds.