PHP code example of bigdatacloudapi / php-api-client
1. Go to this page and download the library: Download bigdatacloudapi/php-api-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bigdatacloudapi / php-api-client example snippets
//Installed via Composer
poser installed location for example, simply reference the /src/Client.php where extracted/installed instead.
//pecify the api endpoint using either camelised magic methods, or by calling the communicate command directly.
Example magic method: "GET" from "ip-geolocation-full" endpoint becomes: getIpGeolocationFull();
*/
//$result=$client->communicate('ip-geolocation-full','GET',['ip'=>'8.8.8.8']);
$result=$client->getIpGeolocationFull(['ip'=>'8.8.8.8']);
var_dump($result);