Unity3d 在unity中访问google api
我想访问Unity3d中的谷歌API。我想在我的Unity3d应用程序中使用google plus API,以便在应用程序中具有共享功能。 如果您在Unity3d中使用谷歌的API,请帮助我。Unity3d 在unity中访问google api,unity3d,google-plus,sharing,Unity3d,Google Plus,Sharing,我想访问Unity3d中的谷歌API。我想在我的Unity3d应用程序中使用google plus API,以便在应用程序中具有共享功能。 如果您在Unity3d中使用谷歌的API,请帮助我。 谢谢。这里有一个关于如何为C#/.NET执行此操作的详细说明。您最多只需对代码进行一些小的更改,就可以使其与Mono一起工作。需要注意的一点是,为了告诉Mono允许对API的请求,您必须包含这段代码 您必须在开始使用API之前调用Instate。为了帮助您,我们需要更多的上下文。具体来说,你想做什么?你已
谢谢。这里有一个关于如何为C#/.NET执行此操作的详细说明。您最多只需对代码进行一些小的更改,就可以使其与Mono一起工作。需要注意的一点是,为了告诉Mono允许对API的请求,您必须包含这段代码
您必须在开始使用API之前调用Instate。为了帮助您,我们需要更多的上下文。具体来说,你想做什么?你已经做了什么?你看到了什么错误?嘿,你找到了解决方案或方法吗??
using System;
using System.Net;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
public class UnsafeSecurityPolicy {
public static bool Validator(
object sender,
X509Certificate certificate,
X509Chain chain,
SslPolicyErrors policyErrors) {
//*** Just accept and move on...
Debug.Log ("Validation successful!");
return true;
}
public static void Instate() {
ServicePointManager.ServerCertificateValidationCallback = Validator;
}
}