Login   Register  
PHP Classes

File: examples/Geoplugin.md

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Andre Roque Filipe  >  PHP API Caller  >  examples/Geoplugin.md  >  Download  
File: examples/Geoplugin.md
Role: Documentation
Content type: text/plain
Description: New structure
Class: PHP API Caller
Send requests to different Web services APIs
Author: By
Last change:
Date: 10 months ago
Size: 422 bytes


Class file image Download

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

API used: http://www.geoplugin.com/

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

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

//Get the last call to the API