taobao.shop.seller.get
卖家店铺基础信息查询

基础 需要授权 用户授权介绍 收费 查看API收费规则

请求地址

环境 HTTP地址 HTTPS地址 请求方式
正式环境 http://open.ieasynote.com/api https://open.ieasynote.com/api POST

公共参数

参数名 类型 必须 描述
method String API接口名称,例如:taobao.shop.seller.get
app_key String TOP分配给应用的AppKey,例如:12345678
session String 用户登录授权成功后,TOP颁发给应用的授权信息,详细介绍请[点击这里]()。当此API的标签上注明:“需要授权”,则此参数必传;“不需要授权”,则此参数不需要传;“可选授权”,则此参数为可选
timestamp String 时间戳,格式为yyyy-MM-dd HH:mm:ss,时区为GMT+8,例如:2015-01-01 12:00:00。淘宝API服务端允许客户端请求最大时间误差为10分钟
v String API协议版本,可选值:2.0
sign_method String 签名的摘要算法,可选值为:hmac,md5,hmac-sha256
sign String API输入参数签名结果,签名算法介绍请[点击这里](
format String 响应格式。默认为xml格式,可选值:xml,json
simplify Boolean 是否采用精简JSON返回格式,仅当format=json时有效,默认值为:false

公共响应参数

公共响应参数中,error_responsexxx_response只会出现一个
参数名 类型 描述
request_id String 平台颁发的每次请求访问的唯一标识
error_response String 请求访问失败时返回的根节点,和 xxxxx_response 只会出现一个
        code String 请求失败返回的错误码,error_response 的子节点
        msg String 请求失败返回的错误信息,error_response 的子节点
        sub_code String 请求失败返回的子错误码,error_response 的子节点
        sub_msg String 请求失败返回的子错误信息,error_response 的子节点
xxxxx_response String 请求成功返回的根节点, 和 error_response 只会出现一个,'xxxxx' 为API名称的下划线模式,本接口为:shop_seller_get_response

请求参数

参数名 类型 必须 示例值 描述
fields String sid,title,pic_path 需返回的字段列表。可选值:Shop 结构中的所有字段;多个字段之间用逗号(,)分隔

请求响应参数

请求响应参数是 xxx_response 的子节点
参数名 类型 示例值 描述
shop Shop 店铺信息
  -sid Number 44750468 店铺编号
  -title String 我的店铺 店铺标题
  -pic_path String xxx.jpg 店标地址。返回相对路径,可以用"http://logo.taobao.com/shop-logo"来拼接成绝对路径

请求示例代码

将接口地址URL设置成: http://open.ieasynote.com/api
                        
                        
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new ShopSellerGetRequest;
$req->setFields("sid,title,pic_path");
$resp = $c->execute($req, $sessionKey);
                                
                    
                        
                        
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
ShopSellerGetRequest req = new ShopSellerGetRequest();
req.setFields("sid,title,pic_path");
ShopSellerGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
                                
                    
                        
                        
ITopClient client = new DefaultTopClient(url, appkey, secret);
ShopSellerGetRequest req = new ShopSellerGetRequest();
req.Fields = "sid,title,pic_path";
ShopSellerGetResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
                                
                    
                        
                        
# -*- coding: utf-8 -*-
import top.api

req=top.api.ShopSellerGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))

req.fields="sid,title,pic_path"
try:
    resp= req.getResponse(sessionkey)
    print(resp)
except Exception,e:
    print(e)
                                
                    
                        
                        
curl -X POST 'http://open.ieasynote.com/api' \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'app_key=12129701' \
-d 'format=json' \
-d 'method=taobao.shop.seller.get' \
-d 'partner_id=apidoc' \
-d 'session=e1da3462-0843-4fe8-8134-3416324bf773' \
-d 'sign=DDEA926D0396504E75B882FCCF9FB241' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-08-24+14%3A03%3A43' \
-d 'v=2.0' \
-d 'fields=sid%2Ctitle%2Cpic_path'
                                
                    
                        
                        
TopClient = require('./topClient').TopClient;
var client = new TopClient({
    'appkey': 'appkey',
    'appsecret': 'secret',
    'REST_URL': 'http://open.ieasynote.com/api'
});

client.execute('taobao.shop.seller.get', {
    'fields':'sid,title,pic_path'
}, function(error, response) {
    if (!error) console.log(response);
    else console.log(error);
})
                                
                    
                        
                        
package main;

import (
    "fmt"
    "topsdk"
    "topsdk/ability250"
    "topsdk/ability250/request"
)

func main() {
    client := topsdk.NewDefaultTopClient("<your-appkey>","<your-appsecret>","<top-gateway-url>",20000,20000)
    ability := ability250.NewAbility250(&client)


    req := request.TaobaoShopSellerGetRequest{}
    /*
        sid,title,pic_path
    */
    req.SetFields([]string{})


    resp, err := ability.TaobaoShopSellerGet(&req, "<user-session>")
    if(err != nil) {
        fmt.Println(err)
    } else {
        fmt.Println(resp.Body)
    }
}
                                
                    
                        
                        
<?php
require "../vendor/autoload.php";
use Topsdk\Topapi\TopApiClient;
use Topsdk\Topapi\Ability250\Request\TaobaoShopSellerGetRequest;
use Topsdk\Topapi\Ability250\Ability250;


// create Client
$client = new TopApiClient("<your-appkey>","<your-appsecret>","<top-gateway-url>");
$ability = new Ability250($client);

// create domain

// create request
$request = new TaobaoShopSellerGetRequest();
/*
    sid,title,pic_path
*/
$request->setFields(array());

$response = $ability->taobaoShopSellerGet($request,"<user session>");
var_dump($response);
                                
                    
                        
                        
import com.alibaba.fastjson.JSON;
import java.io.File;
import java.util.ArrayList;
import java.util.Date;
import com.taobao.top.TopApiClient;
import com.taobao.top.DefaultTopApiClient;
import com.taobao.top.TopFileItem;
import com.taobao.top.ability250.Ability250;
import com.taobao.top.ability250.request.TaobaoShopSellerGetRequest;
import com.taobao.top.ability250.response.TaobaoShopSellerGetResponse;

public class Main {

    public static void main(String[] args) throws Exception {
        // create Client
        TopApiClient client = new DefaultTopApiClient("<your-appkey>","<your-appsecret>","<top-gateway-url>");
        Ability250 apiPackage = new Ability250(client);
        // create domain

        // create request
        TaobaoShopSellerGetRequest request = new TaobaoShopSellerGetRequest();
        /*
            sid,title,pic_path
        */
        request.setFields(new ArrayList<String>());

        TaobaoShopSellerGetResponse response = apiPackage.taobaoShopSellerGet(request,"user session");
        if(!response.isSuccess()){
            System.out.println(response.getSubMsg());
        }
        System.out.println(JSON.toJSONString(response));
    }
}
                                
                    

响应示例

                        
                        
<shop_seller_get_response>
    <shop>
        <sid>44750468</sid>
        <title>我的店铺</title>
        <pic_path>/e2/c0/T1KVXXXhGvt0L1upjX.jpg</pic_path>
    </shop>
</shop_seller_get_response>
                                
                    
                        
                        
{
    "error_response":{
        "msg":"Remote service error",
        "code":50,
        "sub_msg":"非法参数",
        "sub_code":"isv.invalid-parameter"
    }
}
                                
                    

异常响应示例

                        
                            
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>参数异常</sub_msg>
</error_response>
                            
                    
                        
                            
{
    "error_response":{
        "msg":"Remote service error",
        "code":50,
        "sub_msg":"XXX",
        "sub_code":"isv.invalid-parameter"
    }
}
                            
                    

错误码描述

错误码 错误消息 解决方案
暂无错误解释