Skip to content
Branch: master
Find file History
Shopping Developer Relations and xflesym Internal change
PiperOrigin-RevId: 283527082
Latest commit 0d0d369 Dec 3, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
account_status Internal change Dec 10, 2019
account_tax
datafeed Internal change Dec 10, 2019
mca Internal change Dec 10, 2019
orders Internal change Dec 10, 2019
primary_account Internal change Dec 10, 2019
product
product_status Internal change Dec 10, 2019
shipping_settings
test Internal change Dec 10, 2019
Gemfile
README.md Internal change Dec 10, 2019
arg_parser.rb
auth.rb Internal change Dec 10, 2019
content_config.rb Internal change Dec 10, 2019
shopping_common.rb Internal change Dec 10, 2019
token_store.rb Internal change Dec 10, 2019
workflows.rb Internal change Dec 10, 2019

README.md

Google Content API for Shopping Ruby Samples

This is a set of simple samples written in Ruby, which provide a minimal example of Google Shopping integration within a command line application.

This starter project provides a great place to start your experimentation into the Google Content API for Shopping.

Prerequisites

Please make sure that you're running Ruby 2.0+ and you've installed the Google APIs Client Library for Ruby.

The Ruby samples also use the Launchy gem to launch a browser when requesting authorization with an OAuth2 client ID.

For your convenience, we've included a Gemfile for use with Bundler. To install all needed gems, you can just run the following commands:

$ gem install bundler
$ bundle install

Setup Authentication and Sample Configuration

If you have not already done so, please read the top-level README to discover how to set up both authentication and the common sample configuration. The rest of this document assumes you have performed both tasks.

Running the Samples

We are assuming you've checked out the code and are reading this from a local directory. If not, check out the code to a local directory.

  1. Start up a sample:

     $ ruby product/list_products.rb
    
  2. Examine your shell output, be inspired and start hacking an amazing new app!

You can’t perform that action at this time.