Chuyển tới nội dung chính

Projects List (channel)

Retrieve the list of projects for which the user is logged in as a member and is assigned. api/me/task/channels is using in My Task, api/me/bug/channels is using in My Bug. The list of returned channels is used to Invalid view, too.

GET   
api/me/task/channels
or
api/me/bug/channels
--x-appvity-entityId: [EntityId]
--Cookie: graphNodeCookie=[ID] |

URL Endpoint

api/me/task/channels

or

api/me/bug/channels

Method

GET.

Parameters

This method supports the $select, $filter, $count, $orderby and $top OData query parameters to help customize the response.

Request

Header

--x-appvity-entityId: [EntityId]

--Cookie: graphNodeCookie=[ID]

Body

This method does not supply the request body.

Response

If successful, this method returns a 200 OK response code and the list of channels in the response body.

Example

Request 1

curl --location --request GET 'https://teams.appvity.com/api/me/task/channels'\
--header 'x-appvity-entityId: appvity.etask.mytask' \
--header 'Cookie: graphNodeCookie=s%3AY_JF9CZQ9zNzJBFtczaMPEDH0z6q-GIu.gVlQqDR9nhJHdn%2BU083X4PuboTi6JCnSnz6vCGcs9qU'

Response 1

{

"@odata.context": "https://schema.appvity.com/odata/$metadata#channels",

"@odata.count": 2,

"value": [

{

"displayName": "",

"projectName": "",

"color": "",

"status": "Active",

"teamId": "19:5ae92f915fbe4aa188c05034487afcf2@thread.skype",

"teamName": "PMG",

"channelId": "19:5ae92f915fbe4aa188c05034487afcf2@thread.skype",

"channelName": "PMG"

},

{

"displayName": "",

"projectName": "",

"color": "#16e754ff",

"status": "New",

"teamId": "19:15c258785b4040699180e7a8ad6c6014@thread.tacv2",

"teamName": "Tracy eTask API",

"channelId": "19:15c258785b4040699180e7a8ad6c6014@thread.tacv2",

"channelName": "General"

}

]

}

Request 2

curl --location --request GET 'https://teams.appvity.com/api/me/bug/channels' \

--header 'x-appvity-entityId: appvity.etask.mytask' \

--header 'Cookie:
graphNodeCookie=s%3AY_JF9CZQ9zNzJBFtczaMPEDH0z6q-GIu.gVlQqDR9nhJHdn%2BU083X4PuboTi6JCnSnz6vCGcs9qU'

Response 2

{

    "@odata.context": "https://schema.appvity.com/odata/$metadata#channels",

    "@odata.count": 3,

    "value": [

        {

            "displayName": "",

            "projectName": "",

            "color": "#16e754ff",

            "status": "Active",

            "teamId": "19:ca7641c904da4fdf92820722ff6489fc@thread.skype",

            "teamName": "Team Playground",

            "channelId": "19:7993a5e11e6b4cdcab1758e1a3bd42e2@thread.skype",

            "channelName": "Dev and Debug"

        },

        {

            "displayName": "Planner 2.1 Playground V2",

            "projectName": "",

            "color": "#16e754ff",

            "status": "Active",

            "teamId": "19:711c68b56d894b2697368214024dc89f@thread.skype",

            "teamName": "Team Playground V2",

            "channelId": "19:ee6ec47710504f2ea60bfa3d13f1e6ab@thread.skype",

            "channelName": "Planner 2.1"

        },

        {

            "displayName": "",

            "projectName": "",

            "color": "#16e754ff",

            "status": "New",

            "teamId": "19:15c258785b4040699180e7a8ad6c6014@thread.tacv2",

            "teamName": "Tracy eTask API",

            "channelId": "19:15c258785b4040699180e7a8ad6c6014@thread.tacv2",

            "channelName": "General"

        }
    ]
}