The supported formats for the returned OAuth2 token.
Type:JSON
string JSON format, for example {"access_token": "..."}
FORM_URL_ENCODED
string Form URL-encoded, for example access_token=...
Creates a new OAuth2 service with the name specified. It's usually best to create and configure your service once at the start of your script, and then reference them during the different phases of the authorization flow.
Parameters: Name Type DescriptionserviceName
string The name of the service.
The service object.
Decodes and returns the parts of the JWT. The signature is not verified.
Parameters: Name Type Descriptionjwt
string The JWT to decode.
The decoded payload.
Encodes and signs a JWT.
Parameters: Name Type Descriptionpayload
Object The JWT payload. key
string The key to use when generating the signature.
The encoded and signed JWT.
Copy all of the properties in the source objects over to the destination object, and return the destination object.
Parameters: Name Type Descriptiondestination
Object The combined object. source
Object The object who's properties are copied to the destination.
Returns:
A combined object with the desination and source properties.
Returns the redirect URI that will be used for a given script. Often this URI needs to be entered into a configuration screen of your OAuth provider.
Parameters: Name Type Attributes DescriptionoptScriptId
string <optional>
The redirect URI.
Gets the list of services with tokens stored in the given property store. This is useful if you connect to the same API with multiple accounts and need to keep track of them. If no stored tokens are found this will return an empty array.
Parameters: Name Type DescriptionpropertyStore
PropertiesService.Properties The properties to check.
The service names.
Gets a copy of an object with all the keys converted to lower-case strings.
Parameters: Name Type Descriptionobj
Object The object to copy.
A shallow copy of the object with all lower-case keys.
tokenPayload
Object A hash of parameters to be sent to the token URL. Properties Name Type Description code
string The authorization code. client_id
string The client ID. client_secret
string The client secret. redirect_uri
string The redirect URI. grant_type
string The type of grant requested.
A modified hash of parameters to be sent to the token URL.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4