Ejemplo n.º 1
0
        private void GetAccessTokenRequestCompleted(int result, int responseCode, string[] headers, byte[] body)
        {
            string json = Encoding.UTF8.GetString(body);

            _token = JObject.Parse(json)["access_token"]?.ToObject <string>();
            GD.Print(_token);
            _request.Disconnect("request_completed", this, nameof(GetAccessTokenRequestCompleted));
        }