Hi,

You can't use gadget.io.makeRequest with type="url" and therefore using
oAuth doesn't make much sense and is unlikely to be supported in gadgets of
type="url".  Added to this, custom oAuth endpoints need to have their
consumer key and secret registered with Google.  More information can be
found here: http://code.google.com/apis/gadgets/docs/oauth.html#consumer-key

P

On Fri, Sep 3, 2010 at 8:57 PM, Bachi <[email protected]> wrote:

> Hi Everyone,
>
> I have developed a gadget which is using oAuth. Now I am trying to use
> content type URL. Could any one please help me to do this kind gadget?
>
> Here is my gadget code
>
> <Module>
> <ModulePrefs title="OAuth Contacts" scrolling="true">
> <Require feature="opensocial-0.8" />
> <Require feature="locked-domain"/>
> <OAuth>
> <Service name="google">
> <Access url="http://phd.estenda.com/mhealth250/access_token";
> method="GET" />
> <Request url="http://phd.estenda.com/mhealth250/request_token";
> method="GET" />
> <Authorization url="http://phd.estenda.com/mhealth250/authorize?
> callbackURL=http://oauth.gmodules.com/gadgets/oauthcallback"; />
> </Service>
> </OAuth>
> </ModulePrefs>
> <Content type="url" href="http://phd.estenda.com/mhealth250/faces/
> admin/test.faces" />
> </Module>
>
> and the test.faces has the html source which supports the google
> gadget.
>
> Thanks in advance.
>
> --
> You received this message because you are subscribed to the Google Groups
> "iGoogle Developer Forum" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-gadgets-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/Google-Gadgets-API?hl=en.
>
>


-- 
Paul Kinlan
Developer Advocate @ Google for Chrome and HTML5
t: +447730517944
tw: @Paul_Kinlan

-- 
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" 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-Gadgets-API?hl=en.

Reply via email to