Skip to content

Instantly share code, notes, and snippets.

@richorama
Created July 28, 2014 11:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richorama/efc31af9fcb066f399a6 to your computer and use it in GitHub Desktop.
Save richorama/efc31af9fcb066f399a6 to your computer and use it in GitHub Desktop.
Send a Yo! from Windows Phone 8.1
static async Task<bool> Yo()
{
using (var client = new HttpClient())
using (var mfdc = new MultipartFormDataContent())
{
mfdc.Add(new StringContent("YOUR_API_TOKEN"), name: "api_token");
var response = await client.PostAsync("http://api.justyo.co/yoall/", mfdc);
return response.IsSuccessStatusCode;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment