v1v2/php-client

JSON API至 https://cov19vacsideeffects.online 数据

1.0.1 2021-04-19 11:02 UTC

This package is not auto-updated.

Last update: 2024-10-02 02:34:52 UTC


README

JSON API至 https://cov19vacsideeffects.online 数据

如何安装

composer require v1v2/php-client

#用法

<?php

use V1V2\Client;
use V1V2\Security;

$client = new Client(
    new Security(),
    'your_api_key'
);

$result = $client->getTemperaturePiePlotsAllAge();

// gets all V1V2\PlotInterface plots from getTemperaturePiePlotsAllAge
$result->toArray(); 

// gets specific plot. see V1V2\PlotEnum for all available plots
$stage2Plot = $result->getByPlotType(\V1V2\PlotEnum::get(\V1V2\PlotEnum::PIE_TEMP_ALL_STAGE_2));