Perk interview question

coding interview: write the code to call an external api (with authentication) and implement an api upon this external call