hkonnet/laravel-google-shopping

Google shopping API integration for Laravel.

v0.7.1 2019-06-19 17:09 UTC

This package is auto-updated.

Last update: 2024-05-08 21:37:03 UTC


README

In this package Google Shopping API has been used you can use this package to consume Google shopping API.

Getting Started

Follow the instruction to install and use this package.

Installing

Add Laravel-Ebay to your composer file via the composer require command:

$ composer require hkonnet/laravel-google-shopping

Or add it to composer.json manually:

"require":{
    "hkonnet/laravel-google-shopping": "^0.1"
}

Register the service provider by adding it to the providers key in config/app.php. Also register the facade by adding it to the aliases key in config/app.php.

Laravel 5.1 or greater

'providers' => [
    ...
    Hkonnet\LaravelGoogleShopping\Providers\GoogleShoppingServiceProvider::class, 
]

Laravel 5

'providers' => [
    ...
    'Hkonnet\LaravelGoogleShopping\Providers\GoogleShoppingServiceProvider', 
]

Next to get started, you'll need to publish all vendor assets:

$ php artisan vendor:publish --provider="Hkonnet\LaravelGoogleShopping\Providers\GoogleShoppingServiceProvider"

This will create a config/google_shopping.php file in your app that you can modify to set your configuration.

###Configuration After installation, you will need to add your google shopping settings to your .env file.

  • You can set mode to sandbox or production
  • You can set Application name
  • You can set configuration directory e.g in the root you can create .credential folder
  • You can set auth type (Right now auth via Service account credentials are supported)
  • Set Service account file path.

Note : How to create service account credentials here the details for you https://developers.google.com/shopping-content/v2/how-tos/service-accounts