So, I’m trying to connect to Scryfall’s API and do an autocomplete call. I’ve been able to use their other call properly but this one I think where I’m having issue. Here is the call: https://api.scryfall.com/cards/autocomplete?q=fire q is the query and it will return a list of up to 20 items that could be auto-completed […]
- Tags "data": [ "Fire // Ice", "Fire Ambush", "Fire Ants", "Fire at Will", "Fire Bowman", "Fire Dragon", "Fire Drake", "Fire Imp", "Fire Juggler" ] } I am using retrofit2 for android. Here is some of my code. This is my interface for the endpoints public interface, "Fire Snake", "Fire Urchin", "Fire Whip", "Fire-Field Ogre", "Fireblast", "Firebolt", "Firefly", "Firemaw Kavu", "Firespout", "Firestorm", "onFailure", "onResponse()", "total_values":20, Fireball, I feel like there is definitely something maybe wrong in the way I am trying to access he data in my model class and maybe with the way I hav, i just know that it is going to the onFailure() method and I'm not sure why. I mostly need to figure this out then I can work on getting the, I'm trying to connect to Scryfall's API and do an autocomplete call. I've been able to use their other call properly but this one I think whe, if there is a way that I can see more of what is going on with the calls that I am making, it doesn't fail so I don't have error logs to show, response, So, Str, String> cardList; public Map<String, String> getCardList() {return cardList;} So, String>> call, String>> call = apiService.getCardAutoComplete(str); Toast.makeText(this, String>> getCardAutoComplete( @Query(value=("q")) String name); } This is a method I use in my activity to perform the call. priva, String>> response) { Toast.makeText(SuggestionResults.this, String>>() { @Override public void onResponse(Call<Map<String, that would be great too. Thanks!, Throwable t) { Toast.makeText(SuggestionResults.this, Toast.LENGTH_SHORT).show(); } }); //tv.setText(str); } Here is a method that is part of my model class. @Seriali, Toast.LENGTH_SHORT).show(); } @Override public void onFailure(Call<Map<String, Toast.LENGTH_SHORT).show(); call.enqueue(new Callback<Map<String