Exemple #1
0
        public async Task <string> GetAMList <T>(ReadEntryListRequest req, string apiEndpoint) where T : AMCustomer.EntityBase
        {
            var resp = await GetAMList(req, apiEndpoint).ConfigureAwait(false);

            var strList = Convert.ToString(resp);

            return(strList);
        }
Exemple #2
0
        public async Task <string> GetAMList(ReadEntryListRequest req, string apiEndpoint)
        {
            string method = "GET";
            var    dObj   = new
            {
                Authorization = $"Bearer {req.AccessToken}",
                module_name   = req.ModuleName
            };

            var jstr = await CallApi(method, dObj, apiEndpoint).ConfigureAwait(false);

            return(jstr);
        }