$ curl --basic -u $username:$password https://api.example.com/api/sample.json -H "accept: application/json"