Hi if you use java api you can avoid to use jaxb and xml. you can directly manipulate Google objects. This will simplify your life a lot! Give a look at v3 API you can find java code snippets on the page. just press java in the upper right corner of code examples.
I neve used G+ api but i think that you can have those capabilities too. I just started too with contacts API and i found almost everything into the contact api webpage. Il giorno giovedì 2 agosto 2012 04:21:24 UTC+2, Adam Ramatowski ha scritto: > > Hi, > I'm a newbie to Google API's so I hope I won't embarass myself. > I managed to get a XML response via Oauth 2.0 from " > https://www.google.com/m8/feeds/contacts/default/full" which is the > user's Contact List. > I'm coding in java and I was wondering if there is anyway to parse it to > ContactFeed or List of ContactEntry or any kind of a usable ... thing. > > Why I need it? (or why do I think so) > In my academic project I was hoping to get users friends from circles via > G+ API. It was supposed to be the main thing in it. To make long story > short it was supposed to show your friends entries in my application > higher than others on a list of entries, thats all. A tiny social element > that was supposed to be an improvement. However I have a few weeks to > finish it and I just figured that I cannot get friends from this G+ API. It > is the last thing that I have to do in the project. > So I thought of contacts instead of friends because its also on OAuth 2.0, > so with 2 scopes I would both get the contacts and the g+ profile data (I > also need it). > But I don't know how to parse it to somekind of a usable class... i tried > JAXB.unmarshal(response, ContactFeed.class) and > response.parseTo(ContactFeed.class)... I have no more ideas... so PLEASE > HELP SOMEBODY !! > > That would be all... thanks in advance. > > -- You received this message because you are subscribed to the Google Groups "Google Contacts, Shared Contacts and User Profiles 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://code.google.com/apis/contacts/community/forum.html
