I am using google provisioning api on my website. I want to authenticate user using AppsService class.
AppsService service = new AppsService("domain", "admin username", "admin password");
UserEntry user = service.RetrieveUser("username");
But it throws exception: Execution of request failed: https://apps-apis.google.com/a/feeds/pmu.mygbiz.com/user/2.0/username
InnerException is: The remote server returned an error: (503) Server Unavailable.
It was working before 6 months ago.
ClientLogin (login and password) was deprecated as of April 20, 2012 and turned off on May 26 2015. This code will not longer work you need to switch to using Oauth2.
I think you need to switch to the admin directory api as well
Update code:
I can give you some sample code but I cant test it 100% I don't have an apps domain.
helper class:
authenticate :
Make a request:
code ripped from sample project Google-Dotnet-Samples / admin Directory