Picasa Web Albums Data API を使用して、WPF アプリケーションからユーザーのフォト アルバムにアクセスしています。
ここにあるコードに従いました: http://code.google.com/apis/gdata/clientlogin.html
Google Apps (hosted) アカウントで Picasa ウェブ アルバム アカウントを作成しました。WPF アプリケーションでログインしようとすると、「BadAuthentication」エラー コードが返されます。
誰かが私が間違っていることを知っていることを願っています。これは、通常の Google アカウントでログインしたときに機能することに注意してください。
ここに私のコードのスニペットがあります:
GDataGAuthRequestFactory authFactory = new GDataGAuthRequestFactory("lh2", _appName);
authFactory.AccountType = "HOSTED_OR_GOOGLE";
_picasaService = new PicasaService(authFactory.ApplicationName);
_picasaService.RequestFactory = authFactory;
_picasaService.setUserCredentials(username, password);
return _picasaService.QueryAuthenticationToken();