skip to Main Content

MySQL giving error after saying it was successfull

The code below is ran when user presses the Login button: MySql.Data.MySqlClient.MySqlConnection connection; string server = "s570.use8.mysecurecloudhost.com"; string database = "nextgene_NGH"; string uid = "nextgene_NGH"; string password = "EXAMPLE PASSWORD"; string ssl = "None"; string connectionString; connectionString = "SERVER=" +…

VIEW QUESTION

Json – How can i get the info from api request into an object

When i use the following: using (HttpResponseMessage response = client.GetAsync(postMethod.ToString()).Result) { if (response.IsSuccessStatusCode) { var Json = response.Content.ReadAsStringAsync().Result; Console.WriteLine(Json); var y = JsonSerializer.Deserialize<PersonInfoJson>(Json); Console.Write("r= " + y.requester); Console.Write("id= " + y.id); } } The json returned is {"requesters":[{"active":true,"address":null,"background_information":null,"can_see_all_changes_from_associated_departments":false,"can_see_all_tickets_from_associated_departments":false,"created_at":"2022-12-15T21:07:22Z","custom_fields":{"blah_id":"00002342"},"department_ids":[1111111],"department_names":["Student"],"external_id":null,"first_name":"mike","has_logged_in":false,"id":123456,"is_agent":false,"job_title":null,"language":"en","last_name":"ishere","location_id":null,"location_name":null,"mobile_phone_number":"111-111-1111","primary_email":"[email protected]","reporting_manager_id":null,"secondary_emails":["[email protected]"],"time_format":"12h","time_zone":"Eastern Time (US…

VIEW QUESTION
Back To Top
Search