The next parameter is the url you want to be redirected to after
authorisation.

So you'd send the user to Google for authorization and let them accept
that your app can access thier account and them be redirected back to
your app with the relevant tokens to move forward.



Tom Wilson
Freelance Google Base Developer and Consultant
www.tomthedeveloper.com

Google Base Tools - http://dev.tomthedeveloper.com/googlebase
Featured Project : 
http://google-code-featured.blogspot.com/2008/02/google-base-competitor-analysis.html

On Apr 30, 4:35 pm, Bala <[email protected]> wrote:
> Hi All,
> I am new to the JS Client library for GData.
>
> I went through the "Getting Started" section of "Google Base Data API"
> and came up with a sample HTML page (given below). When I open this
> HTML page in a browser I am redirected to login to my Google Account
> and once I login I am shown "Access Request" page with the following
> message.
>
> "The page you have requested cannot be displayed. Another site was
> requesting access to your Google Account, but sent a malformed
> request. Please contact the site that you were trying to use when you
> received this message to inform them of the error. A detailed error
> message follows:
>
>     The "next" parameter was bad or missing."
>
> I believe this kind of error message is already discussed in this
> group, but I could not do much to get rid of this error after reading
> those posts.
>
> Appreciate any help provided.
>
> /********************  Sample HTML *********************/
> <html>
> <head>
> <script type="text/javascript" src="http://www.google.com/jsapi";></
> script>
> <script type = "text/javascript">
> google.load("gdata", "1.x");
> google.setOnLoadCallback(initFunc);
> var baseService;
> function setupBaseService() {
>   baseService = new google.gdata.gbase.GoogleBaseService('GoogleInc-
> basejsguide-1.0');}
>
> function logMeIn() {
>   var scope = 'http://www.google.com/base/feeds';
>   var token = google.accounts.user.login(scope);}
>
> function initFunc() {
>   setupBaseService();
>   logMeIn();
>   getMyItems();}
>
> function logMeOut() {
>   google.accounts.user.logout();}
>
> function getMyItems() {
>   var itemsFeedUri = 'http://www.google.com/base/feeds/items';
>   var query = new google.gdata.gbase.ItemsQuery(itemsFeedUri);
>
>   // Set the maximum of the result set to be 25
>   query.setMaxResults(25);
>
>   baseService.getItemsFeed(query, handleItemsFeed, handleError);
>
> }
>
> var handleItemsFeed = function(result) {
>   var entries = result.feed.entry;
>
>   for (var i = 0, item; item = entries[i]; ++i) {
>     alert(item.getTitle().getText());
>   }}
>
> function handleError(e) {
>   alert("There was an error!");
>   alert(e.cause ? e.cause.statusText : e.message);}
>
> </script>
> </head>
> <body>
> </body>
> </html>
>
> /*****************************************/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Base Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Base-data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to