ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# Resource `Get|Let {String}`设置要附加到客户端[`BaseUrl`](../BaseUrl.md)的URL请求部分。可以包含动态值的[Url Segments](../UrlSegments.md),并且[Querystring参数](../QuerystringParams.md)足够智能,可以附加到现有querystring(如果没有现有querystring,则添加到资源中)。 ~~~ Dim Client As New WebClient Client.BaseUrl = "https://api.example.com/" Dim Request As New WebRequest Request.Resource = "messages" '// -> Url: https://api.example.com/messages Request.Resource = "messages/{id}?a=1" Request.AddUrlSegment "id", 123 Request.AddQuerystringParam "b", 2 '// -> Url: https://api.example.com/messages/123?a=1&b=2 ~~~