コード例 #1
0
        public ActionResult Users()
        {
            var model = new ModelTestApiCall();

            // build the url
            model.UrlRessource = LtbUrl.Build(LtbResource.Users);
            // set available methods
            model.Methods = new List<HttpVerbs>(new [] {HttpVerbs.Get});

            // display the view
            return this.View("Call", model);
        }
コード例 #2
0
        public ActionResult UserByKey()
        {
            var model = new ModelTestApiCall();

            // build the url
            model.UrlRessource = LtbUrl.Build(LtbResource.UserByKey, "{key_user}");
            // set available methods
            model.Methods = new List<HttpVerbs>(new [] {HttpVerbs.Get, HttpVerbs.Post});

            // list available keys
            model.KeyUsers = this.ListKeyUsers();
            // list available languages
            model.Lcids = this.ListLcids();

            // display the view
            return this.View("Call", model);
        }
コード例 #3
0
        public ActionResult DealsByUser()
        {
            var model = new ModelTestApiCall();

            // build the url
            model.UrlRessource = LtbUrl.Build(LtbResource.DealsByUser, "{key_user}");
            // list available methods
            model.Methods = new List<HttpVerbs>(new [] {HttpVerbs.Get});

            // list available keys
            model.KeyUsers = this.ListKeyUsers();

            // display the view
            return this.View("Call", model);
        }
コード例 #4
0
        public ActionResult OffersByLcid()
        {
            var model = new ModelTestApiCall();

            // build the url
            model.UrlRessource = LtbUrl.Build(LtbResource.OffersByLcid, "{lcid}");
            // list available methods
            model.Methods = new List<HttpVerbs>(new [] {HttpVerbs.Get});

            // list available languages
            model.Lcids = this.ListLcids();

            // display the view
            return this.View("Call", model);
        }