Giter Club home page Giter Club logo

laravel-google-merchant-api's People

Contributors

augustusnaz avatar chris-ware avatar ianfortier avatar paula2001 avatar torro-uk avatar trippo 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

Watchers

 avatar  avatar

laravel-google-merchant-api's Issues

product update

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

Product Delete Failed

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?

Can't get $data outside then callback

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?

Not found error

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

Error while inserting a Product

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...)
"""

Multiple Account Support

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?

Getting "Call to a member function request() on null" Error

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?

Composer install error

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!!

Shipping details not uploading

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

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.