Hi Eric,

Thank you very much for your quick response.

Here is my code by using default domain name.

AuthSubUtil.getRequestUrl(
                          "http://www.xmsuite.com";,

"http://www.google.com/calendar/feeds/",false,true<http://www.google.com/calendar/feeds/%22,false,true>);


The code redirects to the normal Google AuthSub page with "Grant Access" and
"Deny Access" options as the following URL:

https://www.google.com/accounts/AuthSubRequest?next=http%3A%2F%2Fwww.xmsuite.com&scope=http%3A%2F%2Fwww.google.com%2Fcalendar%2Ffeeds%2F&secure=0&session=1&hd=default

Then I tried with my domain name as this:

AuthSubUtil.getRequestUrl("xmsuite.com",
                "http://www.xmsuite.com";,

"http://www.google.com/calendar/feeds/",false,true<http://www.google.com/calendar/feeds/%22,false,true>
);

The code returns the following URL:

xmsuite.com://
httpswww.google.com/?next=http%3A%2F%2Fwww.xmsuite.com&scope=http%3A%2F%2Fwww.google.com%2Fcalendar%2Ffeeds%2F&secure=0&session=1

I have attached my program. It is about same as Google's Sample program.

Thank you very much for your help.

Jack







On Sat, Nov 29, 2008 at 5:21 PM, Eric (Google) <[EMAIL PROTECTED]> wrote:

>
> Hi Jack,
>
> That's the correct overloaded call.  Can you elaborate a little (i.e.
> what doesn't work)?
>
> Please also post the full URL returned by getRequestUrl().
>
> Thanks,
> Eric
>
> On Nov 29, 1:49 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>  > Hi,
> >
> > The following call works in Java version but not in .Net version.
> >
> > AuthSubUtil.getRequestUrl("mydomain.com", continueUrl, "
> http://www.google.com/calendar/feeds/",false,true);
> >
> > So my question is how can I use my domain instead of default domain. I
> > have played this all afternoon but still could not figure it out.
> >
> > Thank you very much for your help.
> >
> > Jack
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Docs Data APIs" 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-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class employee_AuthSub : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
}

Attachment: AuthSub.aspx
Description: XML document

Reply via email to