You can now write and run your JSON-formatted download queries directly from GBIF.org: https://www.gbif.org/occurrence/download/request
This is a great way to use the API without having to learn a (new) programming language. You don’t need to use R or Python or another client nor do you need to worry about headers or logins.