If{"Count":{"type":"","description":"The total number of records returned for any given search."},"Response":{"type":"","description":"The response from EnviroFacts."},"Success":{"type":"boolean"}}then write

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

Notes

This Choreo allows you to look up products by sector in the EPA Design for the Environment database. The documentation for this EnviroFacts resource can be found here.

If a SectorID is specified, the choreo will return records for products in that sector. If a SectorKeyword is specified (i.e. any word in the name of the sector) the Choreo will return any products in the database which are a match for that sector keyword. A Category can also be specified (Industrial or Consumer), in which case the Choreo will return records for all products in that category.

The DfE database contains products labeled either Industrial or Consumer. You can look up all the possible Sectors (i.e. Carpet Cleaners, Fire-Fighting Products) in the drop-down menu on the EPA website for each of the Consumer or Industrial types of products here. To obtain a SectorID number for any sector, first run the AdvancedSearch Choreo using that sector's keywords.

The optional Operator input by default is set to "=" when SectorID is specified, which searches for exact matches. It is set to "CONTAINING" when either SectorKeyword or CompanyKeyword is specified, to make the keyword search more flexible. Other possible values for the Operator input include ">", "<" and "!=" (does not equal) for customized number searches, and "BEGINNING" for a customized keyword searches which begin with the given input.

Here is an example of an acceptable set of inputs:

SectorKeyword: Cleaners

The following is a sample of the XML information returned as the Count output:

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.