You have no favorites... yet!
Use the Library tree on the left to select a Choreo to call from your gateway device.
Use the Library tree on the left to select a Choreo to call from your edge device via the gateway.
Library . NYTimes . CampaignFinance . PresidentialCampaigns . PresidentialStateZipTotals
Retrieve the total amount of donations aggregated by a specified location (by state and/or zipcode).
/*
TembooTask class placeholder
*/
/*
TembooTask header placeholder
*/
Since you've changed your device configuration, you'll need to tell us about this new device.
This feature is in experimental mode - pricing coming soon.
Send your code straight to a GitHub repository.
Your code will be visible by others in your repos. Keep credentials private by saving a Profile or commit code with Placeholder inputs.
The following files will be added to this repo:
You'll be able to edit and share your code from TI's CCS Cloud IDE.
The following will be sent to CCS Cloud:
/*
Your auto-generated code will appear here once you've configured your device above.
*/
/*
A header file containing your Temboo account information will appear here once you've
configured your device above.
*/
/*
Please log in to generate proxy server code for use with the JavaScript SDK.
*/
This Choreo retrieves the total amount of donations aggregated by a specified location (by state and/or zip code). The Choreo makes an HTTP request to the NYTimes Campaign Finance Service, which is described at http://developer.nytimes.com/docs/campaign_finance_api#h3-pres-state-zip.
Here's an example of acceptable inputs:
APIKey: {YOUR API KEY}
CampaignCycle: 2012
ResourceType: zips
Location: 10013
The following is a sample of the JSON information returned by this Choreo:
{ "results": [ { "contribution_count": 278, "zip": "10013", "total": "269521.48", "candidate": "/candidates/P80003338.json", "full_name": "Barack Obama", "party": "D" }, { "contribution_count": 109, "zip": "10013", "total": "161425.0", "candidate": "/candidates/P80003353.json", "full_name": "Mitt Romney", "party": "R" }, { "contribution_count": 8, "zip": "10013", "total": "5256.0", "candidate": "/candidates/P80000748.json", "full_name": "Ron Paul", "party": "R" }, { "contribution_count": 8, "zip": "10013", "total": "4998.0", "candidate": "/candidates/P00003608.json", "full_name": "Herman Cain", "party": "R" }, { "contribution_count": 2, "zip": "10013", "total": "4500.0", "candidate": "/candidates/P20003281.json", "full_name": "Rick Perry", "party": "R" }, { "contribution_count": 6, "zip": "10013", "total": "4150.0", "candidate": "/candidates/P20003067.json", "full_name": "Jon Huntsman", "party": "R" }, { "contribution_count": 2, "zip": "10013", "total": "3000.0", "candidate": "/candidates/P20002556.json", "full_name": "Tim Pawlenty", "party": "R" }, { "contribution_count": 1, "zip": "10013", "total": "2500.0", "candidate": "/candidates/P20002671.json", "full_name": "Gary Johnson", "party": "R" }, { "contribution_count": 1, "zip": "10013", "total": "500.0", "candidate": "/candidates/P60003654.json", "full_name": "Newt Gingrich", "party": "R" } ], "base_uri": "http://api.nytimes.com/svc/elections/us/v3/finances/2012/", "copyright": "Copyright (c) 2012 The New York Times Company. All Rights Reserved.", "cycle": 2012, "status": "OK", "offset": 0 }
https://ACCOUNT_NAME.temboolive.com/callback/google
© 2025 Temboo, Inc Privacy Terms