Sample bash script using the API.