ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# WebRequest `WebRequest`用于创建详细请求 (包括formatting, querystrings, headers,cookies等) 用法: ```vba Dim Request As New WebRequest Request.Resource = "users/{Id}" Request.Method = WebMethod.HttpPut Request.RequestFormat = WebFormat.UrlEncoded Request.ResponseFormat = WebFormat.Json Dim Body As New Dictionary Body.Add "name","Tim" Body.Add "project","VBA-Web" Set Request.Body = Body Request.AddUrlSegment "Id", 123 Request.AddQuerystringParam "api\_key", "abcd" Request.AddHeader "Authorization", "Token ..." '// -> PUT (Client.BaseUrl)users/123?api\_key=abcd '// Authorization: Token ... ' '// name=Tim&project=VBA-Web ```