If I use an API licensed with apache 2.0 in my project, what license do I use and what should I be aware of?
I am building a firefox addon that uses the Youtube Iframe API. Some parts of the code that handles interaction with the API are based off the code samples listed in the documentation page, which licenses them under Apache 2.0. Aside from the Youtube API ToS and Google Developer policies regarding compliance with usage, there is no clear details in regards to licensing. If I want to publish the addon on firefox's AMO, do I have to use the Apache license as well since the code samples already use Apache or can I simply use the MIT license? I am not familiar with how licensing works, so any insight would be much appreciated.

I am building a firefox addon that uses the Youtube Iframe API. Some parts of the code that handles interaction with the API are based off the code samples listed in the documentation page, which licenses them under Apache 2.0. Aside from the Youtube API ToS and Google Developer policies regarding compliance with usage, there is no clear details in regards to licensing. If I want to publish the addon on firefox's AMO, do I have to use the Apache license as well since the code samples already use Apache or can I simply use the MIT license?
I am not familiar with how licensing works, so any insight would be much appreciated.