Save the Consent Screen details and specify the callback URL below as the Authorized Redirect URI. Make sure to replace ACCOUNT_NAME with your Temboo account name.
https://ACCOUNT_NAME.temboolive.com/callback/google
Go to the Google > OAuth > InitializeOAuth Choreo page, and fill in the Client ID from the app you registered at Google and at least one of the following Scopes:
https://www.googleapis.com/auth/gmail.modify https://www.googleapis.com/auth/gmail.send https://www.googleapis.com/auth/gmail.compose https://mail.google.com/
Then click Generate Code to run the Choreo from our site. The InitializeOAuth choreo will return an authorization URL and a callback ID, which is required for the FinalizeOAuth step.
Open a new web browser, navigate to the authorization URL returned by the InitializeOAuth Choreo, and click Allow to grant the app access to your Google account.
Select from the drop down menu.
Let's set up the sensor that will trigger email alerts. We provide unit converted data for specific sensor models, such as Celsius and Fahrenheit for temperature sensors. We also support unconverted data which is reported as raw values for analog data and high/low for digital.
For this tutorial we're going to read temperature data from a Texas Instruments LMT84P. Our unit conversion formula assumes that your temperature sensor is connected to your 's 5V pin for its voltage in, and set up as specified in the sensor's data sheet.
Using the virtual pin board on the Choreo page, select pin to set up your sensor. Select the category 'Temperature', then choose the Texas Instruments LMT84LP.
Deselect the Graph Safe Bounds option. We aren't creating sensor graphs in this tutorial, so we won't need it. Check out our Data Vizualization Quickstart if you want to learn how to create live online sensor graphs for monitoring data.
We want the to send an email if the temperature value is higher than 50ºF, so click the operator drop down menu and choose the greater than sign, and change the number to 50. We can also set how many times we want our email to send in the event that the condition is met—this helps prevent sending too many alert messages.
Fill in the Client ID and Client Secret you got from the Google Developer Console. Supply the Refresh Token you got from the OAuth process, then hit the Save Profile button to save a Profile for your Gmail account. Now you can reuse your Gmailv2 authorization details on any of our Gmailv2 Choreos and it will also make your code simpler and more secure.
If you'd like, you can dynamically insert the value of your sensor reading into one of your inputs with the blue sensor button located inside the input field.
In order to run this sketch, it needs to be configured with an appropriate TembooAccount.h
header file containing your Temboo account information. Header files for certain boards will also include the device’s internet connection details.
To create the header file, make a new tab in the IDE, and name it TembooAccount.h
.
TembooAccount.h
tab in your IDE.We're always happy to help. Just email us at support@temboo.com, and we'll answer your questions.
Save the Consent Screen details and specify the callback URL below as the Authorized Redirect URI. Make sure to replace ACCOUNT_NAME with your Temboo account name.
https://ACCOUNT_NAME.temboolive.com/callback/google
Go to the Google > OAuth > InitializeOAuth Choreo page, and fill in the Client ID from the app you registered at Google and at least one of the following Scopes:
https://www.googleapis.com/auth/gmail.modify https://www.googleapis.com/auth/gmail.send https://www.googleapis.com/auth/gmail.compose https://mail.google.com/
Then click Generate Code to run the Choreo from our site. The InitializeOAuth choreo will return an authorization URL and a callback ID, which is required for the FinalizeOAuth step.
Open a new web browser, navigate to the authorization URL returned by the InitializeOAuth Choreo, and click Allow to grant the app access to your Google account.
Select from the drop down menu.
Let’s set up the sensor that will trigger email alerts. Using the virtual pin board on the Choreo page, select pin to set up your sensor. Select the category 'Temperature', and name your sensor.
With your sensor in place, you'll see an option to set a condition based on your sensor value. We'll select the sensor we just set up. We want the text message to get sent if the sensor value is higher than 50, so we'll click the operator drop down menu and choose the greater than sign, and change the number 0 to 50. We can also set how many times we want our text message to send in the event that the condition is met—this helps prevent sending too many alert messages.
Fill in the Client ID and Client Secret you got from the Google Developer Console. Supply the Refresh Token you got from the OAuth process, then hit the Save Profile button to save a Profile for your Gmail account. Now you can reuse your Gmailv2 authorization details on any of our Gmailv2 Choreos and it will also make your code simpler and more secure.
If you'd like, you can dynamically insert the value of your sensor reading into one of your inputs with the blue sensor button located inside the input field.
In order to run this sketch, it needs to be configured with an appropriate TembooAccount.h
header file containing your Temboo account information. Header files for certain boards will also include the device’s internet connection details.
To create the header file, make a new tab in the IDE, and name it TembooAccount.h
.
TembooAccount.h
tab in your IDE.We're always happy to help. Just email us at support@temboo.com, and we'll answer your questions.
If this is your first time using Temboo, you'll need to set up your ARTIK board to find the Temboo libraries. To do so, you'll need to create the file temboo.conf
in /etc/ld.so.conf.d
. Inside of temboo.conf
, you'll want to copy the line below and paste it into the file:
/opt/iothub/artik/temboo/temboo_artik_library/lib
temboo.conf
, run ldconfig
from the command line to add the Temboo library directory to the system library search path.You’ll also need to get the IP address of your ARTIK board using ifconfig
. The example below shows the results when the ARTIK board is connected to the internet through an ethernet cable. The IP address you'll want to use is listed next to inet.
[root@localhost ~]$ ifconfig eth0: flags=4163mtu 1500 inet 10.11.6.200 netmask 255.255.255.0 broadcast 10.11.6.255
Save the Consent Screen details and specify the callback URL below as the Authorized Redirect URI. Make sure to replace ACCOUNT_NAME with your Temboo account name.
https://ACCOUNT_NAME.temboolive.com/callback/google
Go to the Google > OAuth > InitializeOAuth Choreo page, and fill in the Client ID from the app you registered at Google and at least one of the following Scopes:
https://www.googleapis.com/auth/gmail.modify https://www.googleapis.com/auth/gmail.send https://www.googleapis.com/auth/gmail.compose https://mail.google.com/
Then click Generate Code to run the Choreo from our site. The InitializeOAuth choreo will return an authorization URL and a callback ID, which is required for the FinalizeOAuth step.
Open a new web browser, navigate to the authorization URL returned by the InitializeOAuth Choreo, and click Allow to grant the app access to your Google account.
Select from the drop down menu.
Let’s set up the sensor that will trigger email alerts. Using the virtual pin board on the Choreo page, select pin to set up your sensor. Select the category 'Temperature', and name your sensor.
With your sensor in place, you'll see an option to set a condition based on your sensor value. We'll select the sensor we just set up. We want the text message to get sent if the sensor value is higher than 50, so we'll click the operator drop down menu and choose the greater than sign, and change the number 0 to 50. We can also set how many times we want our text message to send in the event that the condition is met—this helps prevent sending too many alert messages.
Fill in the Client ID and Client Secret you got from the Google Developer Console. Supply the Refresh Token you got from the OAuth process, then hit the Save Profile button to save a Profile for your Gmail account. Now you can reuse your Gmailv2 authorization details on any of our Gmailv2 Choreos and it will also make your code simpler and more secure.
If you'd like, you can dynamically insert the value of your sensor reading into one of your inputs with the blue sensor button located inside the input field.
Download the generated code to your computer by clicking Download source code to the right of the code.
Copy the downloaded zip file to your ARTIK board using scp
. From your computer, go to the directory where the zip file is located and type the command below. Make sure you use the IP address for your board you found using ifconfig
.
[root@localhost ~]$ scp .zip root@xxx.xxx.xxx.xxx:/home
From the ARTIK command line (either through a serial terminal or ssh session), change your current directory to /home
. Next, unzip the generated code you just copied over. You can unzip the file by using the command below:
[root@localhost ~]$ unzip .zip
Now go to the directory and compile and run your code using the commands below. Run the first command to compile your code. After compiling has finished and no errors have been reported, run your program using the second command. After running the program, you should see the response from in your console.
[root@localhost ~]$ gcc -L/opt/iothub/artik/temboo/temboo_artik_library/lib -ltemboo -I/opt/iothub/artik/temboo/temboo_artik_library/include s.c -o [root@localhost ~]$ ./
Note: If you get an error about cdefs.h not being found, this could mean your ARTIK board was not shipped with glibc-headers. This can be solved by reinstalling glibc-headers using the command below. After reinstalling glibc-headers, run the two commands above to compile and run your code.
[root@localhost ~]$ yum reinstall glibc-headers
We're always happy to help. Just email us at support@temboo.com, and we'll answer your questions.
Save the Consent Screen details and specify the callback URL below as the Authorized Redirect URI. Make sure to replace ACCOUNT_NAME with your Temboo account name.
https://ACCOUNT_NAME.temboolive.com/callback/google
Go to the Google > OAuth > InitializeOAuth Choreo page, and fill in the Client ID from the app you registered at Google and at least one of the following Scopes:
https://www.googleapis.com/auth/gmail.modify https://www.googleapis.com/auth/gmail.send https://www.googleapis.com/auth/gmail.compose https://mail.google.com/
Then click Generate Code to run the Choreo from our site. The InitializeOAuth choreo will return an authorization URL and a callback ID, which is required for the FinalizeOAuth step.
Open a new web browser, navigate to the authorization URL returned by the InitializeOAuth Choreo, and click Allow to grant the app access to your Google account.
Select from the drop down menu.
Let’s set up the sensor that will trigger email alerts. Using the virtual pin board on the Choreo page, select pin to set up your sensor. Select the category 'Temperature', and name your sensor.
With your sensor in place, you'll see an option to set a condition based on your sensor value. We'll select the sensor we just set up. We want the text message to get sent if the sensor value is higher than 50, so we'll click the operator drop down menu and choose the greater than sign, and change the number 0 to 50. We can also set how many times we want our text message to send in the event that the condition is met—this helps prevent sending too many alert messages.
Fill in the Client ID and Client Secret you got from the Google Developer Console. Supply the Refresh Token you got from the OAuth process, then hit the Save Profile button to save a Profile for your Gmail account. Now you can reuse your Gmailv2 authorization details on any of our Gmailv2 Choreos and it will also make your code simpler and more secure.
If you'd like, you can dynamically insert the value of your sensor reading into one of your inputs with the blue sensor button located inside the input field.
In order to run this sketch, it needs to be configured with an appropriate TembooAccount.h
header file containing your Temboo account information. Header files for certain boards will also include the device’s internet connection details.
To create the header file, make a new tab in the IDE, and name it TembooAccount.h
.
TembooAccount.h
tab in your IDE.The final step before running any sketch is to confirm that you've selected the appropriate board and serial port in Energia. Go to the Tools > Board menu and select the LaunchPad you're working with. Then go to Tools > Serial Port and select the port your board is connected to.
We're always happy to help. Just email us at support@temboo.com, and we'll answer your questions.
Save the Consent Screen details and specify the callback URL below as the Authorized Redirect URI. Make sure to replace ACCOUNT_NAME with your Temboo account name.
https://ACCOUNT_NAME.temboolive.com/callback/google
Go to the Google > OAuth > InitializeOAuth Choreo page, and fill in the Client ID from the app you registered at Google and at least one of the following Scopes:
https://www.googleapis.com/auth/gmail.modify https://www.googleapis.com/auth/gmail.send https://www.googleapis.com/auth/gmail.compose https://mail.google.com/
Then click Generate Code to run the Choreo from our site. The InitializeOAuth choreo will return an authorization URL and a callback ID, which is required for the FinalizeOAuth step.
Open a new web browser, navigate to the authorization URL returned by the InitializeOAuth Choreo, and click Allow to grant the app access to your Google account.
Select from the drop down menu.
Let's set up the sensor that will trigger email alerts. We provide unit converted data for specific sensor models, such as Celsius and Fahrenheit for temperature sensors. We also support unconverted data which is reported as raw values for analog data and high/low for digital.
For this tutorial we're going to read temperature data from a Texas Instruments LMT84P. Our unit conversion formula assumes that your temperature sensor is connected to your 's 5V pin for its voltage in, and set up as specified in the sensor's data sheet.
Using the virtual pin board on the Choreo page, select pin to set up your sensor. Select the category 'Temperature', then choose the Texas Instruments LMT84LP.
Deselect the Graph Safe Bounds option. We aren't creating sensor graphs in this tutorial, so we won't need it. Check out our Data Vizualization Quickstart if you want to learn how to create live online sensor graphs for monitoring data.
We want the to send an email if the temperature value is higher than 50ºF, so click the operator drop down menu and choose the greater than sign, and change the number to 50. We can also set how many times we want our email to send in the event that the condition is met—this helps prevent sending too many alert messages.
Fill in the Client ID and Client Secret you got from the Google Developer Console. Supply the Refresh Token you got from the OAuth process, then hit the Save Profile button to save a Profile for your Gmail account. Now you can reuse your Gmailv2 authorization details on any of our Gmailv2 Choreos and it will also make your code simpler and more secure.
If you'd like, you can dynamically insert the value of your sensor reading into one of your inputs with the blue sensor button located inside the input field.
Scroll down to the code box of the Choreo page. Click Send to CCS Cloud to the right of your generated code. Name your application and click Send. Click the link that appears to visit the CCS Cloud IDE in your browser.
Run the code on your CC3220 from CCS Cloud. After running the code, open the Serial Monitor and you'll see the response from the Choreo.
We're always happy to help. Just email us at support@temboo.com, and we'll answer your questions.
.jar
file (e.g. temboo-android-sdk-core-2.19.0.jar
) in the Temboo SDK folder you just downloaded and extracted.libs
folder of your projectYou've now added the core Temboo SDK to your project. Repeat the above steps to add the application bundle (e.g. -2.19.0.jar
) from the Temboo SDK folder you just extracted, which will allow us to use APIs.
We'll now make some adjustments to the default application that Android Studio has generated for us.
app/src/main/res/AndroidManifest.xml
. In order to access the internet, you will need to add <uses-permission android:name="android.permission.INTERNET"/>
below the <application>
tag.TextView
that we'll make use of, but before we can do so we need to give it an identifier. Locate and double-click on the fileapp > src > main > res > layout > activity_main.xml
. This file describes the layout of our MainActivity
class.TextView
.@+id/response
Save the Consent Screen details and specify the callback URL below as the Authorized Redirect URI. Make sure to replace ACCOUNT_NAME with your Temboo account name.
https://ACCOUNT_NAME.temboolive.com/callback/google
Go to the Google > OAuth > InitializeOAuth Choreo page, and fill in the Client ID from the app you registered at Google and at least one of the following Scopes:
https://www.googleapis.com/auth/gmail.modify https://www.googleapis.com/auth/gmail.send https://www.googleapis.com/auth/gmail.compose https://mail.google.com/
Then click Generate Code to run the Choreo from our site. The InitializeOAuth choreo will return an authorization URL and a callback ID, which is required for the FinalizeOAuth step.
Open a new web browser, navigate to the authorization URL returned by the InitializeOAuth Choreo, and click Allow to grant the app access to your Google account.
Select from the drop down menu.
Fill in the Client ID and Client Secret you got from the Google Developer Console. Supply the Refresh Token you got from the OAuth process, then hit the Save Profile button to save a Profile for your Gmail account. Now you can reuse your Gmailv2 authorization details on any of our Gmailv2 Choreos and it will also make your code simpler and more secure.
AsyncTask
. Create a new class that extends AsyncTask
called "GmailTask" (or whatever you like), adding the @Override
implementations for doInBackground
and onProcessComplete
.TextView
as an argument. This will reference the TextView
we set up earlier.Now that our AsyncTask
is set up, copy the generated code snippet from the Temboo website and paste it into the doInBackground
method of your AsyncTask
class. We'll also add the required imports to create a SendMessage
Choreo, SendMessageInputSet
, and SendMessageResultSet
:
import com.temboo.Library.Google.Gmailv2.Messages.SendMessage; import com.temboo.Library.Google.Gmailv2.Messages.SendMessageInputSet; import com.temboo.Library.Google.Gmailv2.Messages.SendMessageResultSet; import com.temboo.core.TembooSession;
Each Choreo in the Android SDK returns a ResultSet
subclass that contains get methods tailored specifically to the outputs of that Choreo. Using the ResultSet
, you can retrieve the raw data (typically XML or JSON) returned by a third-party API or relevant fields that we've parsed out of the response for you.
To update the UI with the API response returned by the Choreo, do the following:
Add the following code at the bottom of the try
block of the doInBackground
method in your class:
return gmailV2_sendMessage.get_Response();
The return value we've just added is passed by Android as an argument to the onPostExecute
method. We'll update the UI there:
protected void onPostExecute(String result) { try { // Update the UI textView.setText(result); } catch(Exception e) { // if an exception occurred, show an error message Log.e(this.getClass().toString(), e.getMessage()); } }
MainActivity
class created with your project. The simplest way to do this is to add a call to it in the onCreate
method.We're always happy to help. Just email us at support@temboo.com, and we'll answer your questions.
TembooTest
. The new project should automatically include a C# class file called Program.cs
containing a Main
method.References
folder under TembooTest
and select Add Reference. In the dialogue box that appears, click Browse and select TembooSDK.dll
located in the bin
folder within the extracted Temboo SDK directory. Click OK.Save the Consent Screen details and specify the callback URL below as the Authorized Redirect URI. Make sure to replace ACCOUNT_NAME with your Temboo account name.
https://ACCOUNT_NAME.temboolive.com/callback/google
Go to the Google > OAuth > InitializeOAuth Choreo page, and fill in the Client ID from the app you registered at Google and at least one of the following Scopes:
https://www.googleapis.com/auth/gmail.modify https://www.googleapis.com/auth/gmail.send https://www.googleapis.com/auth/gmail.compose https://mail.google.com/
Then click Generate Code to run the Choreo from our site. The InitializeOAuth choreo will return an authorization URL and a callback ID, which is required for the FinalizeOAuth step.
Open a new web browser, navigate to the authorization URL returned by the InitializeOAuth Choreo, and click Allow to grant the app access to your Google account.
Select from the drop down menu.
Fill in the Client ID and Client Secret you got from the Google Developer Console. Supply the Refresh Token you got from the OAuth process, then hit the Save Profile button to save a Profile for your Gmail account. Now you can reuse your Gmailv2 authorization details on any of our Gmailv2 Choreos and it will also make your code simpler and more secure.
We're always happy to help. Just email us at support@temboo.com, and we'll answer your questions.
TembooTest
, select Objective-C as the Language, and click Next (the other fields are optional and may be left blank) to save your new project.TembooTest
and contain a file called main.m
), then select Add Files to TembooTest from the File menu. Browse to where you saved the Temboo SDK, locate and click on the core
folder inside the SDK src
folder. Make sure that Copy items if needed is unchecked and Create groups is selected, and then click Add.TMB.h
and TMB.m
files located in the SDk's src/library
folder.Save the Consent Screen details and specify the callback URL below as the Authorized Redirect URI. Make sure to replace ACCOUNT_NAME with your Temboo account name.
https://ACCOUNT_NAME.temboolive.com/callback/google
Go to the Google > OAuth > InitializeOAuth Choreo page, and fill in the Client ID from the app you registered at Google and at least one of the following Scopes:
https://www.googleapis.com/auth/gmail.modify https://www.googleapis.com/auth/gmail.send https://www.googleapis.com/auth/gmail.compose https://mail.google.com/
Then click Generate Code to run the Choreo from our site. The InitializeOAuth choreo will return an authorization URL and a callback ID, which is required for the FinalizeOAuth step.
Open a new web browser, navigate to the authorization URL returned by the InitializeOAuth Choreo, and click Allow to grant the app access to your Google account.
Select from the drop down menu.
Fill in the Client ID and Client Secret you got from the Google Developer Console. Supply the Refresh Token you got from the OAuth process, then hit the Save Profile button to save a Profile for your Gmail account. Now you can reuse your Gmailv2 authorization details on any of our Gmailv2 Choreos and it will also make your code simpler and more secure.
main.m
file between the Foundation.h
import statement and the main method. Make sure that you're using the Profile you created earlier and that you're sending the email to the address you want to send it to.main
method to run the Choreo, and then run your code.We're always happy to help. Just email us at support@temboo.com, and we'll answer your questions.
/libs
./libs
folder. Refresh the project, then right-click the JAR file and select: Build Path > Add to Build Path.main
method to your project. You can call it whatever you like.Save the Consent Screen details and specify the callback URL below as the Authorized Redirect URI. Make sure to replace ACCOUNT_NAME with your Temboo account name.
https://ACCOUNT_NAME.temboolive.com/callback/google
Go to the Google > OAuth > InitializeOAuth Choreo page, and fill in the Client ID from the app you registered at Google and at least one of the following Scopes:
https://www.googleapis.com/auth/gmail.modify https://www.googleapis.com/auth/gmail.send https://www.googleapis.com/auth/gmail.compose https://mail.google.com/
Then click Generate Code to run the Choreo from our site. The InitializeOAuth choreo will return an authorization URL and a callback ID, which is required for the FinalizeOAuth step.
Open a new web browser, navigate to the authorization URL returned by the InitializeOAuth Choreo, and click Allow to grant the app access to your Google account.
Select from the drop down menu.
Fill in the Client ID and Client Secret you got from the Google Developer Console. Supply the Refresh Token you got from the OAuth process, then hit the Save Profile button to save a Profile for your Gmail account. Now you can reuse your Gmailv2 authorization details on any of our Gmailv2 Choreos and it will also make your code simpler and more secure.
main
method of your Java class and organize your imports. Now run your code.We're always happy to help. Just email us at support@temboo.com, and we'll answer your questions.
.html
file and save it as temboo-example.html
into a folder where you'll save the rest of your project files..php
file and save it as proxy-server.php
into the same project folder as your temboo-example.html
file.js-sdk
and move it into the same folder as your temboo-example.html
file.Change the name of the resulting folder to php-sdk
and move it into the same folder as your temboo-example.html
file. Your project folder should look similar to the screenshot below:
Save the Consent Screen details and specify the callback URL below as the Authorized Redirect URI. Make sure to replace ACCOUNT_NAME with your Temboo account name.
https://ACCOUNT_NAME.temboolive.com/callback/google
Go to the Google > OAuth > InitializeOAuth Choreo page, and fill in the Client ID from the app you registered at Google and at least one of the following Scopes:
https://www.googleapis.com/auth/gmail.modify https://www.googleapis.com/auth/gmail.send https://www.googleapis.com/auth/gmail.compose https://mail.google.com/
Then click Generate Code to run the Choreo from our site. The InitializeOAuth choreo will return an authorization URL and a callback ID, which is required for the FinalizeOAuth step.
Open a new web browser, navigate to the authorization URL returned by the InitializeOAuth Choreo, and click Allow to grant the app access to your Google account.
Select from the drop down menu.
Fill in the Client ID and Client Secret you got from the Google Developer Console. Supply the Refresh Token you got from the OAuth process, then hit the Save Profile button to save a Profile for your Gmail account. Now you can reuse your Gmailv2 authorization details on any of our Gmailv2 Choreos and it will also make your code simpler and more secure.
In the same file, make sure that your script source points to the correct location of the temboo.js SDK file.
<!-- Adjust to point at the copy of the Temboo JavaScript SDK on your server --> <script src="js-sdk/js/temboo.js">< /script>
In the same file, we'll also want to confirm that the location of our proxy is correctly specified. Our server is proxy-server.php.
// Instantiate the client proxy with the URI of your server proxy var temboo = new TembooProxy('proxy-server.php');
In the proxy-server.php file, make sure that the require_once line points to the correct location of the PHP SDK file in the php-sdk folder that you downloaded earlier.
require_once('php-sdk/src/temboo.php');
Now let's add a few more lines so that we can see when an email has been sent without looking in the developer console. In your index.html file, locate the console.log print statement in the showResult success callback function and replace them with document.write statements.
// Success callback var showResult = function(outputs, outputFilters) { // Display outputs if(outputFilters) { // Display named output filters for(var name in outputFilters) { console.log(name + ':'); for(var item in outputs[name]) { document.write(' ' + outputs[name][item]); } } } else { // Display raw outputs for(var name in outputs) { document.write(name + ': ' + outputs[name]); } } };
We're always happy to help. Just email us at support@temboo.com, and we'll answer your questions.
tembootest.js
, though you can call it whatever you like.node_modules
in accordance with the convention established by the Node Package Manager. Move the node_modules
folder to the same directory as your new .js project file.Save the Consent Screen details and specify the callback URL below as the Authorized Redirect URI. Make sure to replace ACCOUNT_NAME with your Temboo account name.
https://ACCOUNT_NAME.temboolive.com/callback/google
Go to the Google > OAuth > InitializeOAuth Choreo page, and fill in the Client ID from the app you registered at Google and at least one of the following Scopes:
https://www.googleapis.com/auth/gmail.modify https://www.googleapis.com/auth/gmail.send https://www.googleapis.com/auth/gmail.compose https://mail.google.com/
Then click Generate Code to run the Choreo from our site. The InitializeOAuth choreo will return an authorization URL and a callback ID, which is required for the FinalizeOAuth step.
Open a new web browser, navigate to the authorization URL returned by the InitializeOAuth Choreo, and click Allow to grant the app access to your Google account.
Select from the drop down menu.
Fill in the Client ID and Client Secret you got from the Google Developer Console. Supply the Refresh Token you got from the OAuth process, then hit the Save Profile button to save a Profile for your Gmail account. Now you can reuse your Gmailv2 authorization details on any of our Gmailv2 Choreos and it will also make your code simpler and more secure.
We're always happy to help. Just email us at support@temboo.com, and we'll answer your questions.
Unzip the downloaded SDK and move the resulting php-sdk folder into the same parent folder as your new, blank PHP file.
Add the Temboo PHP SDK to your script:
require 'php-sdk/src/temboo.php';
Save the Consent Screen details and specify the callback URL below as the Authorized Redirect URI. Make sure to replace ACCOUNT_NAME with your Temboo account name.
https://ACCOUNT_NAME.temboolive.com/callback/google
Go to the Google > OAuth > InitializeOAuth Choreo page, and fill in the Client ID from the app you registered at Google and at least one of the following Scopes:
https://www.googleapis.com/auth/gmail.modify https://www.googleapis.com/auth/gmail.send https://www.googleapis.com/auth/gmail.compose https://mail.google.com/
Then click Generate Code to run the Choreo from our site. The InitializeOAuth choreo will return an authorization URL and a callback ID, which is required for the FinalizeOAuth step.
Open a new web browser, navigate to the authorization URL returned by the InitializeOAuth Choreo, and click Allow to grant the app access to your Google account.
Select from the drop down menu.
Fill in the Client ID and Client Secret you got from the Google Developer Console. Supply the Refresh Token you got from the OAuth process, then hit the Save Profile button to save a Profile for your Gmail account. Now you can reuse your Gmailv2 authorization details on any of our Gmailv2 Choreos and it will also make your code simpler and more secure.
Temboo_Session
object, and run your code.We're always happy to help. Just email us at support@temboo.com, and we'll answer your questions.
temboo
folder into your Documents/Processing/libraries/
folder (or My Documents/Processing/libraries/
on a PC). If Processing is currently open, restart it so that it will recognize the Temboo library that you just added.Save the Consent Screen details and specify the callback URL below as the Authorized Redirect URI. Make sure to replace ACCOUNT_NAME with your Temboo account name.
https://ACCOUNT_NAME.temboolive.com/callback/google
Go to the Google > OAuth > InitializeOAuth Choreo page, and fill in the Client ID from the app you registered at Google and at least one of the following Scopes:
https://www.googleapis.com/auth/gmail.modify https://www.googleapis.com/auth/gmail.send https://www.googleapis.com/auth/gmail.compose https://mail.google.com/
Then click Generate Code to run the Choreo from our site. The InitializeOAuth choreo will return an authorization URL and a callback ID, which is required for the FinalizeOAuth step.
Open a new web browser, navigate to the authorization URL returned by the InitializeOAuth Choreo, and click Allow to grant the app access to your Google account.
Select from the drop down menu.
Fill in the Client ID and Client Secret you got from the Google Developer Console. Supply the Refresh Token you got from the OAuth process, then hit the Save Profile button to save a Profile for your Gmail account. Now you can reuse your Gmailv2 authorization details on any of our Gmailv2 Choreos and it will also make your code simpler and more secure.
We're always happy to help. Just email us at support@temboo.com, and we'll answer your questions.
TembooTest.py
, though you can call it whatever you like.Save the Consent Screen details and specify the callback URL below as the Authorized Redirect URI. Make sure to replace ACCOUNT_NAME with your Temboo account name.
https://ACCOUNT_NAME.temboolive.com/callback/google
Go to the Google > OAuth > InitializeOAuth Choreo page, and fill in the Client ID from the app you registered at Google and at least one of the following Scopes:
https://www.googleapis.com/auth/gmail.modify https://www.googleapis.com/auth/gmail.send https://www.googleapis.com/auth/gmail.compose https://mail.google.com/
Then click Generate Code to run the Choreo from our site. The InitializeOAuth choreo will return an authorization URL and a callback ID, which is required for the FinalizeOAuth step.
Open a new web browser, navigate to the authorization URL returned by the InitializeOAuth Choreo, and click Allow to grant the app access to your Google account.
Select from the drop down menu.
Fill in the Client ID and Client Secret you got from the Google Developer Console. Supply the Refresh Token you got from the OAuth process, then hit the Save Profile button to save a Profile for your Gmail account. Now you can reuse your Gmailv2 authorization details on any of our Gmailv2 Choreos and it will also make your code simpler and more secure.
Now you're ready to run the script. Here's the command you need to run if you're executing this from the command line. Otherwise just run it from your IDE.
python TembooTest.py
We're always happy to help. Just email us at support@temboo.com, and we'll answer your questions.
gem install temboo-ruby-sdk-x.gem
, where x is the version number. You will now be able to access Temboo's Ruby SDK in your code.Save the Consent Screen details and specify the callback URL below as the Authorized Redirect URI. Make sure to replace ACCOUNT_NAME with your Temboo account name.
https://ACCOUNT_NAME.temboolive.com/callback/google
Go to the Google > OAuth > InitializeOAuth Choreo page, and fill in the Client ID from the app you registered at Google and at least one of the following Scopes:
https://www.googleapis.com/auth/gmail.modify https://www.googleapis.com/auth/gmail.send https://www.googleapis.com/auth/gmail.compose https://mail.google.com/
Then click Generate Code to run the Choreo from our site. The InitializeOAuth choreo will return an authorization URL and a callback ID, which is required for the FinalizeOAuth step.
Open a new web browser, navigate to the authorization URL returned by the InitializeOAuth Choreo, and click Allow to grant the app access to your Google account.
Select from the drop down menu.
Fill in the Client ID and Client Secret you got from the Google Developer Console. Supply the Refresh Token you got from the OAuth process, then hit the Save Profile button to save a Profile for your Gmail account. Now you can reuse your Gmailv2 authorization details on any of our Gmailv2 Choreos and it will also make your code simpler and more secure.
Put your imports in place at the top of the file. They should look like the sample below.
require "temboo" require "Library/Google"
We're always happy to help. Just email us at support@temboo.com, and we'll answer your questions.
Save the Consent Screen details and specify the callback URL below as the Authorized Redirect URI. Make sure to replace ACCOUNT_NAME with your Temboo account name.
https://ACCOUNT_NAME.temboolive.com/callback/google
Go to the Google > OAuth > InitializeOAuth Choreo page, and fill in the Client ID from the app you registered at Google and at least one of the following Scopes:
https://www.googleapis.com/auth/gmail.modify https://www.googleapis.com/auth/gmail.send https://www.googleapis.com/auth/gmail.compose https://mail.google.com/
Then click Generate Code to run the Choreo from our site. The InitializeOAuth choreo will return an authorization URL and a callback ID, which is required for the FinalizeOAuth step.
Open a new web browser, navigate to the authorization URL returned by the InitializeOAuth Choreo, and click Allow to grant the app access to your Google account.
Select from the drop down menu.
Fill in the Client ID and Client Secret you got from the Google Developer Console. Supply the Refresh Token you got from the OAuth process, then hit the Save Profile button to save a Profile for your Gmail account. Now you can reuse your Gmailv2 authorization details on any of our Gmailv2 Choreos and it will also make your code simpler and more secure.
We're always happy to help. Just email us at support@temboo.com, and we'll answer your questions.