I know this is the CMR forum, but I thought I'd try an ECHO API question.
We'd like to use the ECHO Order API to place orders from the IceBridge Portal (https://api.echo.nasa.gov/echo-rest/docs/resource_orders_.html). We need to supply the 'Echo-Token' header on this API call, which we apparently get from the tokens resource endpoint (https://api.echo.nasa.gov/echo-rest/docs/resource_tokens_.html). However, that resource seems to require the username and password of a URS user. Instead, since we require the user to login via URS, we'd like to use the Earthdata access token we get via OAuth. Is this possible?
In looking at the Earthdata Search Client, it appears this might be possible. That app has a class called Echo::BaseClient which has a method named token_header which seems to format an 'Echo-Token' header with a value containing the Earthdata token and the URS Client ID (https://github.com/nasa/earthdata-search/blob/master/lib/echo/base_client.rb).
Does this work? Is there any documentation about this that we missed?
Thanks in advance!