OussamaOBO / gshoppingcontent-php

Automatically exported from code.google.com/p/gshoppingcontent-php
Other
0 stars 0 forks source link

Server-to-srver and google_client support #10

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Maybe I've missed something, but there doesn't seem to be any support in 
GSC_Client for doing server-to0-server requests (ones where there's no user to 
give access consent and where public keys are used instead of secrets).  

The google_client OAuth2 API library 
(http://code.google.com/p/google-api-php-client/) does seem to support this, 
but it doesn't include a service class for using the Content For Shopping API.  

The GSC_Client library should be able to make use of the OAuth2 library for 
authentication.  Or there should be native support in the library for doing 
key-based authentication for server-to-server applications.  

Original issue reported on code.google.com by gordon.d...@gmail.com on 28 Jan 2013 at 10:38

GoogleCodeExporter commented 8 years ago
The Content API for Shopping is a Google Data API [1], while 
google-api-php-client is for use with discovery-based APIs [2].

As a result, this special library has sprung up (I wrote a good chunk of it 
when I worked on Shopping).

I wrote a class in Python that could use the OAuth 2.0 pieces from 
google-api-python-client and something may be beneficial here so as not to 
duplicate too much code:
http://code.google.com/p/gdata-python-client/source/detail?r=ecb1d49b5fbe05c9bc6
c8525e18812ccc02badc0

[1] https://developers.google.com/gdata/docs/2.0/reference
[2] https://developers.google.com/discovery/v1/getting_started#background

Original comment by dhermes@google.com on 28 Jan 2013 at 4:15

GoogleCodeExporter commented 8 years ago

Original comment by j...@google.com on 29 Jan 2013 at 2:41