उपयोगकर्ता की गूगल खाते का उपयोग कर, मैं लोगों को केवल सभी ones.Access टोकन सूचीबद्ध से बाहर कुछ ईमेल पते रिटर्न और सभी कार्यक्षेत्रों किया गया है API.It उपयोग करने के बाद कुछ समस्याओं का सामना कर रहा हूँ संपर्कों को लाने का प्रयास करते समय सही ढंग से सेट करें। निम्नलिखित के लिए कोड:लोग बनाम संपर्क एपीआई गूगल के एपीआई
URL feedUrl = new URL("https://www.google.com/m8/feeds/contacts/default/full");
ContactFeed resultFeed = myService.getFeed(feedUrl, ContactFeed.class);
// Print the results
System.out.println(resultFeed.getTitle().getPlainText());
for (ContactEntry entry : resultFeed.getEntries()) {
....
.....
.......
}
मैं जानना चाहता हूँ:
People peopleService = new People.Builder(httpTransport, jsonFactory, credential)
.build();
ListConnectionsResponse response = peopleService.people().connections().list("people/me")
.setPageSize(500).setSortOrder("FIRST_NAME_ASCENDING")
.setAccessToken(tokenResponse.getAccessToken())
.setAlt("json")
.setRequestMaskIncludeField("person.names,person.emailAddresses,person.phoneNumbers")
. execute();
connections = response.getConnections();
इसके बजाय इस बात का है कि अगर मैं गूगल के संपर्क एपीआई का उपयोग तो मैं और अधिक संपर्क एपीआई के लिए people.Code से ईमेल पतों की कोई मिल रहा है
यदि उनमें से दोनों के बीच कोई अंतर है और मुझे बेहतर परिणामों के लिए उपयोग करना है या क्या मुझे कुछ याद आ रहा है। कृपया सुझाव दे। धन्यवाद..!!
जांचें https://people.googleapis.com/$discovery/rest?version=v1 आपको स्कीमा और विधि स्टैट समर्थित है। – darewreck