Example #1
0
        public static async Task <IActionResult> GetUserTrendShares([HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "trends/user/count/{userId}/{trendName}")] HttpRequest req, ILogger log, int userId, string trendName)
        {
            log.LogInformation("Getting User Trend Shares");
            Trends trends = new Trends(GetOptions());

            return(new OkObjectResult(await trends.GetUserTrendShares(userId, trendName)));
        }