Giter Site home page Giter Site logo

ecomphp / tiktokshop-php Goto Github PK

View Code? Open in Web Editor NEW
154.0 4.0 32.0 120 KB

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

PHP 100.00%
tiktok-api tiktok-shop tiktok-shop-api sdk api-client php

tiktokshop-php's People

Contributors

febrihidayan avatar fgmpr avatar kamil-fityka avatar marcum8er avatar nvuln avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tiktokshop-php's Issues

param create_time_ge type invalid,actual type is:string,expected type is:int64

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

updateShopWebhook

$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: {▶}
}

"JSON Parsing Error Using $auth->getToken()"

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();

Cannot install on other projects which require guzzle 6.x

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?

Create product api

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?

detail:shop_id is invalid

Getting detail:shop_id is invalid this error all of a sudden while it was working perfectly a few days back

Create product with parameter error

Hi, I hope everyone supports me. I use sanbox app.
That attribute is optional. But when i callback it is required to have parameter.
image


I try call api Product->Get Attributes
Ảnh 1
with attribute_type = 2 /* SALES_PROPERTY */,
with attribute_id = id, attribute_name = name.

But still error

image

Hope everyone can help. Thank you very much!

Fulfillment.php - markPackageAsShipped

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

uploadProductImage - unsupported Media Type

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
                                        )

                                )

                        )

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.