public async Task ResetWin(string userId, string accessToken) { var baseUrl = AppSettingsProvider.LoyaltyBaseUrl; var api = AppSettingsProvider.ResetWins.Replace("{userId}", userId); await _httpHandler.AuthPutAsync(accessToken, baseUrl, api); }
public async Task AddCredit(CreditsViewModel model, string accessToken) { var baseUrl = AppSettingsProvider.LoyaltyBaseUrl; var api = AppSettingsProvider.AddCredits; var messageBody = JsonConvert.SerializeObject(model); await _httpHandler.AuthPutAsync(accessToken, baseUrl, api, messageBody); }
public async Task SendUpdateChallengeRequest(string accessToken, int challengeRequestId, UpdateChallengeInputViewModel model) { var baseUrl = AppSettingsProvider.ChallengeBaseUrl; var api = AppSettingsProvider.UpdateChallenge.Replace("{challengeRequestId}", challengeRequestId.ToString()); var messageBody = JsonConvert.SerializeObject(model); await _httpHandler.AuthPutAsync(accessToken, baseUrl, api, messageBody); }