Hi, I'm trying to make an application in C # related to a game. The problem I have is the following is that when I do the following always shows me the exception:
try
{
string response = await _client.GetStringAsync(string.Format(Config.USER_REQUEST_FORMAT, Username));
User user = User.fromJSON(response);
UpdateInfo(user);
}
catch (Exception)
{
MessageBox.Show("Error connecting to the habbo API, this is most likely because the username you specified does not exist", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
the link string is as follows:
public static string USER_REQUEST_FORMAT = "https://www.habbo.com/api/public/users?name={0}";
for example this is an example of the result that will return me link
but when I try to get this json I skip the exception