Re: Anyone interested in Java AppEngine Example Code?

74 views
Skip to first unread message
Message has been deleted

Ales Justin

unread,
Jan 19, 2013, 5:22:27 PM1/19/13
to google-a...@googlegroups.com
I for one am definitely interested in such examples.
It will help us flush out any issues we have with out CapeDwarf env.

btw: is @InvalidMail's code already public?

-Ales

Gaurav Bansal

unread,
Jan 22, 2013, 7:08:34 AM1/22/13
to google-a...@googlegroups.com
Hi 

I have created a REST service and deployed over cloud using GAE. I don't want it to be accessed by any one just by using the URL. I should have some control over there to provide the authentication, may be along with the request. 

I explored and got some OAuth related tutorials, but could not understand properly.

Please help me regarding this.

Thanks in advance.

On Saturday, 19 January 2013 02:37:30 UTC+5:30, Vinny P wrote:

TLDR: Would people be interested in a repository of example Java AppEngine code? Code that demonstrates frequently-done tasks (connecting to Twitter/Youtube, basic usage of Task Queue/Images/GAE APIs, etc) and miscellaneous useful tools?


On occasion, I see people post on this group or Stack Overflow asking for help on simple code problems; for instance, they need help configuring backends, or a code example of how to use task queues, or even just a short example of how to access and search the datastore. Would people be interested if I put up some sample code on Github/Google code, demonstrating how to use GAE APIs? Essentially, I'll be writing code that tries to be newbie-friendly. I'll try to stick to using low-level APIs, and adding in plenty of comments. Obviously, seasoned veterans of this list wouldn't benefit from this; it would just be for Java newbies on GAE. 

I wrote up a quick example application to demonstrate: it's a Twitter robot located at https://twitter.com/invalidmail

It's a simple robot; if you follow it (important!) and tweet at it, it'll reply back with a direct message (not a tweet, but direct message) stating your tweet's ID in a few minutes. If you attach an image to the tweet, the robot will reply back with the image's dimensions. However, this simple robot uses many GAE APIs: Task Queue and cron to schedule Twitter communications, ImageService and Blobstore to analyze and store a copy of images, URLFetch to download copies of images, Datastore to remember past tweets, Logging to check for errors, and Email to post reports to admins.

Essentially, my question is: would people benefit from this? Are there Java people out there interested in example code? What examples would you like to see?

Thanks.
Reply all
Reply to author
Forward
0 new messages