You can simplify that by storing it in a separate file or the code itself. I am modifying the docs to say the following:
To authenticate in Java, call setupOauth in the constructor for your robot. See the sample code below: public MyRobot() { myRobot.setupOAuth(CONSUMER_KEY, CONSUMER_SECRET, "http://sandbox.gmodules.com/api/rpc"); } Those two parameters can just be local String contants. - pamela On Mon, Mar 8, 2010 at 9:53 AM, Toub <n.toubl...@gmail.com> wrote: > Hi, > > Thanks for this information. > > I still not understand how the example robot retrieve the system > property, if it is hosted by App Engine: > > OAUTH_TOKEN = System.getProperty("OAUTH_TOKEN") > > > How can I set this property ? > > > Thanks > > > > On 6 mar, 03:05, "pamela (Google Employee)" <pamela...@gmail.com> > wrote: > > Thanks for the feedback, Eric, we'll clarify that section to show where > to > > put the code. It's non-obvious in Java. > > > > For reference, the Buggy sample uses Java SDK and the active API. The > > relevant code is in the constructor: > http://google-wave-resources.googlecode.com/svn/trunk/samples/extensi... > > > > <http://google-wave-resources.googlecode.com/svn/trunk/samples/extensi.. > .>I'll > > clarify the docs to show it inside a constructor. > > > > - pamela > > > > On Thu, Mar 4, 2010 at 8:30 AM, Eric Kolotyluk <eric.koloty...@gmail.com > >wrote: > > > > > I'm trying to follow the Authenticating Your Robots< > http://code.google.com/apis/wave/extensions/robots/operations.html#Ac...>instructions > but nothing tells me how to create the handler the registration > > > page calls for. > > > > > Please create a new handler at > > >http://pressybot.appspot.com/_wave/verify_token?st=####that responds > with > > > that token. The server will contact your robot at that URL to verify > the > > > token. You can use the *st* query parameter to ensure that the request > is > > > coming from our server. > > > > > Once you have created the handler, please click the *Verify* button > below. > > > It would be nicer if the tutorial was complete instead of assuming you > > > already know how to do this. For example, if you created a robot using > the Robot > > > Tutorial< > http://code.google.com/apis/wave/extensions/robots/java-tutorial.html>how > would you modify the robot to add the handler? > > > > > Cheers, Eric > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Google Wave API" group. > > > To post to this group, send email to google-wave-...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > google-wave-api+unsubscr...@googlegroups.com<google-wave-api%2bunsubscr...@googlegroups.com> > <google-wave-api%2bunsubscr...@googlegroups.com<google-wave-api%252bunsubscr...@googlegroups.com> > > > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-wave-api?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google Wave API" group. > To post to this group, send email to google-wave-...@googlegroups.com. > To unsubscribe from this group, send email to > google-wave-api+unsubscr...@googlegroups.com<google-wave-api%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-wave-api?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Wave API" group. To post to this group, send email to google-wave-...@googlegroups.com. To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en.