bet365 Interview Question

Could you explain how you would go about securing an API.