Exemple #1
0
    void Awake()
    {
        var http          = new AutoyaFramework.Connections.HTTP.HTTPConnection();
        var httpCoroutine = http.Get(
            "newConnectionId",
            new Dictionary <string, string>(),
            "https://google.com",
            (string conId, int code, Dictionary <string, string> responseHeaders, string data) =>
        {
            // succeeded.
            Debug.Log("data:" + data);
        },
            (conId, code, reason, responseHeaders) =>
        {
            // failed.
            Debug.Log("code:" + code + " reason:" + reason);
        }
            );

        Autoya.Mainthread_Commit(httpCoroutine);
    }