💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# 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 ~~~