A sample Laravel package to manage products on Google merchant center
gptinker/laravel-google-merchant is a Laravel package for a sample laravel package to manage products on google merchant center.
It currently has 0 GitHub stars and 8 downloads on Packagist (latest version 1.4).
Install it with composer require gptinker/laravel-google-merchant.
Discover more Laravel packages by gptinker
or browse all Laravel packages to compare alternatives.
Last updated
composer require gptinker/google-merchant
GOOGLE_MERCHANT_ID="1234567890"
GOOGLE_MERCHANT_TARGET_COUNTRY="AE"
GOOGLE_MERCHANT_CONTENT_LANGUAGE="en"
GOOGLE_MERCHANT_CHANNEL="online"
storage/json/google-merchant-credentials.json
use Gptinker\GoogleMerchant\Facades\ProductApi;
$response = ProductApi::fetch();
if($response['status'] == 'success'){
// Success
}else{
// Error
}
The request body contains an instance of Product
$response = ProductApi::insert($product);
if($response['status'] == 'success'){
// Success
}else{
// Error
}
$product_id = Same id used in "offerId" while insertion
$response = ProductApi::get($product_id);
if($response['status'] == 'success'){
// Found
}else{
// Not Found
}
The request body contains an instance of Product
$product_id = Same id used in "offerId" while insertion
$response = ProductApi::update($product, $product_id);
if($response['status'] == 'success'){
// Success
}else{
// Error
}
$product_id = Same id used in "offerId" while insertion
$response = ProductApi::delete($product_id);
if($response['status'] == 'success'){
// Success
}else{
// Error
}