Replace the `api_key` argument with a hash of options

This change should be backwards compatible. 
nit: can we call this something other than `o`? Either `opts` (the method name is `parse_opts` after all) or `value`?