Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ruslanguns/npm-openweather-api
https://github.com/ruslanguns/npm-openweather-api
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ruslanguns/npm-openweather-api
- Owner: ruslanguns
- License: mit
- Created: 2019-02-10T20:25:49.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:34:12.000Z (11 months ago)
- Last Synced: 2024-05-28T17:07:54.001Z (6 months ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenWeather API
Con esta librería podremos consumir las API de openweather.org y utilizarla en nuestros proyectos.
## Instalación
Javascript
```javascript
var API = require('proj-2-openweather').ApiService;
```TypeScript
```typescript
import ApiService from 'proj-2-openweather';
```### Uso de modulo
Debemos obtener el API Key desde una cuenta en openweather.org
```typescript
const api = new ApiService(APIKEY, 'm', 'es');API.buscarPorZIP( '28001', 'es').then(
data => console.log( data )
).catch( error => console.log( error ));
```