public async Task CreateMeme(string title, string upperText, string bottomText, BitmapImage bitmapImage) { var meme = new { title = title, upperText = upperText, bottomText = bottomText, image64 = bitmapImage.ToBase64() }; dynamic client = await _restClientApp.Build(); var result = await client.Memes.Post(meme); }
public async Task <HttpResponseMessage> Login(string email, string password) { dynamic client = await _restClientApp.Build(); var user = new { Email = email, Password = password }; var result = await client.Login.Post(user); HttpResponseMessage httpResponseMessage = result.HttpResponseMessage; if (httpResponseMessage.IsSuccessStatusCode) { _restClientSetting.Token = result.token; } return(result.HttpResponseMessage); }