Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Botkit Webex API client not returning data #2215

Open
derchrisuk opened this issue May 3, 2022 · 1 comment
Open

Botkit Webex API client not returning data #2215

derchrisuk opened this issue May 3, 2022 · 1 comment

Comments

@derchrisuk
Copy link

Hi,

as I'm currently in the process of upgrading my modules from 0.7.5 to latest 4.15.0, I discovered some issues.
I was utilizing the Webex API client included with Botkit on several occasions.
One was to get a list of all the rooms the bot was a member of.
So for a simple start I tried this:

let rooms = await bot.api.rooms.list();
console.log(rooms);

Which I hoped would work the same way as in 0.7.5 with the bot.botkit.api.rooms.list
But this one is showing me an empty array.
Doing the same API endpoint on the Developers Website with the Bot token is working fine though.

And I'm also able to get details of rooms I know the ID of using bot.api.rooms.get

  • Botkit version: 4.15.0
  • Messaging Platform: Webex
  • Node version: 18.0.0
  • Os: Debian
@jmfinn9
Copy link

jmfinn9 commented May 25, 2022

I think the data is now in rooms.items

    let rooms = await bot.api.rooms.list()
    console.log(rooms.items);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants