how are you? My name is Fabian and I am starting in python with the udemy courses ... I recently received an online interview in which I have to do this:
General goals Your goal is to implement the incomplete methods needed to compute and send the results to our server. There are 6 methods you have to implement in the DogHouse class to pass this test:
DogHouse.get_data (token: str) -> None: You have to get the data from the given API and store in the DogHouse class.
DogHouse.get_total_dogs () -> int: You have to return a number with the total number of dogs.
DogHouse.get_total_breeds () -> int: You have to return a number with the total number of breeds.
DogHouse.get_common_breed () -> Breed: You have to return the most common Breed.
DogHouse.get_common_dog_name () -> str: You have to return the most common dog name.
DogHouse.send_data (data: dict, token: str) -> None: You have to send your answers to a given API endpoint.
and they give me an open api to work on it .... and everything I need to do it is here: https://dogs.magnet.cl/
Please, if someone could guide me in this process, I would appreciate it very much.I have never used an api
I accept tutorials, pdf whatever comes to mind ... links ... etc
https://stackoverflow.com/questions/66717839/info-with-api-with-python March 20, 2021 at 11:02AM
没有评论:
发表评论