Пример #1
0
        private void SendLoginRequest(string user, string pass)
        {
            string jsonString = JsonUtility.ToJson(new JSONAuthentificationCredentials
            {
                username = user,
                password = pass,
            }).ToString();

            m_HTTPClient.SetEndpoint(m_authEndpoint);
            m_HTTPClient.PostJSON("signin", jsonString, OnAuthenticationResponse);
        }