for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the light/apistore.
*
* (c) lichunqiang <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace light\apistore\apis;
/**
* IP地址查询.
* @see http://apistore.baidu.com/apiworks/servicedetail/114.html
class Ip extends Api
{
* 接口地址
* @var string
private $address = 'http://apis.baidu.com/apistore/iplookupservice/iplookup?ip=';
* Reqeust the api interface, and get the result.
* @param string $ip_address ip string
* @return mixed
public function get($ip_address)
return $this->fetch($this->address . $ip_address);
}