Accessing api with the developer's keys generated programmatically

How to access an API with the developer’s key generated for an API programmatically?