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.
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.
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.