Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Basic #712

Open
GoogleCodeExporter opened this issue Feb 25, 2016 · 2 comments
Open

Visual Basic #712

GoogleCodeExporter opened this issue Feb 25, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.Insert Code

Dim conserv As New ContactsService("MyCompany-MyApp-v1.0")
        Dim authFactory As New GDataGAuthRequestFactory("cp","MyCompany-MyApp-v1.0")
        authFactory.AccountType = "GOOGLE"

        conserv.RequestFactory = authFactory
        conserv.setUserCredentials("username", "password")
        conserv.QueryClientLoginToken()

        Dim nc As New ContactEntry

        With nc
            .Name = New Google.GData.Extensions.Name()
            .Name.FullName = "John Davis"
            .Name.GivenName = "John"
            .Name.FamilyName = "Davis"
        End With

        Dim urifeed As New Uri(ContactsQuery.CreateContactsUri("default"))
        conserv.Insert(urifeed, nc)

2.Run Code
3.Get error of invalid credentials, I tried 3 different ways from searching on 
the internet and all fail. I dont understand. are these dlls not compatable for 
vb 2010 Express? I downloaded the featured dll for .net apps.  I didnt know 
where else to post this so i posted here. Thanks, RJ



Please use labels and text to provide additional information.

Original issue reported on code.google.com by [email protected] on 11 Mar 2015 at 12:41

@GoogleCodeExporter
Copy link
Author

Can I please take your time to ask if you have a solution to your problem. I 
understand why you have this problem because Google has shut down the api for 
the contactsservice and you have to use OAuth now. My problem is I cant find 
sample VB code to do exactly what you do above in VB.net, do you have any that 
you have found? Thanks so much for taking the time.    Stephen

Original comment by [email protected] on 21 Jun 2015 at 10:10

@GoogleCodeExporter
Copy link
Author

Hey Stephen

I have not figured out the contact service yet. To be honest I put that part on 
hold on my project. I had tried going about it from the gmail side with no 
luck. I also have successful google calendar access but when I tried 
interlacing the code I couldn't get the contact access. There is java code on 
googles site but I am not versed in that language since I am a self taught vb 
guy with a degree in mech engineering. I have been thinking of going to c# 
since there is a lot more source code for it. Also for my app I am thinking of 
going web based. 
Good luck if you make any progress let me know and if you have any further 
questions feel free to ask. I'd give my email but this is a public post

Original comment by [email protected] on 23 Jun 2015 at 10:45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant