Exemple #1
0
        public static async Task <JsonResult> PostYammer(string msg, IFormFile formFile)

        {
            AuthenticationConfig config = AuthenticationConfig.ReadFromJsonFile("appsettings.json");

            var httpClient = new HttpClient();
            var apiCaller  = new APIHelper(httpClient);
            var getUrl     = config.YammerPostGroupMessages;// string.Format(config.YammerGetGroupMessages, config.YammerGroupID);
            var response   = await apiCaller.CallYammerPostResultASync(getUrl, config.YammerUploadGroupID, config.YammerTocken, Display, msg, formFile);

            return(response);
            // await apiCaller.CallWebApiAndProcessResultASync($"{config.ApiUrl}v1.0/users", result.AccessToken, Display);
        }