
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
apimatic-open-weather-sdk
Advanced tools
**OpenWeather API** provides current weather data, forecasts, and historical information for any location worldwide.
Get the current weather, daily forecast for 16 days, and a three-hour-interval forecast for 5 days for your city. Helpful stats, graphics, and this day in history charts are available for your reference. Interactive maps show precipitation, clouds, pressure, wind around your location stations. Data is available in JSON, XML, or HTML format. Note: This sample Swagger file covers the current
endpoint only from the OpenWeatherMap API.
Note: All parameters are optional, but you must select at least one parameter. Calling the API by city ID (using the id
parameter) will provide the most precise location results.
Run the following command from your project directory to install the package from npm:
npm install apimatic-open-weather-sdk@1.0.0
For additional package details, see the Npm page for the apimatic-open-weather-sdk@1.0.0 npm.
To validate the functionality of this SDK, you can execute all tests located in the test
directory. This SDK utilizes Jest
as both the testing framework and test runner.
To run the tests, navigate to the root directory of the SDK and execute the following command:
npm run test
Or you can also run tests with coverage report:
npm run test:coverage
Note: Documentation for the client can be found here.
The following parameters are configurable for the API Client:
Parameter | Type | Description |
---|---|---|
environment | Environment | The API environment. Default: Environment.Production |
timeout | number | Timeout for API calls. Default: 0 |
httpClientOptions | Partial<HttpClientOptions> | Stable configurable http client options. |
unstableHttpClientOptions | any | Unstable configurable http client options. |
The API client can be initialized as follows:
import { Client, Environment } from 'apimatic-open-weather-sdk';
const client = new Client({
timeout: 0,
environment: Environment.Production,
});
The SDK can be configured to use a different environment for making API calls. Available environments are:
Name | Description |
---|---|
production | Default |
environment2 | - |
environment3 | - |
FAQs
**OpenWeather API** provides current weather data, forecasts, and historical information for any location worldwide.
The npm package apimatic-open-weather-sdk receives a total of 58 weekly downloads. As such, apimatic-open-weather-sdk popularity was classified as not popular.
We found that apimatic-open-weather-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.