augustusnaz / laravel-google-merchant-api Goto Github PK
View Code? Open in Web Editor NEWA sweet Laravel implementation of Google Merchant API for Google Shopping.
License: MIT License
A sweet Laravel implementation of Google Merchant API for Google Shopping.
License: MIT License
Hi,
Do you have a plan for supporting the Method: products.custombatch ?
Ref: https://developers.google.com/shopping-content/reference/rest/v2.1/products/custombatch
I didn't understand how to update a product.
Would you please write an example to update a product availability in google merchant?
Can it be something like :
$attributes = [
'id' => 1, // maps to offerId (if set in config)
'name' => 'Product 1', // likewise maps to title
];
$params = [
price =>[
'currency'=>'EUR' ,
'value'=>200
]
];
ProductApi::update(function($product) use($attributes){
$product->with($attributes)
->inStock($inStock = false);
}, $params )->then(function($data){
echo 'Product updated';
})->otherwise(function(){
echo 'Insert failed';
})->catch(function($e){
dump($e);
});
ProductApi::merchant([
'merchant_id' => config('laravel-google-merchant-api.merchants.moirei.merchant_id'),
'client_credentials_path' => config('laravel-google-merchant-api.merchants.moirei.client_credentials_path')
])->delete(function($product){
$product->offerId(2);
})->then(function($response){
echo 'Product deleted';
})->otherwise(function($response){
echo 'Delete failed';
})->catch(function($e){
echo($e->getResponse()->getBody()->getContents());
});
this is going on Delete Failed, but it is also deleted product from my merchant account.
what is the issue can anybody tells?
Hello.
Trying to get $data like this
$list = null;
ProductApi::list()->then(function($data) use(&$list){
$list = $data;
});
dd($list); // echoed 'null'
May i kindly ask you to show an example how to get $data outside then callback?
I got this error while making insert call to the API
Client error: POST https://www.googleapis.com/content/v2.1//products
resulted in a 404 Not Found
response: Not Found
Client error: POST https://www.googleapis.com/content/v2/12308080/products
resulted in a 400 Bad Request
response:
{
"error": {
"code": 400,
"message": "[customAttribute[0].type] Required parameter: customAttribute[0].type",
(truncated...)
"""
Hello,
The latest version isn't tagged so packagist is defaulting to 1.1.4, which doesn't support Illuminate v9.
Thanks for your package.
Hi,
I am using your library to push content into our GMC account but we need to be able to support different accounts through the same Laravel instance - using Queues. Is this possible? I tried to overwrite the runtime config which works locally but when running in production it doesn't seem to work. Can config values be passed into the library rather than always pulling from config variables?
I just configured everything, but when I try to get products it returns error like above.
"vendor/moirei/laravel-google-merchant-api/src/Api/AbstractApi.php:263"
I checked my client_credentials_path
and its reachable from any controllers.
What could be the main issue?
I am trying to install but it is giving me this error when I enter the command
composer require moirei/laravel-google-merchant-api
MOIREI\GoogleMerchantApi: Could not determine merchant credentials.
Might you help me?
Thanks!!
Hi,
I have inserted basic products details to google merchant using content api, It was fine.
When trying with ->shipping(), its not updating the shipping details. Can you please give any example to upload shipping and taxes in content api.
Thanks
Hi, do you have any plans to add support for Laravel 8?
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.