diff options
author | George Hazan <george.hazan@gmail.com> | 2025-06-22 16:41:20 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2025-06-22 16:41:20 +0300 |
commit | ac1dc0145598426c99e983829b5daa8b5bde4e6f (patch) | |
tree | d1a7e16c42bb041bbf59f7e1cd6696a2515f0f40 /protocols/Teams/src/teams_http.cpp | |
parent | b1049e5c56081071b604d1298dff51362062840c (diff) |
Teams: new groups API
Diffstat (limited to 'protocols/Teams/src/teams_http.cpp')
-rw-r--r-- | protocols/Teams/src/teams_http.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/Teams/src/teams_http.cpp b/protocols/Teams/src/teams_http.cpp index 298789295b..7ac6d3be2d 100644 --- a/protocols/Teams/src/teams_http.cpp +++ b/protocols/Teams/src/teams_http.cpp @@ -27,6 +27,7 @@ AsyncHttpRequest::AsyncHttpRequest(int type, SkypeHost host, LPCSTR url, MTHttpR case HOST_TEAMS: m_szUrl = TEAMS_BASE_HOST; break; case HOST_TEAMS_API: m_szUrl = TEAMS_BASE_HOST "/api/mt/beta"; break; case HOST_CHATS: m_szUrl = TEAMS_BASE_HOST "/api/chatsvc/consumer/v1"; break; + case HOST_GROUPS: m_szUrl = TEAMS_BASE_HOST "/api/groups/v1"; break; case HOST_PRESENCE: m_szUrl = "presence." TEAMS_BASE_HOST "/v1"; break; } @@ -110,9 +111,11 @@ MHttpResponse* CTeamsProto::DoSend(AsyncHttpRequest *pReq) pReq->AddHeader("ms-ic3-additional-product", "Sfl"); break; + case HOST_GROUPS: case HOST_TEAMS_API: pReq->AddHeader("X-MS-Client-Type", "maglev"); - pReq->AddHeader("referer", "https://teams.live.com/v2/"); + pReq->AddHeader("Origin", "https://teams.live.com"); + pReq->AddHeader("Referer", "https://teams.live.com/v2/"); pReq->AddHeader("Cookie", mir_urlEncode(m_szApiCookie)); __fallthrough; |