Leandro Heck

Results 501 comments of Leandro Heck
trafficstars

@gustavosbarreto do you have any example of how I can get a list of my devices with curl?

more precisely, a list of the ssid fields

Alright, this is working fine for me. ``` # Get the Bearer token using cURL and jq TOKEN=$(curl -s -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' --data "${login_data}" "${URL}/api/login"...

It looks like it is getting a single computer.

Ah, it has query parameters. It would be good to have some examples of the payload in the right panel, maybe.

Even after using this, I am just getting the first one. ![image](https://user-images.githubusercontent.com/1277920/144286672-dfd73c77-2ac5-464b-afc6-3609b500b674.png) This is what I am trying right now. ![image](https://user-images.githubusercontent.com/1277920/144286748-0f39ca0f-821f-4df3-8c27-5c1414dedd6c.png)

ah, it looks like what I want to access is this. https://docs.shellhub.io/api/#tag/session/paths/~1api~1sessions/get

Or maybe not. There is something weird going on.

How do I show all my devices? I can just list one. I have at least 20. Do you have any idea?