-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
<?php | ||
|
||
require_once __DIR__ .'/vendor/autoload.php'; | ||
|
||
$topClient = new TopClient(); | ||
$topClient->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); | ||
|
||
?> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
{ | ||
"name": "latik/taobao-sdk", | ||
"description": "Mirror taobao api official package", | ||
"keywords": ["taobao", "api", "top", "sdk"], | ||
"authors": [ | ||
{ | ||
"name": "Latik", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"type": "library", | ||
"license": "MIT", | ||
"require": { | ||
"php": ">= 5.2.0", | ||
"ext-curl": "*" | ||
|