<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
thomasboom89 / openweathermap-one-call-api example snippets
$httpClient = new Client();
$httpFactory = new HttpFactory();
$owmoca = new OneCallApi("YOUR-API-KEY", $httpClient, $httpFactory);
// Optional use caching interface
$pool = new ArrayAdapter();
$cache = new Psr16Cache($pool);
$owmoca = new OneCallApi("YOUR-API-KEY", $httpClient, $httpFactory, $cache, 240);