Tag: google admin sdk

您使用过Google的Directory API吗?

我正在尝试使用Google Directory API库来维护域的电子邮件地址。 最新的库是google-admin-directory_v1-rev6-csharp-1.4.0-beta。 到目前为止,我得到的最好和最远的是收到403错误(未授权访问此资源/ api)。 有没有人成功使用它? 如果是这样,你能分享一些代码,技巧或窍门吗?

使用OAuth2向Google API进行身份validation

我正在尝试使用C#/ .NET 执行Google Apps域范围的授权委派中的示例代码,并且像我尝试的其他一些示例一样,创建使用auth变量的对象的代码部分表示他们语法错了。 这是我的代码: using System; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; using DotNetOpenAuth.OAuth2; using Google.Apis.Authentication.OAuth2; using Google.Apis.Authentication.OAuth2.DotNetOpenAuth; using Google.Apis.Drive.v2; using Google.Apis.Util; namespace GoogleAPIDemo { class DriveServiceObject { private const string SERVICE_ACCOUNT_EMAIL = “@developer.gserviceaccount.com”; private const string SERVICE_ACCOUNT_PKCS12_FILE_PATH = @”\path\to\-privatekey.p12″; /// /// Build a Drive service object authorized with the service account /// that acts on […]