GET (/serviceconfigs/{scid}/sessiontemplates)

检索一组 MPSD 会话模板。

重要提示:
此 URI 方法需要每个请求都有一个 X-Xbl-Contract-Version 104/105 或更高版本的标头元素。

URI 参数

参数 类型 说明
scid GUID 服务配置标识符 (SCID)。 会话 ID 的第 1 部分。
sessionTemplateName 字符串 会话模板当前实例的名称。 会话 ID 的第 2 部分。

HTTP 状态代码

该服务返回 HTTP 状态代码,因为它适用于 MPSD。

请求正文

对象不会在此请求的正文中发送。

响应正文

{
    "results": [ {
            "xuid": "9876",    // If the session was found from a xuid, that xuid.
            "startTime": "2009-06-15T13:45:30.0900000Z",
            "sessionRef": {
                "scid": "foo",
                "templateName": "bar",
                "name": "session-seven"
            },
            "accepted": 4,    // Approximate number of non-reserved members.
            "status": "active",    // or "reserved" or "inactive". This is the state of the user in the session, not the session itself. Only present if the session was found using a xuid.
            "visibility": "open",    // or "private", "visible", or "full"
            "joinRestriction": "local",    // or "followed". Only present if 'visibility' is "open" or "full" and the session has a join restriction.
            "myTurn": true,    // Not present is the same as 'false'. Only present if the session was found using a xuid.
            "keywords": [ "one", "two" ]
        }
    ]
}

另请参阅

父级

/serviceconfigs/{scid}/sessiontemplates