What is wrong with this url? Assistance, please and thank you

More specifically, how I entered the username and API key, as I am unable to find the correct syntax for the request. This is the example url from the documentation. All I’m trying to do is get a return

http://flightxml.flightaware.com/json/FlightXML2/MetarEx?airport=KJFK&startTime=0&howMany=1&offset=0&username=themykle&apikey=MY_API_KEY_GOES_HERE

See the Authentication section of https://flightaware.com/commercial/flightxml/documentation2.rvt (tl;dr: use HTTP basic auth)