|
|
Profile / Person Data not supported and imeem contact
Posted Aug 27, 2008 at 7:43 PM
Hello,
I am testing out what opensocial.Person.Field data can be retrieved from imeem. I have an app I created to do this. I have a number of questions. There seems to be some bugs in the response to this. Can someone from imeem contact me directly with regards to this. I am writing a book for Wiley/Wrox publishing and want to feature imeem and other containers. But, I need accurate information:
1) Even on some fields supported like Music I get the following dump which has the javascript on the end (know I have tested this successfully in other containers and no such thing happens)
Music: All kinds. Especially dance musicfunction () { return this.replace(/^\s+|\s+$/g, ""); }function () { return this.replace(/(["'\f\b\n\t\r])/gm, "\\$1"); }function (D) { var C = []; for (var A = 0, B = 0; A
2) Even on fields not supported I get the notImplemented followed again by the Javascript. Please explain. For example: Books: notImplementedfunction () { return this.replace(/^\s+|\s+$/g, ""); }function () { return this.replace(/(["'\f\b\n\t\r])/gm, "\\$1"); }function (D) { var C = []; for (var A = 0, B = 0; A
3) Eventhough you publish supported OpenSocial 0.7 I get errors when trying to call the getField(XX) method on the following classes opensocial.Address, opensocial.BodyType, opensocial.Email, opensocial.Url. Can you please tell me what is going on here as this code runs on other multiple OpenSocial containers?
4) Also get exception with opensocial.Enum.getDisplayValue. Can you please tell me what is going on here as this code runs on other multiple OpenSocial containers?
5) I really need a personal contact at imeem....is it possible someone emial me.
Thank you, Lynne Grewe lynne.grewe@csueastbay.edu
|
|
|
Re: Profile / Person Data not supported and imeem contact
Posted Aug 28, 2008 at 9:50 PM, Last Edited Aug 28, 2008 at 9:54 PM
Lynne,
I just tried making some of the Person field calls that you mention below and it doesn't appear to be giving me the javascript at the end that you are experiencing.
Below is the code fragment I am using. Give this a try. Let me know how this differs from your code.
Regarding the other errors, it is likely due to the fact that we haven't finished our implementation on our end for all supported fields. We are still working on supporting all the fields that you suggest.
function getData() { var req = opensocial.newDataRequest();
//get owner req = opensocial.newDataRequest(); req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.OWNER), "owner"); req.send(onLoadOwner); };
function onLoadOwner(dataResponse) { var owner = dataResponse.get("owner").getData(); var html = owner.getDisplayName() + " "; html += owner.getField(opensocial.Person.Field.ID) + " "; html += owner.getField(opensocial.Person.Field.GENDER) + " "; html += owner.getField(opensocial.Person.Field.ABOUT_ME) + " "; html += owner.getField(opensocial.Person.Field.AGE) + " "; html += owner.getField(opensocial.Person.Field.INTERESTS) + " "; html += owner.getField(opensocial.Person.Field.MOVIES) + " "; html += owner.getField(opensocial.Person.Field.MUSIC) + " ";
document.getElementById("owner").innerHTML = html; } gadgets.util.registerOnLoadHandler(getData);
Sachin
|
|
|
Re: Profile / Person Data not supported and imeem contact
Posted Aug 29, 2008 at 12:28 AM
The code while similar is much longer (as I am testing all of the fields with the appropriate retrievals and loops, and also doing exception handling...to try to determine what is supported and what is not) so, I will try to message you directly so that I can attach it. I am however doing it on the VIEWER and not the OWNER.
|