ecomphp / tiktokshop-php Goto Github PK
View Code? Open in Web Editor NEWUnofficial Tiktok Shop API Client in PHP. Use API version 202309 and later
Home Page: https://github.com/EcomPHP/tiktokshop-php
License: Apache License 2.0
Unofficial Tiktok Shop API Client in PHP. Use API version 202309 and later
Home Page: https://github.com/EcomPHP/tiktokshop-php
License: Apache License 2.0
Hello
i call Orderlist (with period)
$client->Order->getOrderList([
'create_time_ge' => $time_before,
'create_time_lt' => $timest,
'page_size' => (int)10,
'sort_field' => 'create_time',
'page_token' => $next_cursor,
]);
this shown param create_time_ge type invalid,actual type is:string,expected type is:int64
how to fix it
$client->Event->updateShopWebhook('ORDER_STATUS_CHANGE', $callbackurl);
一直返回:
^ EcomPHP\TiktokShop\Errors\TokenException {#125 ▼
#message: "param body.address is missing"
#code: 36009004
#file: "/www/wwwroot/wms.com/vendor/ecomphp/tiktokshop-php/src/Resource.php"
#line: 95
trace: {▶}
}
I'm encountering an issue where I receive a JSON parsing error when using the $auth->getToken() function in my code. The exact error message is:
{ "error": "Unable to parse response string as JSON" }
However, when I directly run the link in the URL, it seems to accept the JSON response correctly. The issue only arises when I use the $auth->getToken() function.
I am using $client->useSandboxMode();
Got error while installing the module on a Symfony application
.
Problem 1 - Root composer.json requires ecomphp/tiktokshop-php ~2.1.0 -> satisfiable by ecomphp/tiktokshop-php[v2.1.0, v2.1.1, v2.1.2]. - ecomphp/tiktokshop-php[v2.1.0, ..., v2.1.2] require guzzlehttp/guzzle ^7.3 -> found guzzlehttp/guzzle[7.3.0, ..., 7.9.x-dev] but the package is fixed to 6.5.8 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
.
Does it require guzzlehttp/guzzle ^7.3 or 6.x is enough?
I am getting this error, Please help
Fatal error: Uncaught Error: Class 'EcomPHP\TiktokShop\Auth' not found in /libraries/tiktok/src/Client.php:119
I can able create only 100 products a day. I got nearly 8000+ products.
I have checked aftership Tiktok feed application and they can bulk upload all products in once. how?
Is there another way to bulk create products on tiktok?
Getting detail:shop_id is invalid this error all of a sudden while it was working perfectly a few days back
Hello
for getBrands, we need to pass Params including 'page_number' and 'page_size'
referring to https://partner.tiktokshop.com/doc/page/262795
Hi, I hope everyone supports me. I use sanbox app.
That attribute is optional. But when i callback it is required to have parameter.
I try call api Product->Get Attributes
with attribute_type = 2 /* SALES_PROPERTY */,
with attribute_id = id, attribute_name = name.
But still error
Hope everyone can help. Thank you very much!
When i am making call for markPackageAsShipped, getting below message -
[*message] => This interface cannot be used in this region or this business type. Please don't use the api.
[Exceptionstring] =>
[*code] => 21008106
after updating your code i find it very annoying if i use image link. but it works great if it is omitted
$img_data = file_get_contents($image);
ref image: https://images.pexels.com/photos/206359/pexels-photo-206359.jpeg
I am trying to upload the image using API but getting error - *[message] => unsupported Media Type
I tried with different image also but same issue. Please help
$image= 'https://images.pexels.com/photos/206359/pexels-photo-206359.jpeg';
try {
$resp = $client->Product->uploadProductImage($image, 'MAIN_IMAGE');
} catch (\Exception $e) {
$resp = $e;
}
I have checked the args in array and it looks ok to me -
[args] => Array
(
[0] => POST
[1] => images/upload
[2] => Array
(
[json] => Array
(
[data] => /9j/4AAQSkZJRgABAQEASABIAAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxIT.............CKcf/9k=
[use_case] => MAIN_IMAGE
)
)
)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.