Hello, I have the question of how to obtain the id after doing a search for an image through Query Builder, I have the following code:
var queryBuilder = new MediaQueryBuilder(); queryBuilder.PerPage = 1; queryBuilder.Page = 1; queryBuilder.MediaType = MediaQueryType.Image; cadena = Encoding.UTF8.GetString(arti.Imagen); fi = System.IO.Path.GetFileName(cadena); queryBuilder.Search = Path.GetFileNameWithoutExtension(fi); var media = await client.Media.Query(queryBuilder);
is there a possibility of obtaining it? example: media.id
Thanks.
Hello, I have the question of how to obtain the id after doing a search for an image through Query Builder, I have the following code:
var queryBuilder = new MediaQueryBuilder(); queryBuilder.PerPage = 1; queryBuilder.Page = 1; queryBuilder.MediaType = MediaQueryType.Image; cadena = Encoding.UTF8.GetString(arti.Imagen); fi = System.IO.Path.GetFileName(cadena); queryBuilder.Search = Path.GetFileNameWithoutExtension(fi); var media = await client.Media.Query(queryBuilder);
is there a possibility of obtaining it? example: media.id Thanks.