Skip to content

Commit

Permalink
Delete api key for example 2 (#216)
Browse files Browse the repository at this point in the history
Co-authored-by: Shishir Patil <[email protected]>
  • Loading branch information
HuanzhiMao and ShishirPatil authored Feb 28, 2024
1 parent 62a7dc7 commit 7fb6b71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blogs/7_open_functions_v2.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h2 class="blog-title">Gorilla OpenFunctions v2</h2>
<div class="col-md-12">
<h4 class="text-center" style="margin: 0px;">
<p></p>
<a class="author" href="https://charliejcj.github.io/">Charlie Cheng-Jie<sup>*</sup></a>
<a class="author" href="https://charliejcj.github.io/">Charlie Cheng-Jie Ji<sup>*</sup></a>
<a class="author" href="https://huanzhimao.com/">Huanzhi Mao<sup>*</sup></a>
<a class="author" href="https://fanjia-yan.github.io/">Fanjia Yan<sup>*</sup></a>
<a class="author" href="https://people.eecs.berkeley.edu/~istoica">Ion Stoica</a>
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
EXAMPLES = [
{ "name": "requests.get", "description": "Sends a GET request to the specified URL.", "parameters": { "type": "dict", "properties": { "url": { "type": "string", "description": "The Open-Meteo API provides detailed weather forecasts for any location worldwide. It offers forecasts up to 16 days in advance and also provide past data. The API's response gives weather variables on an hourly basis, such as temperature, humidity, precipitation, wind speed and direction, etc. More information can be found in https://open-meteo.com/en/docs/", "default": "https://api.open-meteo.com/v1/forecast" }, "headers": {}, "timeout": { "type": ["number", "tuple"], "description": "How many seconds to wait for the server to send data before giving up.", "required": false }, "params": { "latitude": { "type": "string", "description": "Geographical WGS84 coordinates of the location. Multiple coordinates can be comma separated. E.g., &latitude=52.52,48.85&longitude=13.41,2.35. To return data for multiple locations the JSON output changes to a list of structures. CSV and XLSX formats add a column location_id. N is positive, S is negative", "required": true }, "longitude": { "type": "string", "description": "Geographical WGS84 coordinates of the location. Multiple coordinates can be comma separated. E is positive, W is negative", "required": true }, "elevation": { "type": "string", "description": "The elevation used for statistical downscaling. Per default, a 90 meter digital elevation model is used. You can manually set the elevation to correctly match mountain peaks. If &elevation=nan is specified, downscaling will be disabled and the API uses the average grid-cell height. For multiple locations, elevation can also be comma separated.", "required": false }, "hourly": { "type": "string", "description": "A list of weather variables which should be returned. Values can be comma separated, or multiple &hourly= parameters in the URL can be used. Support parameters: temperature_2m,relative_humidity_2m,dew_point_2m,apparent_temperature,pressure_msl,cloud_cover,cloud_cover_low,cloud_cover_mid,cloud_cover_high,wind_speed_10m,wind_speed_80m,wind_speed_120m,wind_speed_180m,wind_direction_10m,wind_direction_80m,wind_direction_120m,wind_direction_180m,wind_gusts_10m,shortwave_radiation,direct_radiation,direct_normal_irradiance,diffuse_radiation,global_tilted_irradiance,vapour_pressure_deficit,cape,evapotranspiration,et0_fao_evapotranspiration,precipitation,snowfall,precipitation_probability,rain,showers,weather_code,snow_depth,freezing_level_height,visibility,soil_temperature_0cm,soil_temperature_6cm,soil_temperature_18cm,soil_temperature_54cm,soil_moisture_0_to_1cm,soil_moisture_1_to_3cm,soil_moisture_3_to_9cm,soil_moisture_9_to_27cm,soil_moisture_27_to_81cm", "required": false }, "daily": { "type": "string", "description": "A list of daily weather variable aggregations which should be returned. Values can be comma separated, or multiple &daily= parameters in the URL can be used. If daily weather variables are specified, parameter timezone is required. Possible values supported temperature_2m_max, temperature_2m_min, apparent_temperature_max, apparent_temperature_min, precipitation_sum, rain_sum, showers_sum, snowfall_sum, precipitation_hours, ,precipitation_probability_max, precipitation_probability_min, precipitation_probability_mean, weather_code,sunrise,sunset,sunshine_duration, daylight_duration, wind_speed_10m_max, wind_gusts_10m_max, wind_direction_10m_dominant,shortwave_radiation_sum,et0_fao_evapotranspiration,uv_index_maxuv_index_clear_sky_max", "required": false }, "temperature_unit": { "type": "string", "description": "If fahrenheit is set, all temperature values are converted to Fahrenheit.", "required": false, "default": "celsius" }, "wind_speed_unit": { "type": "string", "description": "Other wind speed units: ms, mph, and kn.", "required": false, "default": "kmh" }, "precipitation_unit": { "type": "string", "description": "Other precipitation amount units: inch.", "required": false, "default": "mm" }, "timeformat": { "type": "string", "description": "If format unixtime is selected, all time values are returned in UNIX epoch time in seconds. Please note that all timestamps are in GMT+0! For daily values with unix timestamps, please apply utc_offset_seconds again to get the correct date.", "required": false, "default": "iso8601" }, "timezone": { "type": "string", "description": "If timezone is set, all timestamps are returned as local-time and data is returned starting at 00:00 local-time. Any time zone name from the time zone database is supported. If auto is set as a time zone, the coordinates will be automatically resolved to the local time zone. For multiple coordinates, a comma separated list of timezones can be specified.", "required": false, "default": "GMT" }, "past_days": { "type": "integer", "description": "If past_days is set, yesterday or the day before yesterday data are also returned.", "required": false, "default": 0 }, "forecast_days": { "type": "integer", "description": "Per default, only 7 days are returned. Up to 16 days of forecast are possible.", "required": false, "default": 7 }, "forecast_hours": { "type": "integer", "description": "Similar to forecast_days, the number of timesteps of hourly data can be controlled.", "required": false }, "forecast_minutely_15": { "type": "integer", "description": "The number of timesteps of 15-minutely data can be controlled.", "required": false }, "past_hours": { "type": "integer", "description": "the number of timesteps of hourly data controlled", "required": false }, "past_minutely_15": { "type": "integer", "description": "the number of timesteps of 15 minute data controlled", "required": false }, "start_date": { "type": "string", "description": "The time interval to get weather data. A day must be specified as an ISO8601 date (e.g. 2022-06-30).", "required": false }, "end_date": { "type": "string", "description": "", "required": false }, "start_hour": { "type": "string", "description": "The time interval to get weather data for hourly data. Time must be specified as an ISO8601 date and time (e.g. 2022-06-30T12:00).", "required": false }, "end_hour": { "type": "string", "description": "", "required": false }, "start_minutely_15": { "type": "string", "description": "", "required": false }, "end_minutely_15": { "type": "string", "description": "", "required": false }, "models": { "type": "list", "items": { "type": "string" }, "description": "A list of string, manually select one or more weather models. Per default, the best suitable weather models will be combined.", "required": false }, "cell_selection": { "type": "string", "description": "Set a preference how grid-cells are selected. The default land finds a suitable grid-cell on land with similar elevation to the requested coordinates using a 90-meter digital elevation model. sea prefers grid-cells on sea. nearest selects the nearest possible grid-cell.", "required": false }, "apikey": { "type": "string", "description": "Only required to commercial use to access reserved API resources for customers. The server URL requires the prefix customer-. See pricing for more information.", "required": false } }, "allow_redirects": { "type": "boolean", "description": "A Boolean to enable/disable redirection.", "default": true, "required": false }, "auth": { "type": "tuple", "description": "A tuple to enable a certain HTTP authentication.", "default": "None", "required": false }, "cert": { "type": ["string", "tuple"], "description": "A String or Tuple specifying a cert file or key.", "default": "None", "required": false }, "cookies": { "type": "dict", "additionalProperties": { "type": "string" }, "description": "Dictionary of cookies to send with the request.", "required": false }, "proxies": { "type": "dict", "additionalProperties": { "type": "string" }, "description": "Dictionary of the protocol to the proxy url.", "required": false }, "stream": { "type": "boolean", "description": "A Boolean indication if the response should be immediately downloaded (False) or streamed (True).", "default": false, "required": false }, "verify": { "type": ["boolean", "string"], "description": "A Boolean or a String indication to verify the servers TLS certificate or not.", "default": true, "required": false } } } },
{"name":"requests.get","description":"Sends a GET request to the specified URL.","parameters":{"type":"dict","properties":{"url":{"type":"string","description":"Geocoding API converting a a pair of latitude and longitude coordinates to human readable addresses","default":"https://geocode.maps.co/reverse"},"headers":{},"timeout":{"type":["number","tuple"],"description":"How many seconds to wait for the server to send data before giving up.","required":false},"params":{"lat":{"type":"number","description":"Latitude of the location to reverse geocode.","required":true},"lon":{"type":"number","description":"Longitude of the location to reverse geocode.","required":true},"api_key":{"type":"string","description":"Your API key for authentication.","required":true},"format":{"type":"string","description":"The desired response format. Options include 'xml', 'json', 'jsonv2', 'geojson', 'geocodejson'. Default is 'json'.","required":false}},"allow_redirects":{"type":"boolean","description":"A Boolean to enable/disable redirection.","default":true,"required":false},"auth":{"type":"tuple","description":"A tuple to enable a certain HTTP authentication.","default":"None","required":false},"cert":{"type":["string","tuple"],"description":"A String or Tuple specifying a cert file or key.","default":"None","required":false},"cookies":{"type":"dict","additionalProperties":{"type":"string"},"description":"Dictionary of cookies to send with the request.","required":false},"proxies":{"type":"dict","additionalProperties":{"type":"string"},"description":"Dictionary of the protocol to the proxy url.","required":false},"stream":{"type":"boolean","description":"A Boolean indication if the response should be immediately downloaded (False) or streamed (True).","default":false,"required":false},"verify":{"type":["boolean","string"],"description":"A Boolean or a String indication to verify the servers TLS certificate or not.","default":true,"required":false}}}},
{"name":"requests.get","description":"Sends a GET request to the specified URL.","parameters":{"type":"dict","properties":{"url":{"type":"string","description":"Geocoding API converting a a pair of latitude and longitude coordinates to human readable addresses","default":"https://geocode.maps.co/reverse"},"headers":{},"timeout":{"type":["number","tuple"],"description":"How many seconds to wait for the server to send data before giving up.","required":false},"params":{"lat":{"type":"number","description":"Latitude of the location to reverse geocode.","required":true},"lon":{"type":"number","description":"Longitude of the location to reverse geocode.","required":true},"format":{"type":"string","description":"The desired response format. Options include 'xml', 'json', 'jsonv2', 'geojson', 'geocodejson'. Default is 'json'.","required":false}},"allow_redirects":{"type":"boolean","description":"A Boolean to enable/disable redirection.","default":true,"required":false},"auth":{"type":"tuple","description":"A tuple to enable a certain HTTP authentication.","default":"None","required":false},"cert":{"type":["string","tuple"],"description":"A String or Tuple specifying a cert file or key.","default":"None","required":false},"cookies":{"type":"dict","additionalProperties":{"type":"string"},"description":"Dictionary of cookies to send with the request.","required":false},"proxies":{"type":"dict","additionalProperties":{"type":"string"},"description":"Dictionary of the protocol to the proxy url.","required":false},"stream":{"type":"boolean","description":"A Boolean indication if the response should be immediately downloaded (False) or streamed (True).","default":false,"required":false},"verify":{"type":["boolean","string"],"description":"A Boolean or a String indication to verify the servers TLS certificate or not.","default":true,"required":false}}}},
{ "name": "requests.get", "description": "Sends a GET request to the specified URL.", "parameters": { "type": "dict", "properties": { "url": { "type": "string", "description": "The Date Nager API provides access holiday information for over 100 countries, including the ability to query for long weekends. It leverages ISO 3166-1 alpha-2 country codes to tailor the search to your specific region of interest. More information can be found in https://date.nager.at/Api", "default": "https://date.nager.at/api/v3/LongWeekend/{year}/{countryCode}" }, "headers": {}, "timeout": { "type": ["number", "tuple"], "description": "How many seconds to wait for the server to send data before giving up.", "required": false }, "params": {}, "auth": { "type": "tuple", "description": "A tuple to enable a certain HTTP authentication.", "default": "None", "required": false }, "cert": { "type": ["string", "tuple"], "description": "A String or Tuple specifying a cert file or key.", "default": "None", "required": false }, "cookies": { "type": "dict", "additionalProperties": { "type": "string" }, "description": "Dictionary of cookies to send with the request.", "required": false }, "proxies": { "type": "dict", "additionalProperties": { "type": "string" }, "description": "Dictionary of the protocol to the proxy url.", "required": false }, "stream": { "type": "boolean", "description": "A Boolean indication if the response should be immediately downloaded (False) or streamed (True).", "default": false, "required": false }, "verify": { "type": ["boolean", "string"], "description": "A Boolean or a String indication to verify the servers TLS certificate or not.", "default": true, "required": false } } } }
]

Expand Down

0 comments on commit 7fb6b71

Please sign in to comment.