Created
July 28, 2014 11:02
-
-
Save richorama/efc31af9fcb066f399a6 to your computer and use it in GitHub Desktop.
Send a Yo! from Windows Phone 8.1
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
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