I am using below code to to create Contact Service and to Validate login Details:
ContactsService obj_ContactService = new ContactsService("");
obj_ContactService.setUserCredentials(userEmail, password);
But even if user enters invalid detail above code does not throw any exception.
User get verified only when i call “Insert” query after adding whole contact details.
But in my application i want to notify user immediately after user enters login details.
Thanx
I’ve played with this a little bit trying to work with, what I think is the V1 stuff, that you were using and this seems to work…
It may not be the most correct way to do this (I suspect what vicfryzel says is the way to go) but this may do what you want. The AuthSub stuff appears to be for web apps which is, I’m guessing, why your not using it.
The V2 documents do this a little differently than the way V1 docs do:
At the moment I’m not sure if you can get a token like you can with the V1 stuff but one of your comments mentioned using “Google API Ver2” so I thought I would include it.
I’m going to keep looking at this since I’ve been wanting to do something with this myself and I’ll edit this answer with anything I find.