0
Hello,
I’m doing for study purposes, a way to search for and bring vehicle information from the FIPE table straight from the api(http://fipeapi.appspot.com/). What I’m unable to do at first is run the URL by passing parameters. For example:
I need to order the list of vehicle brands according to type, passing the type of vehicle (car, motorcycle or truck). I made a combobox with these options to be chosen by the user and stored in a variable of type 'Object'.
Object tipoSelecionado = cmbTipo.SelectedItem;
Now what I can’t do is at the url: http://fipeapi.appspot.com/api/1/[type]/[action]/[parameters]. json pass the variable in the [type] field 'tipoSelecionado
' and store the result in Json in the array 'Marcas
'.
public class Marcas
{
public string key { get; set; }
public string name { get; set; }
public string id { get; set; }
public string fipe_name { get; set; }
}
Thanks in advance.
I do not understand very well what you want, but if the answer does not help you, explain better that I update the same.
– Randrade