nasa / python_cmr

Python library for querying the common metadata repository.
MIT License
24 stars 22 forks source link

Provide convenience method for adding a client-id header #49

Open chuckwondo opened 6 months ago

chuckwondo commented 6 months ago

The Headers section of the CMR Search API documentation describes the Client-Id header as follows:

Client-Id - Indicates a name for the client using the CMR API. Specifying this helps Operations monitor query performance per client. It can also make it easier for them to identify your requests if you contact them for assistance.

Given that there are token and bearer_token methods in the Query class for conveniently setting the Authorization header, providing a client_id method would be convenient for supplying the Client-Id header.

Further, I recommend the following: