how to conduct a poll

2 views
Skip to first unread message

Jaichander Ramesh

unread,
May 28, 2008, 4:51:55 AM5/28/08
to opensoci...@googlegroups.com

 
Hi!
could  anyone tell me what is the best way to conduct a poll,ie:how do I retrieve the response from each user and store it in one place to make sense out of it? 
Also how do you know the total number of users of your app.
cheers!
jaichander



CEAT

Vamsi

unread,
May 28, 2008, 5:26:17 AM5/28/08
to Orkut Developer Forum
SELECT UNIQUE(osid) from table from where u got ur votes ... and make
sure that the basic requirement to vote is install the app

Regards,
Vamsi

Rajiv Renganathan

unread,
May 28, 2008, 7:06:27 AM5/28/08
to opensoci...@googlegroups.com
Hi Vamsi,

So one needs to keep the data outside of orkut, in our servers right.

Makes me think, why not another a 10kb space for app-level data.Would
be excellent I think. thoughts from others?

Cheers!
rajiv
rajspace.net

--
-------------------------------------------------------------------------------------------------
Stockoogle.in > Harnessing Google power for your equity analysis
-------------------------------------------------------------------------------------------------

jai

unread,
May 28, 2008, 8:06:09 AM5/28/08
to Orkut Developer Forum
Hi!
thanks for your swift reply.
I am kind of a newbie to this and have basic knowledge of java script
so I have a few doubts-
1)At present I am using GGE for hosting my gadget,is there any way I
can retrieve data sent by users in this method.
What method of hosting do you suggest for retrieval of data.
2) Also from what I read ,server side scripting will not be
integrated till RESTFUL API`s are implemented.
3)Is there anyway I can get the total number of users using my gadget.

So basically could you tell me how to retrieve the data from each of
the users apps into one place(because they will be voting from their
individual apps) or maybe you could give me links from where I could
proceed learning about integrating the work done at my server and the
app and vice versa.

Thanks a lot once again.
regards
Jaichander

Jason

unread,
May 30, 2008, 5:17:37 PM5/30/08
to Orkut Developer Forum
Hi Jaichander.

1. The OpenSocial specification defines a persistence API which allows
you to store strings as name-value pairings without a server-side back-
end -- updating and fetching this app data is handled completely
through the client-side API. If you're interested, you can read more
by following the links below.

http://code.google.com/apis/opensocial/docs/0.7/devguide.html#Persistent
http://code.google.com/apis/opensocial/articles/persistence.html

2. Server-side applications cannot currently interact with an
OpenSocial container directly -- this is where the forthcoming REST
API comes in. However, your app can have a server-side component
today. You can use gadgets.io.makeRequest in your client-side code to
store and fetch data from your server today. For example, I'm building
a photo-sharing application that posts user images to my data store
and then uses makeRequest to fetch the uploaded data when the user
clicks the Photos tab. I send all the OpenSocial-related information
needed for the request (e.g. the owner's ID) to the server as well.

3. If you have a server-side component, you can store the IDs of users
that use your application. This should allow you to roughly track the
number of users that have your application installed, although there
is no straightforward way of being notified when a user removes your
application, which could skew your statistics.

Please let me know if you have any other questions on this.

- Jason
Reply all
Reply to author
Forward
0 new messages