I spent the morning fighting code and APIs.