21
1
using System;
2
using Flurl;
3
4
public class Program
5
{
6
public static void Main()
7
{
8
var url = "https://flurltestservice.azurewebsites.net/"
9
.AppendPathSegment("v2")
10
.AppendPathSegment("users")
11
.SetQueryParams(new
12
{
13
AccessToken = "token",
14
ResultsCounts = 20,
15
q = "Tomasz Żyrek"
16
})
17
.SetFragment("Results");
18
19
Console.WriteLine(url);
20
}
21
}
Cached Result
https://flurltestservice.azurewebsites.net/v2/users?AccessToken=token&ResultsCounts=20&q=Tomasz%20%C5%BByrek#Results