PHP Classes

File: examples/

Recommend this page to a friend!
  Classes of Andre Roque Filipe  >  PHP API Caller  >  examples/  >  Download  
File: examples/
Role: Documentation
Content type: text/plain
Description: New structure
Class: PHP API Caller
Send requests to different Web services APIs
Author: By
Last change: Update of examples/
Date: 10 months ago
Size: 514 bytes


Class file image Download

Simple example on How to use the APIcaller to call an API

API used:

##How to use this class:
//Initializing the caller
$client = new MASNathan\Geoplugin\GeoPluginClient();
$geo = new MASNathan\Geoplugin\Geoplugin($client);

//Getting IP info
$geo->getLocation('', 'EUR', true);
$geo->getLocation('', 'USD', true);

//Get the last request and response to the API
For more information send a message to info at phpclasses dot org.