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 . Labs . GoodCitizen . Civic
Retrieves a host of information about the district and representatives of a specified location.
/*
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.
*/
The Civic Choreo allows you to retrieve a host of information about your district and representatives based on the Latitude and Logitude inputs you provide. Currently, this Choreo returns:
Below is a sample set of inputs:
Latitude: 40.718503
Longitude: -74.005652
APICredentials:
{ "SunlightLabs": { "APIKey": "YOUR SUNLIGHT API KEY" }, "LittleSis": { "APIKey": "YOUR LITTLE SIS API KEY" } }
This Choreo chains one or more "Child Choreos" together. Below is a list of the Temboo Library Choreos that are called by this Choreo:
The following is a partial sample of the JSON information returned by this Choreo:
{ "demographics": { "Results": { "blockFips": "360610033002006", "incomeBelowPoverty": "0.16600", "medianIncome": "91133.00000", "incomeLessThan25": "0.10400", "incomeBetween25to50": "0.03180", "incomeBetween50to100": "0.16180", "incomeBetween100to200": "0.32080", "incomeGreater200": "0.38150", "educationHighSchoolGraduate": "0.93560", "educationBachelorOrGreater": "0.78410" } }, "legislators": [ { "website": "http://www.gillibrand.senate.gov", "fax": "202-225-1168", "govtrack_id": "412223", "firstname": "Kirsten", "chamber": "senate", "middlename": "E.", "lastname": "Gillibrand", "congress_office": "478 Russell Senate Office Building", "eventful_id": [], "phone": "202-224-4451", "webform": "http://www.gillibrand.senate.gov/contact/", "youtube_url": "http://www.youtube.com/KirstenEGillibrand", "nickname": [], "gender": "F", "district": "Junior Seat", "title": "Sen", "congresspedia_url": "http://www.opencongress.org/wiki/Kirsten_Gillibrand", "in_office": "True", "senate_class": "I", "name_suffix": [], "twitter_id": "SenGillibrand", "birthdate": "1966-12-09", "bioguide_id": "G000555", "fec_id": "H6NY20167", "state": "NY", "crp_id": "N00027658", "official_rss": [], "facebook_id": "KirstenGillibrand", "party": "D", "email": [], "votesmart_id": "65147", "votes": { "objects": [ { "person_name": "Sen. Kirsten Gillibrand [D-NY]", "option": "+", "created": "2011-04-14T17:28:00", "person": "/api/v1/person/412223/", "link": "http://www.govtrack.us/congress/votes/112-2011/s61", "vote_description": "Senate Vote #61", "vote": "/api/v1/vote/3/", "voter_type_label": "Member of Congress", "resource_uri": "/api/v1/vote_voter/26198046/", "id": "26198046", "voter_type": "member" }, { "person_name": "Sen. Kirsten Gillibrand [D-NY]", "option": "+", "created": "2011-05-23T17:01:00", "person": "/api/v1/person/412223/", "link": "http://www.govtrack.us/congress/votes/112-2011/s75", "vote_description": "Senate Vote #75", "vote": "/api/v1/vote/15/", "voter_type_label": "Member of Congress", "resource_uri": "/api/v1/vote_voter/26198139/", "id": "26198139", "voter_type": "member" }, { "person_name": "Sen. Kirsten Gillibrand [D-NY]", "option": "-", "created": "2011-02-02T18:05:00", "person": "/api/v1/person/412223/", "link": "http://www.govtrack.us/congress/votes/112-2011/s9", "vote_description": "Senate Vote #9", "vote": "/api/v1/vote/16/", "voter_type_label": "Member of Congress", "resource_uri": "/api/v1/vote_voter/26198279/", "id": "26198279", "voter_type": "member" } ] }, "bills": { "object": { "number": 303, "docs_house_gov_postdate": [], "sponsor": { "sortname": "Gillibrand, Kirsten (Sen.) [D-NY]", "firstname": "Kirsten", "twitterid": "SenGillibrand", "middlename": "E.", "lastname": "Gillibrand", "bioguideid": "G000555", "namemod": [], "name": "Sen. Kirsten Gillibrand [D-NY]", "metavidid": "Kirsten_Gillibrand", "birthday": [], "link": "http://www.govtrack.us/congress/members/kirsten_gillibrand/412223", "youtubeid": "KirstenEGillibrand", "gender": "female", "gender_label": "Female", "osid": "N00027658", "resource_uri": "/api/v1/person/412223/", "nickname": [], "id": "412223", "pvsid": "65147" }, "id": "142791", "thomas_link": "http://thomas.loc.gov/cgi-bin/bdquery/z?d110:hres303:", "title": "H.Res. 303 (110th): Expressing the sense of the House of Representatives that a day ought to be established to bring awareness to the issue of missing persons.", "senate_floor_schedule_postdate": [], "current_status_description": "This simple resolution passed on September 24, 2007. That is the end of the legislative process for a simple resolution.", "current_status_label": "Passed (Simple Resolution)", "sponsor_role": { "website": "http://gillibrand.house.gov", "startdate": "2007-01-04", "role_type_label": "Representative", "enddate": "2009-01-03", "description": "Representative for New York's 20th congressional district", "district": 20, "title": "Rep.", "congress_numbers": { "value": 110 }, "title_long": "Representative", "current": false, "state": "NY", "senator_class": [], "party": "Democrat", "id": "41732", "role_type": "representative", "resource_uri": "/api/v1/role/41732/" }, "is_alive": false, "title_without_number": "Expressing the sense of the House of Representatives that a day ought to be established to bring awareness to the issue of missing persons.", "congress": 110, "bill_type": "house_resolution", "is_current": false, "display_number": "H.Res. 303", "bill_type_label": "H.Res.", "bill_resolution_type": "resolution", "current_status_date": "2007-09-24", "current_status": "passed_simpleres", "introduced_date": "2007-04-17", "link": "http://www.govtrack.us/congress/bills/110/hres303", "resource_uri": "/api/v1/bill/142791/" } }, "words": { "response": [ { "tfidf": "0.00164044506709", "count": "22", "ngram": "sojourner" }, { "tfidf": "0.00150617435333", "count": "28", "ngram": "upstate" } ] } } ] }
https://ACCOUNT_NAME.temboolive.com/callback/google
© 2025 Temboo, Inc Privacy Terms