Beispiel #1
0
        public static async Task <JsonResult> GetAllYammer()

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

            var httpClient = new HttpClient();
            var apiCaller  = new APIHelper(httpClient);
            var getUrl     = string.Format(config.YammerGetGroupMessages, config.YammerPublicGroupID);
            var response   = await apiCaller.CallYammerApiAndProcessResultASync(getUrl, config.YammerTocken, Display);

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