looks for all environmental variables with zenodo and not sandbox, which works fine when having only one API key for Zenodo - I have two, one for read only and one for writing. Could I suggest to check for exactly the names equals ZENODO_SANDBOX and ZENODO?
When getting the API token from the environmental variables,
https://github.com/ropenscilabs/deposits/blob/bc3ca40a678178eee012433d43829dc9dbd95754/R/tokens.R#L23-L24
https://github.com/ropenscilabs/deposits/blob/bc3ca40a678178eee012433d43829dc9dbd95754/R/tokens.R#L30
looks for all environmental variables with
zenodo
and notsandbox
, which works fine when having only one API key for Zenodo - I have two, one for read only and one for writing. Could I suggest to check for exactly the names equalsZENODO_SANDBOX
andZENODO
?