brandonnorsworthy/pet-seeker

For past likes, grab small object (name and small picture) by animal ID and get data back when button is clicked in "past likes" pane

Closed this issue · 2 comments

For past likes, grab small object (name and small picture) by animal ID and get data back when button is clicked in "past likes" pane

example of past liked animal array from memory

likedPets = [123123,4324234,4324232,234243]

you would then use a id and fetch all the data you need
fetch (https://api.petfinder.com/v2/animals/{id})

can use below image doc to get all the information we want to display like an image and the name of the pet as well as give the div that shows the past liked animal a link that redirects to the adoption page
image

Resolved in #65