vb.net - Adding the Google Contacts v3 API to my project -
please forgive me if sounds simple question getting myself confused.
i have visual basic application uses google calendar v3 api , has been operational several months. authentication working etc..
now wanting extend cababilities of project include contact details. intially found this:
https://developers.google.com/google-apps/contacts/v3/#retrieving_a_single_contact
it provides several examples, although c#. eg:
using google.contacts; using google.gdata.contacts; using google.gdata.client; using google.gdata.extensions; // ... requestsettings settings = new requestsettings("your_application_name"); // add authorization token. // ... contactsrequest cr = new contactsrequest(settings); // ...
in visual basic application have header section instead:
imports system.collections.generic imports system.io imports system.threading imports system.xml imports google.apis.calendar.v3 imports google.apis.calendar.v3.data imports google.apis.calendar.v3.eventsresource imports google.apis.services imports google.apis.auth.oauth2 imports google.apis.util.store
i struggling locate contacts component. in nuget packager have installed:
i have tried find google.calendar or google.apis.calendar , can't find it. has been on year since setup initial application work google.calendar.v3. steps have forgotten?
thank assistance this!
update came across webpage:
https://www.nuget.org/packages/google.gdata.contacts/
so thought try executing command in nuget package console, results:
each package licensed owner. nuget not responsible for, nor grant licenses to, third-party packages. packages may include dependencies governed additional licenses. follow package source (feed) url determine dependencies. package manager console host version 3.4.3.855 type 'get-help nuget' see available nuget commands. pm> install-package google.gdata.contacts attempting gather dependency information package 'google.gdata.contacts.2.2.0' respect project 'communitytalks', targeting 'native,version=v0.0' attempting resolve dependencies package 'google.gdata.contacts.2.2.0' dependencybehavior 'lowest' resolving actions install package 'google.gdata.contacts.2.2.0' resolved actions install package 'google.gdata.contacts.2.2.0' https://api.nuget.org/packages/newtonsoft.json.4.0.5.nupkg ok https://api.nuget.org/packages/newtonsoft.json.4.0.5.nupkg 21ms installing newtonsoft.json 4.0.5. install failed. rolling back... package 'newtonsoft.json.4.0.5' not exist in project 'communitytalks' package 'newtonsoft.json.4.0.5' not exist in folder 'd:\my programs\communitytalks\packages' install-package : not install package 'newtonsoft.json 4.0.5'. trying install package project targets 'native,version=v0.0', package not contain assembly references or content files compatible framework. more information, contact package author. @ line:1 char:1 + install-package google.gdata.contacts + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + categoryinfo : notspecified: (:) [install-package], exception + fullyqualifiederrorid : nugetcmdletunhandledexception,nuget.packagemanagement.powershellcmdlets.installpackagecommand pm>
so not sure going on. whether downloading wrong thing or what. know google.calendar.v3 installed ok , operational.
success
looks may have resolved accidently:
i had set project property before executed pm command:
install-package google.gdata.contacts
please let me know if came wrong solution (or right one!)
Comments
Post a Comment