Quantcast
Channel: Mattermost Discussion Forums - Latest posts
Viewing all articles
Browse latest Browse all 25778

List all channels of a team

$
0
0

Hi,

I try to test the RestAPI with the Advanced Rest Client of Google Chrome and I don't know how to list the channels of the team.

I tried this but it isn't working

GET http://localhost:8065/api/v3/teams/Team_ID/channels/

With Team_ID get by /teams/all.

I put in the Header:
Content-Type: application/json
Authorization: Baerer

This return me:

{
"id": "api.context.session_expired.app_error"
"message": "Invalid or expired session, please login again."
"detailed_error": "UserRequired"
"request_id": "a1qttj8a6tbbtgjc88rfzhfuqh"
"status_code": 401
"is_oauth": false
}

but I can always do other request like /teams/all


Viewing all articles
Browse latest Browse all 25778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>