Created
February 23, 2016 01:33
-
-
Save bleroy/8443953a1fd661eb276a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var client = new RestClient("http://microsoft.com"); | |
var request = new RestRequest("people/{alias}"); | |
var alias = "beleroy"; | |
request.AddUrlSegment("alias", alias); | |
var person = await client.ExecuteGetTaskAsync<Person>(request).Data; | |
Console.WriteLine($"{alias} stands for {person.FirstName} {person.LastName}."); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment