Both can be set in the URL too using client_id and api_version parameters respectively.
client_id
api_version