opensocial java client to use shindig???

35 views
Skip to first unread message

Asuka

unread,
Oct 8, 2010, 6:39:51 AM10/8/10
to OpenSocial Client Libraries
Hey there,

I´ve tried the friendlist android app from the opensocial java client.
With Google and MySpace it works.

addProvider(new GoogleProvider(), new String[] {"anonymous",
"anonymous"});

addProvider(new MySpaceProvider(), new String[]
{"5c3sdfsdbb5ee90a4b05bf959821cee825b7",

"64c1e0041cca416d8f27e1feb95ff51edc6f5234klcvnwlls87197ab1b23423426"});

But what do I have to do, if I want to use a new ShindigProvider for a
social network software, where shindig is integrated in?

Where do I get the consumer key and secret and what is the
authorizeUrl, accessTokenUrl and requestTokenUrl?

Did anybody use this app to connect to shindig and would help me?

Greetings
Asuka
Message has been deleted
Message has been deleted

Asuka

unread,
Oct 11, 2010, 10:00:55 AM10/11/10
to OpenSocial Client Libraries
Hi there,

I figured out how to deploy shinig on a server. I´ve named it ROOT.war
and it works. Now I want to open a connection via the friendlist app.
To do this, I´ve written my own ShindigProvider to set the urls.

setRestEndpoint("http://server:8081/social/rest/");
setAuthorizeUrl("http://server:8081/oauth/authorize");
setAccessTokenUrl("http://server:8081/oauth/accessToken");
setRequestTokenUrl("http://server:8081/oauth/requestToken");

After this I´ve set the scheme in friendlistclass setScheme("http://
server:8081/gadgets/oauthcallback"); and edited the shindigoauth

<Service name="shindig">
<Request url="http://server:8081/oauth/requestToken" />
<Authorization url="http://server:8081/oauth/authorize?
oauth_callback=http://server:8081/gadgets/oauthcallback" />
<Access url="http:/server:8081/oauth/accessToken" />
</Service>

Now I get an OAuthException. What did I forget?

Greetings
Reply all
Reply to author
Forward
0 new messages