2017 © Pedro Peláez
 

library apistore

百度API商品免费接口封装

image

light/apistore

百度API商品免费接口封装

  • Tuesday, March 22, 2016
  • by light
  • Repository
  • 1 Watchers
  • 9 Stars
  • 61 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

apistore

Build Status version Download Scrutinizer Code Quality Code Coverage Contact, (*1)

百度APIStore免费接口封装, (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require --prefer-dist light/apistore "*"

or add, (*5)

"light/apistore": "*"

to the require section of your composer.json file., (*6)

Usage

Once the extension is installed, simply use it in your code by :, (*7)

$store = new light\apistore\ApiStore('your key');
$api = $store->phone;

$result = $api->get('15292312331');

if ($result['errcode'] == 0) {
    var_dump($result['data']);
} else {
    echo 'Get error: ', $result['errmsg'];
}

目前可用接口:, (*8)

如何添加新接口

如果你发现需要的接口目前没有,可以发起pull request进行提交., (*9)

流程是在src/apis建立新的接口调用类,新的接口需要继承自light\apistore\apis\Api, 大概如下:, (*10)

class Sms extends Api
{
    private $address = 'http://apiurl';

    public function get($params)
    {
        return $this->fetch($this->address . http_build_query($params));
    }
}

License

MIT, (*11)

The Versions

22/03 2016

dev-master

9999999-dev

百度API商品免费接口封装

  Sources   Download

MIT

The Development Requires

by lichunqiang

apistore 百度apistore 免费接口 ocr文字识别 ip地址查询接口

07/01 2016

0.1.5

0.1.5.0

百度API商品免费接口封装

  Sources   Download

MIT

The Development Requires

by lichunqiang

apistore 百度apistore 免费接口 ocr文字识别 ip地址查询接口

27/12 2015

0.1.4

0.1.4.0

百度API商品免费接口封装

  Sources   Download

MIT

The Development Requires

by lichunqiang

extension yii2 apistore

19/12 2015

0.1.3

0.1.3.0

百度API商品免费接口封装

  Sources   Download

MIT

The Development Requires

by lichunqiang

extension yii2 apistore

18/12 2015

0.1.2

0.1.2.0

百度API商品免费接口封装

  Sources   Download

MIT

The Development Requires

by lichunqiang

extension yii2 apistore

17/12 2015

0.1.1

0.1.1.0

百度API商品免费接口封装

  Sources   Download

MIT

The Development Requires

by lichunqiang

extension yii2 apistore

12/12 2015

0.1.0

0.1.0.0

百度API商品免费接口封装

  Sources   Download

MIT

The Development Requires

by lichunqiang

extension yii2 apistore