From aa16544948a7a6ccc81d70e985e0fe1edef72949 Mon Sep 17 00:00:00 2001 From: Latik Date: Tue, 7 Apr 2015 23:18:26 +0300 Subject: [PATCH] add example --- README.md | 28 ++++++++++++++++++++++++++++ composer.json | 3 +++ 2 files changed, 31 insertions(+) diff --git a/README.md b/README.md index 0d9c7b4..93bd0cc 100644 --- a/README.md +++ b/README.md @@ -1 +1,29 @@ Mirror taobao api official package + +Installation +------------ + +php composer.phar composer require latik/taobao-sdk + +Usage +----- + +Once the library is installed, simply use it in your code by: + +```php +appkey = '..'; +$topClient->secretKey = '..'; +var_dump($topClient); +$itemReq = new ItemGetRequest(); +$itemReq->setFields("detail_url,nick,props_name,num_iid,title,num_iid,input_str,pic_url,location,price,item_img,prop_img"); +$itemReq->setNumIid(123456); // id good + +$objResult = $topClient->execute($itemReq); + +?> +``` diff --git a/composer.json b/composer.json index c21f5d3..4a9ee88 100644 --- a/composer.json +++ b/composer.json @@ -1,12 +1,15 @@ { "name": "latik/taobao-sdk", "description": "Mirror taobao api official package", + "keywords": ["taobao", "api", "top", "sdk"], "authors": [ { "name": "Latik", "email": "latik@users.noreply.github.com" } ], + "type": "library", + "license": "MIT", "require": { "php": ">= 5.2.0", "ext-curl": "*"