TemuApiClient
in package
Table of Contents
Properties
- $accessToken : mixed
- $apiBase : mixed
- $appKey : mixed
- $appSecret : mixed
- $client : mixed
Methods
- __construct() : mixed
- changeSkuPrice() : mixed
- createProduct() : mixed
- Crée un produit sur Temu
- editGoodsCompliance() : mixed
- editGoodsStock() : mixed
- generateSign() : mixed
- Génère la signature
- generateSignForProductCreation() : mixed
- getAllCategoriesTree() : mixed
- getBrandTradeMark() : mixed
- getCategoryTemplates() : mixed
- getCategoryTemplatesWithDebug() : mixed
- getComplianceExtraTemplate() : mixed
- getComplianceInfoFillList() : mixed
- getComplianceRules() : mixed
- getFreightTemplateList() : mixed
- getImageUploadSignature() : mixed
- getMallInfo() : mixed
- getOrderAmount() : mixed
- getOrderDetail() : mixed
- getOrderShippingInfo() : mixed
- getOrdersList() : mixed
- getProductDetail() : mixed
- getSizeChartElements() : mixed
- getTemuCategories() : mixed
- getTemuProductsAndCostTemplateIds() : mixed
- getUploadSignature() : mixed
- requestCategoryProperties() : mixed
- requestCategorySpecIds() : mixed
- requestExpandCategory() : mixed
- updateProduct() : mixed
- uploadImageToTemu() : mixed
- uploadMaterials() : mixed
- formatCurlCommand() : mixed
- requestCategoryTemplates() : mixed
Properties
$accessToken
private
mixed
$accessToken
$apiBase
private
mixed
$apiBase
$appKey
private
mixed
$appKey
$appSecret
private
mixed
$appSecret
$client
private
mixed
$client
Methods
__construct()
public
__construct(array<string|int, mixed> $temu) : mixed
Parameters
- $temu : array<string|int, mixed>
changeSkuPrice()
public
changeSkuPrice(mixed $goodsId, array<string|int, mixed> $payload) : mixed
Parameters
- $goodsId : mixed
- $payload : array<string|int, mixed>
createProduct()
Crée un produit sur Temu
public
createProduct(array<string|int, mixed> $requestData) : mixed
Parameters
- $requestData : array<string|int, mixed>
editGoodsCompliance()
public
editGoodsCompliance(mixed $goodsId[, array<string|int, mixed> $payload = [] ]) : mixed
Parameters
- $goodsId : mixed
- $payload : array<string|int, mixed> = []
editGoodsStock()
public
editGoodsStock(mixed $goodsId, array<string|int, mixed> $body) : mixed
Parameters
- $goodsId : mixed
- $body : array<string|int, mixed>
generateSign()
Génère la signature
public
generateSign(array<string|int, mixed> $params) : mixed
Parameters
- $params : array<string|int, mixed>
generateSignForProductCreation()
public
generateSignForProductCreation(array<string|int, mixed> $params) : mixed
Parameters
- $params : array<string|int, mixed>
getAllCategoriesTree()
public
getAllCategoriesTree([mixed $parentCatId = null ][, mixed $language = 'en' ]) : mixed
Parameters
- $parentCatId : mixed = null
- $language : mixed = 'en'
getBrandTradeMark()
public
getBrandTradeMark() : mixed
getCategoryTemplates()
public
getCategoryTemplates([mixed $catId = null ]) : mixed
Parameters
- $catId : mixed = null
getCategoryTemplatesWithDebug()
public
getCategoryTemplatesWithDebug([mixed $catId = null ]) : mixed
Parameters
- $catId : mixed = null
getComplianceExtraTemplate()
public
getComplianceExtraTemplate(mixed $temuCategoryId, mixed $goodsId) : mixed
Parameters
- $temuCategoryId : mixed
- $goodsId : mixed
getComplianceInfoFillList()
public
getComplianceInfoFillList() : mixed
getComplianceRules()
public
getComplianceRules(mixed $temuCategoryId) : mixed
Parameters
- $temuCategoryId : mixed
getFreightTemplateList()
public
getFreightTemplateList() : mixed
getImageUploadSignature()
public
getImageUploadSignature() : mixed
getMallInfo()
public
getMallInfo() : mixed
getOrderAmount()
public
getOrderAmount(mixed $parentOrderSn) : mixed
Parameters
- $parentOrderSn : mixed
getOrderDetail()
public
getOrderDetail(mixed $parentOrderSn) : mixed
Parameters
- $parentOrderSn : mixed
getOrderShippingInfo()
public
getOrderShippingInfo(mixed $parentOrderSn) : mixed
Parameters
- $parentOrderSn : mixed
getOrdersList()
public
getOrdersList([mixed $page = 1 ][, mixed $pageSize = 50 ]) : mixed
Parameters
- $page : mixed = 1
- $pageSize : mixed = 50
getProductDetail()
public
getProductDetail(mixed $goodsId) : mixed
Parameters
- $goodsId : mixed
getSizeChartElements()
public
getSizeChartElements(mixed $catId) : mixed
Parameters
- $catId : mixed
getTemuCategories()
public
getTemuCategories([mixed $parentCatId = 12477 ][, mixed $language = 'en' ]) : mixed
Parameters
- $parentCatId : mixed = 12477
- $language : mixed = 'en'
getTemuProductsAndCostTemplateIds()
public
getTemuProductsAndCostTemplateIds([mixed $goodsSearchType = 'INACTIVE' ][, mixed $pageSize = 10 ][, mixed $pageToken = null ]) : mixed
Parameters
- $goodsSearchType : mixed = 'INACTIVE'
- $pageSize : mixed = 10
- $pageToken : mixed = null
getUploadSignature()
public
getUploadSignature() : mixed
requestCategoryProperties()
public
requestCategoryProperties(mixed $catId, mixed $goodsName, array<string|int, mixed> $goodsPropList) : mixed
Parameters
- $catId : mixed
- $goodsName : mixed
- $goodsPropList : array<string|int, mixed>
requestCategorySpecIds()
public
requestCategorySpecIds(mixed $catId, mixed $parentSpecId, mixed $childSpecName) : mixed
Parameters
- $catId : mixed
- $parentSpecId : mixed
- $childSpecName : mixed
requestExpandCategory()
public
requestExpandCategory(mixed $goodsName[, mixed $description = null ][, mixed $imageUrl = null ][, mixed $expandCatType = 1 ]) : mixed
Parameters
- $goodsName : mixed
- $description : mixed = null
- $imageUrl : mixed = null
- $expandCatType : mixed = 1
updateProduct()
public
updateProduct(array<string|int, mixed> $productData) : mixed
Parameters
- $productData : array<string|int, mixed>
uploadImageToTemu()
public
uploadImageToTemu(mixed $imageUrl[, mixed $ratio = 2 ]) : mixed
Parameters
- $imageUrl : mixed
- $ratio : mixed = 2
uploadMaterials()
public
uploadMaterials(mixed $imagePath) : mixed
Parameters
- $imagePath : mixed
formatCurlCommand()
private
formatCurlCommand(mixed $url, array<string|int, mixed> $payload) : mixed
Parameters
- $url : mixed
- $payload : array<string|int, mixed>
requestCategoryTemplates()
private
requestCategoryTemplates([mixed $catId = null ]) : mixed
Parameters
- $catId : mixed = null