taobao openapi sdk for node
$ npm install taobao
$ cd taobao
$ npm install
测试
$ make test
覆盖率
$ make test-cov
var taobao = require('taobao');
taobao.config({
app_key: 'xxx',
app_secret: 'xxx'
});
taobao.core.call({
method: 'taobao.areas.get',
fields: 'id,type,name,parent_id,zip'
}, function(data) {
console.log(data);
});
- taobao.config
- taobao.updateSession
- taobao.core.call
- taobao.core.signArgs
- taobao.core.callDefaultArg
- taobao.core.generateApi
taobao.config({
app_key: 'xxx', //配置app key, 必需,可在调用API时传入不同值
app_secret: 'xxx', //配置app secret,必需, 可在调用API时传入不同值
sandbox: false, //配置沙箱环境,可选,默认为false, 可在调用API时传入不同值
session: '', //配置session,可选,可在调用API时传入不同值
httpRealHost: null, //配置真实环境http HOST,可选,默认为gw.api.taobao.com
httpRealPath: '/router/rest', //配置真实环境http Path,可选,默认为/router/rest
httpSandHost: 'gw.api.tbsandbox.com', //配置沙箱环境http HOST,可选,默认为gw.api.tbsandbox.com
httpSandPath: '/router/rest', //配置沙箱环境http Path,可选,默认为/router/rest
httpsRealHost: 'eco.taobao.com', //配置真实环境https HOST,可选,默认为eco.taobao.com
httpsRealPath: '/router/rest', //配置真实环境https Path,可选,默认为/router/rest
httpsSandHost: 'gw.api.tbsandbox.com', //配置沙箱环境https HOST,可选,默认为gw.api.tbsandbox.com
httpsSandPath: '/router/rest' //配置沙箱环境https Path,可选,默认为/
});
taobao.updateSession('xxxxx');
// 调用时http参数对象可整体省略
taobao.core.call({
method: 'get', //可选,默认为get, 各个API需要的method可能不一样,请参阅淘宝API文档
protocol: 'http', //可选,默认为http, 指定协议,支持http, https
sandbox: false //可选,默认为false, 指定是否为沙箱环境,可通过taobao.config配置默认值
}, {
method : 'taobao.taobaoke.items.get', //必需,api方法名
format: 'json', //可选,默认为json, 返回数据格式,可为json或xml
timestamp: '2012-03-15 21:00:00', //可选,默认为调用方法时的时间 *保持默认就好*
app_key: 'xxxx', //必需,可通过taobao.config配置默认值
app_secret: 'xxxxx', //必需,可通过taobao.config配置默认值
v: '2.0', //可选,默认为2.0 *保持默认就好*
sign_method: 'md5', //可选,默认为md5,可为md5或hmac
session: 'xxx', //可选,可通过taobao.config配置默认值
//参阅淘宝API文档传入各API相关的参数
args1: xxx,
args2: xxx,
...
}, function(data) { //若format为json, 则data为解析后的JSON对象,否则data为字符串(一般为xml,取决于API)
console.log(data)
});
// https调用方式
taobao.core.call({
protocol: 'https', //可选,默认为http, 指定协议,支持http, https
}, {
method : 'taobao.taobaoke.items.get', //必需,api方法名
//参阅淘宝API文档传入各API相关的参数
args1: xxx,
args2: xxx,
...
}, function(data) { //若format为json, 则data为解析后的JSON对象,否则data为字符串(一般为xml,取决于API)
console.log(data)
});
// 省略http参数对象调用
taobao.core.call({
method : 'taobao.taobaoke.items.get', //必需,api方法名
//参阅淘宝API文档传入各API相关的参数
args1: xxx,
args2: xxx,
...
}, function(data) { //若format为json, 则data为解析后的JSON对象,否则data为字符串(一般为xml,取决于API)
console.log(data)
});
参数说明参考taobao.core.call
- taobao.userBuyerGet
- taobao.userGet
- taobao.userSellerGet
- taobao.usersGet
taobao.userBuyerGet({
fields: 'user_id,nick,sex,buyer_credit,avatar,has_shop,vip_info'
}, function(data) {
console.log(data);
});
- taobao.itemcatsAuthorizeGet
- taobao.itemcatsGet
- taobao.itemcatsIncrementGet
- taobao.itempropsGet
- taobao.itempropvaluesGet
- taobao.topatsItemcatsGet
- taobao.aftersaleGet
- taobao.itemAdd
- taobao.itemAnchorGet
- taobao.itemBsellerAdd
- taobao.itemCsellerAdd
- taobao.itemDelete
- taobao.itemGet
- taobao.itemImgDelete
- taobao.itemImgUpload
- taobao.itemJointImg
- taobao.itemJointPropimg
- taobao.itemPriceUpdate
- taobao.itemPropimgDelete
- taobao.itemPropimgUpload
- taobao.itemQuantityUpdate
- taobao.itemRecommendAdd
- taobao.itemRecommendDelete
- taobao.itemSkuAdd
- taobao.itemSkuDelete
- taobao.itemSkuGet
- taobao.itemSkuPriceUpdate
- taobao.itemSkuUpdate
- taobao.itemSkusGet
- taobao.itemTemplatesGet
- taobao.itemUpdate
- taobao.itemUpdateDelisting
- taobao.itemUpdateListing
- taobao.itemsCustomGet
- taobao.itemInventoryGet
- taobao.itemsListGet
- taobao.itemsOnsaleGet
- taobao.productAdd
- taobao.productGet
- taobao.productImgDelete
- taobao.productImgUpload
- taobao.productPropimgDelete
- taobao.productPropimgUpload
- taobao.productUpdate
- taobao.productsGet
- taobao.productsSearch
- taobao.skusCustomGet
- taobao.skusQuantityUpdate
- taobao.topatsItemsAllGet
- taobao.umpPromotionGet
- taobao.brandcatControlGet
- taobao.brandcatSalesproGet
- taobao.productSpecAdd
- taobao.productSpecGet
- taobao.productSpecPicUpload
- taobao.productSpecsGet
- taobao.TmallItemAddSchemaGet
- taobao.TmallItemSchemaAdd
- taobao.topatsTradesFullinfoGet
- taobao.topatsTradesSold.
- taobao.tradeAmountGet
- taobao.tradeClose
- taobao.tradeConfirmfeeGet
- taobao.tradeFullinfoGet
- taobao.tradeGet
- taobao.tradeMemoAdd
- taobao.tradeMemoUpdate
- taobao.tradeOrderskuUpdate
- taobao.tradePostageUpdate
- taobao.tradeReceivetimeDelay
- taobao.tradeShippingaddressUpdate
- taobao.tradeSnapshotGet
- taobao.tradesSoldGet
- taobao.tradesSoldIncrementGet
- taobao.tradesSoldIncrementvGet
- taobao.traderateAdd
- taobao.traderateExplainAdd
- taobao.traderateListAdd
- taobao.traderatesGet
- taobao.alibabaLogisticsOrderCance
- taobao.alibabaLogisticsOrderCharg
- taobao.alibabaLogisticsOrderConsi
- taobao.alibabaLogisticsRouteQuery
- taobao.areasGet
- taobao.deliveryTemplateAdd
- taobao.deliveryTemplateDelete
- taobao.deliveryTemplateGet
- taobao.deliveryTemplateUpdate
- taobao.deliveryTemplatesGet
- taobao.logisticsAddressAdd
- taobao.logisticsAddressModify
- taobao.logisticsAddressRemove
- taobao.logisticsAddressSearch
- taobao.logisticsCompaniesGet
- taobao.logisticsConsignResend
- taobao.logisticsDummySend
- taobao.logisticsOfflineSend
- taobao.logisticsOnlineCancel
- taobao.logisticsOnlineConfirm
- taobao.logisticsOnlineSend
- taobao.logisticsOrdersDetailGet
- taobao.logisticsOrdersGet
- taobao.logisticsOrderstorePush
- taobao.logisticsOrdertracePush
- taobao.logisticsPartnersGet
- taobao.logisticsTraceSearch
- taobao.topatsDeliverySend
- taobao.sellercatsListAdd
- taobao.sellercatsListGet
- taobao.sellercatsListUpdate
- taobao.shopGet
- taobao.shopRemainshowcaseGet
- taobao.shopUpdate
- taobao.shopcatsListGet
- taobao.fenxiaoCooperationAudit
- taobao.fenxiaoCooperationGet
- taobao.fenxiaoCooperationProductcatAdd
- taobao.fenxiaoCooperationTerminate
- taobao.fenxiaoCooperationUpdate
- taobao.fenxiaoDiscountAdd
- taobao.fenxiaoDiscountUpdate
- taobao.fenxiaoDiscountsGet
- taobao.fenxiaoDistributorArchivesGet
- taobao.fenxiaoDistributorItemsGet
- taobao.fenxiaoDistributorProcuctStaticGet
- taobao.fenxiaoDistributorsGet
- taobao.fenxiaoGradeAdd
- taobao.fenxiaoGradeDelete
- taobao.fenxiaoGradeUpdate
- taobao.fenxiaoGradesGet
- taobao.fenxiaoLoginUserGet
- taobao.fenxiaoOrderClose
- taobao.fenxiaoOrderConfirmPaid
- taobao.fenxiaoOrderCreateDealer
- taobao.fenxiaoOrderCustomfieldUpdate
- taobao.fenxiaoOrderMessageAdd
- taobao.fenxiaoOrderPay
- taobao.fenxiaoOrderRemarkUpdate
- taobao.fenxiaoOrdersGet
- taobao.fenxiaoProductAdd
- taobao.fenxiaoProductGradepriceGet
- taobao.fenxiaoProductGradepriceUpdate
- taobao.fenxiaoProductImageDelete
- taobao.fenxiaoProductImageUpload
- taobao.fenxiaoProductMapAdd
- taobao.fenxiaoProductMapDelete
- taobao.fenxiaoProductPduUpdate
- taobao.fenxiaoProductSkuAdd
- taobao.fenxiaoProductSkuDelete
- taobao.fenxiaoProductSkuUpdate
- taobao.fenxiaoProductSkusGet
- taobao.fenxiaoProductUpdate
- taobao.fenxiaoProductcatAdd
- taobao.fenxiaoProductcatDelete
- taobao.fenxiaoProductcatUpdate
- taobao.fenxiaoProductcatsGet
- taobao.fenxiaoProductsGet
- taobao.fenxiaoRequisitionsGet
- taobao.fenxiaoTrademonitorGet
- taobao.inventoryAdjustExternal
- taobao.inventoryAdjustTrade
- taobao.inventoryAuthorizeGet
- taobao.inventoryAuthorizeRemove
- taobao.inventoryAuthorizeRemoveall
- taobao.inventoryAuthorizeSet
- taobao.inventoryInitial
- taobao.inventoryInitialItem
- taobao.inventoryOccupyApply
- taobao.inventoryOccupyCancel
- taobao.inventoryQuery
- taobao.inventoryStoreManage
- taobao.inventoryStoreQuery
- taobao.scitemAdd
- taobao.scitemGet
- taobao.scitemMapAdd
- taobao.scitemMapDelete
- taobao.scitemMapQuery
- taobao.scitemOutercodeGet
- taobao.scitemQuery
- taobao.scitemUpdate
- taobao.wangwangEserviceAvgwaittimeGet
- taobao.wangwangEserviceChatpeersGet
- taobao.wangwangEserviceEvalsGet
- taobao.wangwangEserviceEvaluationGet
- taobao.wangwangEserviceGroupmemberGet
- taobao.wangwangEserviceLoginlogsGet
- taobao.wangwangEserviceNoreplynumGet
- taobao.wangwangEserviceOnlinetimeGet
- taobao.wangwangEserviceReceivenumGet
- taobao.wangwangEserviceStreamweigthsGet
- taobao.taobaokeCaturlGet
- taobao.taobaokeItemsCouponGet
- taobao.taobaokeItemsDetailGet
- taobao.taobaokeItemsGet
- taobao.taobaokeItemsRelateGet
- taobao.taobaokeListurlGet
- taobao.taobaokeReportGet
- taobao.taobaokeShopsGet
- taobao.taobaokeShopsRelateGet
- taobao.taobaokeWidgetItemsConvert
- taobao.taobaokeWidgetShopsConvert
- taobao.taobaokeWidgetUrlConvert
- taobao.cometDiscardinfoGet
- taobao.incrementAuthorizeMessageGet
- taobao.incrementCustomerPermit
- taobao.incrementCustomerStop
- taobao.incrementCustomersGet
- taobao.incrementItemsGet
- taobao.incrementRefundsGet
- taobao.incrementTradesGet
- taobao.topatsIncrementMessagesGet
- taobao.appipGet
- taobao.feedbackAdd
- taobao.kfcKeywordSearch
- taobao.timeGet
- taobao.topatsResultGet
- taobao.topatsTaskDelete
- taobao.topatsTasksGet
- taobao.wlbInventoryDetailGet
- taobao.wlbInventorySync
- taobao.wlbInventorylogQuery
- taobao.wlbItemAdd
- taobao.wlbItemAuthorizationAdd
- taobao.wlbItemAuthorizationDelete
- taobao.wlbItemAuthorizationQuery
- taobao.wlbItemBatchQuery
- taobao.wlbItemCombinationCreate
- taobao.wlbItemCombinationDelete
- taobao.wlbItemCombinationGet
- taobao.wlbItemConsignmentCreate
- taobao.wlbItemConsignmentDelete
- taobao.wlbItemConsignmentPageGet
- taobao.wlbItemDelete
- taobao.wlbItemGet
- taobao.wlbItemMapGet
- taobao.wlbItemMapGetByExtentity
- taobao.wlbItemQuery
- taobao.wlbItemSynchronize
- taobao.wlbItemSynchronizeDelete
- taobao.wlbItemUpdate
- taobao.wlbNotifyMessageConfirm
- taobao.wlbNotifyMessagePageGet
- taobao.wlbOrderCancel
- taobao.wlbOrderConsign
- taobao.wlbOrderCreate
- taobao.wlbOrderPageGet
- taobao.wlbOrderScheduleRuleAdd
- taobao.wlbOrderScheduleRuleUpdate
- taobao.wlbOrderitemPageGet
- taobao.wlbOrderscheduleruleDelete
- taobao.wlbOrderscheduleruleQuery
- taobao.wlbOrderstatusGet
- taobao.wlbOutInventoryChangeNotify
- taobao.wlbReplenishStatistics
- taobao.wlbSubscriptionQuery
- taobao.wlbTmsorderQuery
- taobao.wlbTradeorderGet
- taobao.wlbWlborderGet
- taobao.simbaAccountBalanceGet
- taobao.simbaAdgroupAdd
- taobao.simbaAdgroupAdgroupcatmatchsGet
- taobao.simbaAdgroupCampcatmatchsGet
- taobao.simbaAdgroupCatmatchGet
- taobao.simbaAdgroupCatmatchUpdate
- taobao.simbaAdgroupCatmatchforecastGet
- taobao.simbaAdgroupChangedcatmatchsGet
- taobao.simbaAdgroupDelete
- taobao.simbaAdgroupDeletedcatmatchsGet
- taobao.simbaAdgroupNonsearchpricesUpdate
- taobao.simbaAdgroupNonsearchstatesUpdate
- taobao.simbaAdgroupOnlineitemsvonGet
- taobao.simbaAdgroupUpdate
- taobao.simbaAdgroupidsChangedGet
- taobao.simbaAdgroupidsDeletedGet
- taobao.simbaAdgroupsChangedGet
- taobao.simbaAdgroupsItemExist
- taobao.simbaAdgroupsbyadgroupidsGet
- taobao.simbaAdgroupsbycampaignidGet
- taobao.simbaCampaignAdd
- taobao.simbaCampaignAreaGet
- taobao.simbaCampaignAreaUpdate
- taobao.simbaCampaignAreaoptionsGet
- taobao.simbaCampaignBudgetGet
- taobao.simbaCampaignBudgetUpdate
- taobao.simbaCampaignChanneloptionsGet
- taobao.simbaCampaignPlatformGet
- taobao.simbaCampaignPlatformUpdate
- taobao.simbaCampaignScheduleGet
- taobao.simbaCampaignScheduleUpdate
- taobao.simbaCampaignUpdate
- taobao.simbaCampaignsGet
- taobao.simbaCatmatchidsChangedGet
- taobao.simbaCatmatchidsDeletedGet
- taobao.simbaCreativeAdd
- taobao.simbaCreativeDelete
- taobao.simbaCreativeUpdate
- taobao.simbaCreativeidsChangedGet
- taobao.simbaCreativeidsDeletedGet
- taobao.simbaCreativesChangedGet
- taobao.simbaCreativesGet
- taobao.simbaCreativesRecordGet
- taobao.simbaCustomersAuthorizedGet
- taobao.simbaInsightCatsGet
- taobao.simbaInsightCatsanalysisGet
- taobao.simbaInsightCatsbaseGet
- taobao.simbaInsightCatsforecastGet
- taobao.simbaInsightCatsrelatedwordGet
- taobao.simbaInsightCatstopwordGet
- taobao.simbaInsightToplevelcatsGet
- taobao.simbaInsightWordsanalysisGet
- taobao.simbaInsightWordsbaseGet
- taobao.simbaInsightWordscatsGet
- taobao.simbaKeywordKeywordforecastGet
- taobao.simbaKeywordidsChangedGet
- taobao.simbaKeywordidsDeletedGet
- taobao.simbaKeywordsChangedGet
- taobao.simbaKeywordsDelete
- taobao.simbaKeywordsPricevonSet
- taobao.simbaKeywordsQscoreGet
- taobao.simbaKeywordsRecommendGet
- taobao.simbaKeywordsbyadgroupidGet
- taobao.simbaKeywordsbykeywordidsGet
- taobao.simbaKeywordscatQscoreGet
- taobao.simbaKeywordsvonAdd
- taobao.simbaLoginAuthsignGet
- taobao.simbaNonsearchAdgroupplacesAdd
- taobao.simbaNonsearchAdgroupplacesDelete
- taobao.simbaNonsearchAdgroupplacesGet
- taobao.simbaNonsearchAdgroupplacesUpdate
- taobao.simbaNonsearchAlldemographicsGet
- taobao.simbaNonsearchAllplacesGet
- taobao.simbaNonsearchDemographicsGet
- taobao.simbaNonsearchDemographicsUpdate
- taobao.simbaRptAdgroupbaseGet
- taobao.simbaRptAdgroupcreativebaseGet
- taobao.simbaRptAdgroupcreativeeffectGet
- taobao.simbaRptAdgroupeffectGet
- taobao.simbaRptAdgroupkeywordbaseGet
- taobao.simbaRptAdgroupkeywordeffectGet
- taobao.simbaRptAdgroupnonsearchbaseGet
- taobao.simbaRptAdgroupnonsearcheffectGet
- taobao.simbaRptCampadgroupbaseGet
- taobao.simbaRptCampadgroupeffectGet
- taobao.simbaRptCampaignbaseGet
- taobao.simbaRptCampaigneffectGet
- taobao.simbaRptCustbaseGet
- taobao.simbaRptCusteffectGet
- taobao.simbaRptDemographicbaseGet
- taobao.simbaRptDemographiceffectGet
- taobao.simbaToolsItemsTopGet
- taobao.topatsSimbaCampkeywordbaseGet
- taobao.topatsSimbaCampkeywordeffectGet
- taobao.favoriteAdd
- taobao.favoriteSearch
- taobao.jipiaoPolicyGet
- taobao.jipiaoPolicyProcess
- taobao.jipiaoPolicystatusUpdate
- taobao.tripJipiaoAgentItinerarySend
- taobao.tripJipiaoAgentOrderConfirm
- taobao.tripJipiaoAgentOrderFail
- taobao.tripJipiaoAgentOrderFind
- taobao.tripJipiaoAgentOrderGet
- taobao.tripJipiaoAgentOrderHk
- taobao.tripJipiaoAgentOrderSearch
- taobao.tripJipiaoAgentOrderSpecialConfirm
- taobao.tripJipiaoAgentOrderSuccess
- taobao.marketingPromotionKfc
- taobao.marketingPromotionsGet
- taobao.marketingTagsGet
- taobao.promotionActivityAdd
- taobao.promotionActivityCancel
- taobao.promotionActivityDelete
- taobao.promotionActivityGet
- taobao.promotionCouponAdd
- taobao.promotionCouponSend
- taobao.promotionCouponTransfer
- taobao.promotionCoupondetailGet
- taobao.promotionCouponsGet
- taobao.promotionLimitdiscountDetailGet
- taobao.promotionLimitdiscountGet
- taobao.promotionMealGet
- taobao.umpActivitiesGet
- taobao.umpActivitiesListGet
- taobao.umpActivityAdd
- taobao.umpActivityDelete
- taobao.umpActivityGet
- taobao.umpActivityUpdate
- taobao.umpDetailAdd
- taobao.umpDetailDelete
- taobao.umpDetailGet
- taobao.umpDetailListAdd
- taobao.umpDetailUpdate
- taobao.umpDetailsGet
- taobao.umpMbbGetbycode
- taobao.umpMbbGetbyid
- taobao.umpMbbsGet
- taobao.umpMbbsListGet
- taobao.umpRangeAdd
- taobao.umpRangeDelete
- taobao.umpRangeGet
- taobao.umpToolAdd
- taobao.umpToolDelete
- taobao.umpToolGet
- taobao.umpToolUpdate
- taobao.umpToolsGet
- taobao.udpItemGet
- taobao.udpJuhuasuanGet
- taobao.udpShopGet
- taobao.hotelAdd
- taobao.hotelCityGet
- taobao.hotelGet
- taobao.hotelImageUpload
- taobao.hotelMatchFeedback
- taobao.hotelNameGet
- taobao.hotelOrderBookingFeedback
- taobao.hotelOrderFaceCheck
- taobao.hotelOrderFaceDeal
- taobao.hotelOrderGet
- taobao.hotelOrderPayFeedback
- taobao.hotelOrderRefundFeedback
- taobao.hotelOrdersSearch
- taobao.hotelRoomAdd
- taobao.hotelRoomGet
- taobao.hotelRoomImgDelete
- taobao.hotelRoomImgUpload
- taobao.hotelRoomQuotasQueryFeedback
- taobao.hotelRoomUpdate
- taobao.hotelRoomsSearch
- taobao.hotelRoomsUpdate
- taobao.hotelSoldHotelsIncrementGet
- taobao.hotelSoldOrdersIncrementGet
- taobao.hotelSoldTypesIncrementGet
- taobao.hotelTypeAdd
- taobao.hotelTypeNameGet
- taobao.hotelUpdate
- taobao.hotelsSearch
- taobao.pictureCategoryAdd
- taobao.pictureCategoryGet
- taobao.pictureCategoryUpdate
- taobao.pictureDelete
- taobao.pictureGet
- taobao.pictureIsreferencedGet
- taobao.pictureReferencedGet
- taobao.pictureReplace
- taobao.pictureUpdate
- taobao.pictureUpload
- taobao.pictureUserinfoGet
- taobao.sellercenterRoleAdd
- taobao.sellercenterRoleInfoGet
- taobao.sellercenterRolemembersGet
- taobao.sellercenterRolesGet
- taobao.sellercenterSubuserPermissionsRolesGet
- taobao.sellercenterSubusersGet
- taobao.sellercenterUserPermissionsGet
- taobao.subuserDepartmentAdd
- taobao.subuserDepartmentDelete
- taobao.subuserDepartmentUpdate
- taobao.subuserDepartmentsGet
- taobao.subuserDutyAdd
- taobao.subuserDutyDelete
- taobao.subuserDutyUpdate
- taobao.subuserDutysGet
- taobao.subuserEmployeeAdd
- taobao.subuserEmployeeUpdate
- taobao.subuserFullinfoGet
- taobao.subuserInfoUpdate
- taobao.subusersGet
- taobao.fuwuSaleLinkGen
- taobao.vasOrderSearch
- taobao.vasSubscSearch
- taobao.vasSubscribeGet
- taobao.refundGet
- taobao.refundMessageAdd
- taobao.refundMessagesGet
- taobao.refundRefuse
- taobao.refundsApplyGet
- taobao.refundsReceiveGet
- taobao.topatsRefundsReceiveGet
- taobao.categoryrecommendItemsGet
- taobao.itemrecommendItemsGet
- taobao.shoprecommendItemsGet
- taobao.shoprecommendShopsGet
- taobao.userrecommendItemsGet
- taobao.widgetAppapiruleCheck
- taobao.widgetItempanelGet
- taobao.widgetLoginstatusGet
- taobao.alipayEbppBillAdd
- taobao.alipayEbppBillGet
- taobao.alipayEbppBillPay
- taobao.alipayEbppBillPayurlGet
- taobao.alipayMicropayOrderConfirmpayurlGet
- taobao.alipayMicropayOrderDirectPay
- taobao.alipayMicropayOrderFreeze
- taobao.alipayMicropayOrderFreezepayurlGet
- taobao.alipayMicropayOrderGet
- taobao.alipayMicropayOrderUnfreeze
- taobao.alipayPointBudgetGet
- taobao.alipayPointOrderAdd
- taobao.alipayPointOrderGet
- taobao.alipaySystemOauthToken
- taobao.alipayTopatsUserAccountreportGet
- taobao.alipayUserAccountFreezeGet
- taobao.alipayUserAccountGet
- taobao.alipayUserContractGet
- taobao.alipayUserGet
- taobao.alipayUserTradeSearch
- taobao.spmeffectGet
- taobao.tmallItemsDiscountSearch
- taobao.tmallSelectedItemsSearch
- taobao.tmallTemaiItemsSearch
- taobao.tmallTemaiSubcatsSearch
- taobao.rdsDbCreate
- taobao.rdsDbDelete
- taobao.rdsDbGet
- taobao.travelItemsareaGet
- taobao.caipiaoGoodsInfoGet
- taobao.caipiaoGoodsInfoInput
- taobao.caipiaoLotterySend
- taobao.caipiaoLotterySendbynick
- taobao.caipiaoLotterytypesGet
- taobao.caipiaoPresentItemsGet
- taobao.caipiaoPresentStatGet
- taobao.caipiaoPresentWinItemsGet
- taobao.caipiaoShopInfoInput
- taobao.caipiaoSignstatusCheck
- taobao.billAccountsGet
- taobao.billBillGet
- taobao.billBillsGet
- taobao.billBookBillGet
- taobao.billBookBillsGet
- taobao.tmallPromotionTipItemAdd
- taobao.tmallPromotionTipCampaignCreate
- taobao.tmallPromotionTjbCampaignGet
- taobao.tmallPromotionTipCampaignRemove
- taobao.tmallPromotionTipCampaignModify
-
为什么设置sandbox为true时,获取返回数据时发生错误(比如404之类),而在真实环境中正常?
- 解决方案
- 淘宝sandbox API接口地址发生变化, 可通过taobao.config配置最新地址
- 配置项:httpSandHost, httpSandPath, httpsSandHost, httpsSandPath
- 淘宝sandbox未实现正在调用的API,请设置sandbox为false
- 淘宝sandbox API接口地址发生变化, 可通过taobao.config配置最新地址
- 解决方案
-
taobao.core.call与具体类别的API函数是什么关系?
- taobao.core.call是底层接口,因此任何使用具体API函数的地方都可用taobao.core.call来替代
- 像taobao.itemcatsAuthorizeGet这样的具体API函数,可以认为是taobao.core.call的快捷方法,方便开发者调用
- sdk一直在更新,有些api方法还没包含在sdk中,这时只能通过taobao.core.call来进行调用
The MIT License (MIT)
Copyright (c) 2013 blacktail <mr.zhangping@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.