Pick a Choreo for your Edge Device

Completes the OAuth process by retrieving a 23andMe access token, refresh token, and expiration time for the access token, after they have visited the authorization URL returned by the InitializeOAuth choreo and clicked "allow."

Input

ClientIDThe Client ID provided by 23andMe.

ClientSecretThe Client Secret provided by 23andMe.

CallbackIDThe callback token returned by the InitializeOAuth Choreo. Used to retrieve the authorization code after the user authorizes.

Optional Input

SuppressErrorsWhen set to true, errors received during the OAuth redirect process will be suppressed and returned in the ErrorMessage output.

TimeoutThe amount of time (in seconds) to poll your Temboo callback URL to see if your app's user has allowed or denied the request for access. Defaults to 20. Max is 60.

If{"AccessToken":{"type":"string","description":"The Access Token for the user that has granted access to your application."},"ErrorMessage":{"type":"string","description":"Contains an error message if an error occurs during the OAuth redirect process and if SuppressErrors is set to true."},"Expires":{"type":"integer","description":"The expiration time in seconds of the access token retrieved."},"RefreshToken":{"type":"string","description":"A valid refresh token used to generate a new access token."},"Success":{"type":"boolean"}}then write

/*
Please log in to generate proxy server code for use with the JavaScript SDK.
*/

Notes

This Choreo completes the OAuth process by retrieving an access token for a user. The Choreo first uses a CallbackID as input to retrieve the callback data that Temboo collects for you when the app's user authorizes the request. In this case, it's an authorization code. Then, the Choreo makes a final request to retrieve an access token from 23andMe. Here's an example of acceptable inputs:

We recommend keeping important credentials out of your code by storing them on Temboo. This also reduces memory consumption and makes it easy to update them without changing your code.

Supply Some Inputs

Give the process an input value e.g., "New York City".

You'll find notes for valid inputs by scrolling to the bottom of the page.

Supply Some Inputs

Fill in the desired Subject, FromAddress, ToAddress, and MessageBody.

Supply Some Inputs

Fill in the desired From, Subject, To, and MessageBody.

Supply Some Inputs

Fill in the desired Values and SpreadsheetID.

Supply Some Inputs

Fill in the desired From, To and Body.

Supply Some Inputs

Fill in the Text input with “Press 1 to change the state of your pin”. This is the message that will be translated to speech in the phone call alert. Fill in the desired ByeText, To, and Body. Set MaxDigits to 1.

Test your inputs in the browser

Click 'Generate Code' to test that your inputs are valid.

Set an Output Trigger

Set a condition based on your actuator values if your Yun should call based on an output.

Select Your Language

Select from the list of boards that come pre-shipped with Temboo's libraries.

Voila! Your Code Is Ready

Download your code and you’re ready to run.

Google requires that you enable 2-step verification and generate an App password to use this Choreo. If you’d like to authenticate using OAuth credentials, you should use the Google.Gmailv2 Choreos.

Obtain Your Client ID

We recommend checking out this video before getting started with OAuth.