secretKey ="b***************9"; $req = new PictureUploadRequest; $req->setPictureCategoryId("0"); $content = file_get_contents("http://img20.360buyimg.com/vc"/> secretKey ="b***************9"; $req = new PictureUploadRequest; $req->setPictureCategoryId("0"); $content = file_get_contents("http://img20.360buyimg.com/vc">
Home > Backend Development > PHP Tutorial > php-淘宝API 图片上传问题

php-淘宝API 图片上传问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-02 11:29:24
Original
1403 people have browsed it

php图片api淘宝网

$c = new TopClient;
$c->appkey = "1*****2";
$c->secretKey ="b***************9";
$req = new PictureUploadRequest;
$req->setPictureCategoryId("0");

$content = file_get_contents("http://img20.360buyimg.com/vc/jfs/t1936/10/62548506/219327/ba45f44c/55ebc1baNdb5f788d.jpg");

<code>//=========这里的setImg应该怎么传网络上的图片呢?====</code>
Copy after login

$req->setImg($content);

$req->setImageInputTitle("Bule.jpg");
$req->setTitle("图片名称");
$req->setClientType("client:computer");
$resp = $c->execute($req,"********************");
var_dump($resp);

<code>新手问题,要把网络图片上传到图片空间,php的代码应该怎么编写?</code>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template