[google-appengine] Re: Advanced Sample for Endpoints?

2014-07-21 Thread Will Merydith
Bumping this.  Trying to find a sample that shows how one would translate 
NDB objects to Messages in order to work with Endpoints.  It seems like 
this is the most common use case for Endpoints but I cannot find any 
guidance.  

On Wednesday, July 9, 2014 4:19:08 PM UTC-7, Will Merydith wrote:
>
> I would love to see a more advanced sample for using Endpoints to build an 
> API (in Python on App Engine). Meaning a sample project with multiple 
> models, interesting queries and support for all REST methods on each 
> collection.
>
> Please reply with a link if you know of any.  Thanks.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Advanced Sample for Endpoints?

2014-07-11 Thread Will Merydith
I would love to see a more advanced sample for using Endpoints to build an 
API (in Python on App Engine). Meaning a sample project with multiple 
models, interesting queries and support for all REST methods on each 
collection.

Please reply with a link if you know of any.  Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Google App Engine OAuth endpoints throwing 400 in production.

2011-05-14 Thread Will Merydith
Thanks for the reply Robert.

I ended up spending several hours last night reading through the OAuth specs
and SHA1 specs (in particular how to properly sign a request).  I now have a
much better understanding of the OAuth dance and the Google docs seem much
more clear.

My development partner and I tried out Singpost (for Android), which seems
to work.

Just to be clear, Oauth2 isn't for OAuth2.0, but rather just indicates it's
a second version of oauth?



On Sat, May 14, 2011 at 12:32 AM, Robert Kluin wrote:

> Hey Will,
>  Responses inline.
>
>
> On Fri, May 13, 2011 at 16:46, Will Merydith 
> wrote:
> > OK I have some new information and questions to add to this discussion:
> >
> > 1 - There is some confusion in the documentation over whether
> registration
> > is required or not.
>
>   Yup I agree.  But it solved some issue for me in the past, so I
> thought I'd suggest it.
>
> >
> > Both here and here, it says registration is optional.  Regardless, I have
> > registered my app.
> >
> > 2 - When going through the process of registering your application with
> > Google, you're informed that a certificate is not necessary on Google App
> > Engine, and that the OAuth signature method is HMAC-SHA1.  Can anyone
> > confirm that as the case for using the OAuth for Python?
>
>   If I'm not mistaken, if you're using HMAC-SHA1 you don't upload a
> cert.  It will instead give you a secret key to use when signing your
> requests.
>
>
> >
> > 3- Testing this locally doesn't provide much feedback because no matter
> what
> > you pass, it works.  On appspot, it's the opposite problem because
> there's
> > no information on what failed.  I've tried the OAuth Playground, which is
> > great, but wanted to verify that it supports testing OAuth for python.  I
> am
> > using it to test my Request for a Token and it fails, reporting,
> > signature_invalid.
> >
> > The documentation on signature construction is confusing, in some cases
> it
> > indicates sending a base string to the server that is the request url
> > encoded, and in other places it seems to be saying that you pass the
> string
> > directly as in:
> >
> > oauth_signature="wOJIO9A2W5mFwDgiDvZbTSMK%2FPY%3D"
> >
> > Can anyone clarify?
>
>
>   Yes, you're going to find many things about the gdata APIs suck very
> bad and give effectively worthless error feedback.  The docs are a
> frightening mess too.  Make sure you read the protocol guides so you
> can make sure the requests look right.
>
> I'm using python-oauth2.  Here is a snippet of code I use, maybe it
> will help get you started:
>
>params = {
>'oauth_version': "1.0",
>'oauth_nonce': oauth.generate_nonce(),
>'oauth_timestamp': int(time.time()),
>'oauth_callback': 'https://%s%s' % (SERVER,
>  URL_MAP['FinalizeAuth']),
>'oauth_consumer_key': CONSUMER_KEY,
>'oauth_signature_method': 'HMAC-SHA1',
>'scope': service_scopes
>}
>url = OAUTH_URLS['OAuthGetRequestToken']
>consumer = oauth.Consumer(key=CONSUMER_KEY,
>   secret=CONSUMER_SECRET)
>request = oauth.Request(method='POST', url=url, parameters=params)
>request.sign_request(oauth.SignatureMethod_HMAC_SHA1(),
>   consumer, None)
>params['oauth_signature_method'] = request['oauth_signature_method']
>params['oauth_signature'] = request['oauth_signature']
>result = urlfetch.fetch(url, payload=urllib.urlencode(params),
>method='POST')
>
>
>
> >
> >
> >
> >
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appengine@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> > http://groups.google.com/group/google-appengine?hl=en.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Google App Engine OAuth endpoints throwing 400 in production.

2011-05-13 Thread Will Merydith
OK I have some new information and questions to add to this discussion:

1 - There is some confusion in the documentation over whether registration 
is required or not.

Both here and 
here,
 
it says registration is optional.  Regardless, I have registered my app.

2 - When going through the process of registering your application with 
Google, you're informed that a certificate is not necessary on Google App 
Engine, and that the OAuth signature method is HMAC-SHA1.  Can anyone 
confirm that as the case for using the OAuth for Python?

3- Testing this locally doesn't provide much feedback because no matter what 
you pass, it works.  On appspot, it's the opposite problem because there's 
no information on what failed.  I've tried the OAuth Playground, which is 
great, but wanted to verify that it supports testing OAuth for python.  I am 
using it to test my Request for a Token and it fails, reporting, 
signature_invalid.

The documentation on signature construction is confusing, in some cases it 
indicates sending a base string to the server that is the request url 
encoded, and in other places it seems to be saying that you pass the string 
directly as in: 

oauth_signature="wOJIO9A2W5mFwDgiDvZbTSMK%2FPY%3D"

Can anyone clarify?






-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Google App Engine OAuth endpoints throwing 400 in production.

2011-05-13 Thread Will Merydith
Some questions:

My app is on Google App Engine at http://application-id.appspot.com, and I
have a domain, http://www.application-id.com registered (with Google) and
pointing to the appspot domain.

1) Do I still need to register even though these are both Google registered
domains?
2) Do I register the both the appspot and custom domains?



On Fri, May 13, 2011 at 8:57 AM, Will Merydith wrote:

> Thanks for the reply.  I have not registered the app.  I didn't think that
> was required when using Google App Engine as the service provider.  I'll
> register and test it out.
>
> Will
>
>
> On Fri, May 13, 2011 at 12:05 AM, Robert Kluin wrote:
>
>> Hi Will and Samuel,
>>  Have you guys tried registering your apps?
>>
>> http://code.google.com/apis/accounts/docs/RegistrationForWebAppsAuto.html
>>
>>  I think this is discussed a bit in the oauth docs:
>>http://code.google.com/apis/accounts/docs/OAuth.html#prepRegister
>>
>>
>>
>>
>> Robert
>>
>>
>>
>>
>>
>>
>> On Thu, May 12, 2011 at 17:34, Samuel Harper  wrote:
>> > Hi all,
>> > Has anyone found a solution for this?
>> > I'm developing an Android app using GAE and we're having the same issue.
>> > Thanks
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "Google App Engine" group.
>> > To post to this group, send email to google-appengine@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > google-appengine+unsubscr...@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/google-appengine?hl=en.
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine" group.
>> To post to this group, send email to google-appengine@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine?hl=en.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Google App Engine OAuth endpoints throwing 400 in production.

2011-05-13 Thread Will Merydith
Thanks for the reply.  I have not registered the app.  I didn't think that
was required when using Google App Engine as the service provider.  I'll
register and test it out.

Will

On Fri, May 13, 2011 at 12:05 AM, Robert Kluin wrote:

> Hi Will and Samuel,
>  Have you guys tried registering your apps?
>
> http://code.google.com/apis/accounts/docs/RegistrationForWebAppsAuto.html
>
>  I think this is discussed a bit in the oauth docs:
>http://code.google.com/apis/accounts/docs/OAuth.html#prepRegister
>
>
>
>
> Robert
>
>
>
>
>
>
> On Thu, May 12, 2011 at 17:34, Samuel Harper  wrote:
> > Hi all,
> > Has anyone found a solution for this?
> > I'm developing an Android app using GAE and we're having the same issue.
> > Thanks
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appengine@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> > http://groups.google.com/group/google-appengine?hl=en.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Google App Engine OAuth endpoints throwing 400 in production.

2011-05-12 Thread Will Merydith
Hoping that now I/O is over someone from Google can respond. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Google App Engine OAuth endpoints throwing 400 in production.

2011-05-09 Thread Will Merydith
(posted in OAuth group as well) 

I implemented the experimental OAuth support for Google App Engine using 
Python,
 
and have it working locally, but the endpoints are throwing a 400 when I 
deploy to appspot.

For example, the url http(s)://my-app.appspot.com/_ah/OAuthGetRequestToken 
returns a 400, but locally that url pattern behaves as expected.

I have tried both http and https, and assumed that appspot handles the ssl 
cert.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] ETA for programmatic creation of Blobstore images?

2011-02-21 Thread Will Merydith
"provide methods for storing images via path/uri (in addition to the POST
method provided now)"

My understanding is that right now, in terms of storing images, the API only
supports uploading via POST.  It makes it very easy to implement a form for
uploading images, but you cannot save images using say urllib.  For example
I cannot grab CC images from Flickr's API for us in my app.  Correct?

On Sun, Feb 20, 2011 at 11:50 PM, Nick Johnson (Google) <
nick.john...@google.com> wrote:

> Hi Will,
>
> On Fri, Feb 18, 2011 at 7:01 AM, Will Merydith wrote:
>
>> I was happy to see that in the App Engine Blog's latest post, a link to
>> the technical roadmap says, "Programmatic Blob creation in Blobstore"
>>
>> It's low on the list, but maybe that does not indicate priority.  Is there
>> an ETA on this feature?
>
>
> We don't give ETAs on features on the roadmap outside the general guideline
> that we aim to get features on the roadmap out within about 6 months.
>
>
>> I assume this means the API will be updated to provide methods for storing
>> images via path/uri (in addition to the POST method provided now).
>>
>
> I'm not sure what you're asking here. The API will allow creation of blobs
> from inside App Engine, by calling API methods. Blobs created this way will
> be identical in all respects to uploaded blobs.
>
> -Nick Johnson
>
>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine" group.
>> To post to this group, send email to google-appengine@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine?hl=en.
>>
>
>
>
> --
> Nick Johnson, Developer Programs Engineer, App Engine
> Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
> 368047
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] ETA for programmatic creation of Blobstore images?

2011-02-17 Thread Will Merydith
I was happy to see that in the App Engine Blog's latest post, a link to the 
technical roadmap says, "Programmatic Blob creation in Blobstore"

It's low on the list, but maybe that does not indicate priority.  Is there 
an ETA on this feature?  I assume this means the API will be updated to 
provide methods for storing images via path/uri (in addition to the POST 
method provided now).

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Username Already Exists For Application ID?

2010-12-13 Thread Will Merydith
Thanks for repeating the information here. I only saw documentation
stating that your username was reserved for use, and nothing about the
issue with the dot.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Username Already Exists For Application ID?

2010-12-12 Thread Will Merydith
I went to create an Application with my Google username
(usern...@gmail.com).

It says the name is available, but then when I click to submit I get
the message:
Already Exists
This application ID or version is already in use.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.