Giter Site home page Giter Site logo

oranlive / dataoke Goto Github PK

View Code? Open in Web Editor NEW

This project forked from blackhat1987/dataoke

0.0 0.0 0.0 286 KB

公司要开发一个淘宝客项目,接入的第三方是大淘客找了很多大淘客SDK感觉用的都不是很顺手,就自己封装了一个,简单易上手(停止更新)

License: MIT License

PHP 100.00%

dataoke's Introduction

~~~公司要做一个淘宝客的项目,需要接入大淘客,官方SDK用的不是很顺手,自己封装了一个~~~

下载方式

composer

composer require lyb/dataoke

git

git clone [email protected]:Lyb-coder/dataoke.git

获取接口信息

include '../../../autoload.php';
use \DaTaoKe\Requests\BindSteategyClass;

/**
 * 获取接口信息(终端输出)
 */
function getApiInfo(){
    //获取所有接口信息
    //BindSteategyClass::GetAllSteategy();
    //获取指定接口信息
    //BindSteategyClass::GetAllSteategy("活动商品");
}
getApiInfo();

 获取接口信息并生成文档(终端输出)

获取接口数据信息

include '../../../autoload.php';
use \DaTaoKe\Client\DtkClient;
$obj = new DtkClient(
    "XXXXXXXXXX",
    "XXXXXXXXXXXXXXXXXXXX",
    'array'//有array,object,json三种类型
);
$params = array_merge((array)$_GET,(array)$_POST);
$obj->setSteategyObj("GetGoodsList",$params);
print_r($obj->performRequests());

##数据太多就不截图了,自己看吧,其他接口都是一样的方式

dataoke's People

Contributors

yixiu001 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.