Description
While executing the command yammer search for the issue #3928 I noticed that I kept getting an error '401 Unauthorized'.

When executing the code using --debug, I noticed that my bearer token was not being passed with the request that was being sent.
After looking in the code, I noticed that the headers were missing from the AxiosRequestConfig. After adding the following headers:
- accept: 'application/json;odata.metadata=none'
- content-type': 'application/json;odata=nometadata'
the call started to work.
Steps to reproduce
- Execute m365 yammer search --querytext '{Value you'd like to search on}'
Expected results
A list of results
Actual results
401 Unauthorized
Description
While executing the command

yammer searchfor the issue #3928 I noticed that I kept getting an error '401 Unauthorized'.When executing the code using --debug, I noticed that my bearer token was not being passed with the request that was being sent.
After looking in the code, I noticed that the headers were missing from the AxiosRequestConfig. After adding the following headers:
the call started to work.
Steps to reproduce
Expected results
A list of results
Actual results
401 Unauthorized