public ActionResult Index() { var model = new IndexModel(); // Intentionaly commented below so you see the compiler error and change to your own credentials. string accessKey = "YOUR_ACCESS_KEY"; string secretKey = "YOUR_SECRET_KEY"; string categories = "Top/Business/Automotive"; AWISClient client = new AWISClient(accessKey, secretKey); string url = "http://codealike.com"; model.UrlInfoData = client.UrlInfo(url); model.SitesLinkingInData = client.SitesLinkingIn("corvalius.com", 1); model.CategoryListingsData = client.CategoryListings(categories, 1); model.CategoryBrowseData = client.CategoryBrowse(categories); return(View(model)); }
public ActionResult Index() { var model = new IndexModel(); // Intentionaly commented below so you see the compiler error and change to your own credentials. string accessKey = "YOUR_ACCESS_KEY"; string secretKey = "YOUR_SECRET_KEY"; string categories = "Top/Business/Automotive"; AWISClient client = new AWISClient(accessKey, secretKey); string url = "http://codealike.com"; model.UrlInfoData = client.UrlInfo(url); model.SitesLinkingInData = client.SitesLinkingIn("corvalius.com", 1); model.CategoryListingsData = client.CategoryListings(categories, 1); model.CategoryBrowseData = client.CategoryBrowse(categories); return View(model); }