Skip to content

Instantly share code, notes, and snippets.

@lbugnion
Created April 7, 2019 07:32
Show Gist options
  • Save lbugnion/6881c4ec5eb744590ed8d2b45ba0871b to your computer and use it in GitHub Desktop.
Save lbugnion/6881c4ec5eb744590ed8d2b45ba0871b to your computer and use it in GitHub Desktop.
var client = new HttpClient();
var request = new HttpRequestMessage
{
RequestUri = new Uri(PostTweetUrl),
Method = HttpMethod.Post
};
var json = $"{{\"key\":\"{hash}\",\"twittername\":\"@@LBugnion\"}}";
request.Content = new StringContent(json, Encoding.UTF8, "application/json");
await client.SendAsync(request);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment