I simply put created token into that file {{USER_HOME}}/.config/lamp.conf and this is result:
opsgenie-lamp listServices
2022/05/18 19:44:20 INFO: Logging to file is disabled, To enable Logging to file Please specify logPath in configuration
INFO[2022-05-18T19:44:20.963764+02:00] Client is configured with ApiUrl: api.opsgenie.com, LogLevel: info, RetryMaxCount: 4
ERRO[2022-05-18T19:44:21.665032+02:00] Error occurred with Status code: 422, Message: Key format is not valid!, Took: 0.000000, RequestId:
2022/05/18 19:44:21 ERROR : Error occurred with Status code: 422, Message: Key format is not valid!, Took: 0.000000, RequestId: ```
Hi,
https://docs.opsgenie.com/docs/lamp-command-line-interface-for-opsgenie#configuration
Your sample configuration is here https://github.com/opsgenie/opsgenie-lamp/blob/master/conf/lamp.conf.
I simply put created token into that file
{{USER_HOME}}/.config/lamp.conf
and this is result: