Esempio n. 1
0
        private static ParentCategoryData getParentCat(long CatId)
        {
            var authentication = new n11Api.ServiceReference1.Authentication();
            authentication.appKey = apiAnahtari1; //api anahtarınız
            authentication.appSecret = apiSifresi1;//api şifeniz

            CategoryServicePortClient proxy = new CategoryServicePortClient();
            GetParentCategoryRequest request = new GetParentCategoryRequest();
            request.auth = authentication;
            request.categoryId = CatId;
            GetParentCategoryResponse parentCat = proxy.GetParentCategory(request);
            ParentCategoryData parentCatData = parentCat.category;
            return parentCat.category;
        }
Esempio n. 2
0
        private static ParentCategoryData getParentCat(long CatId)
        {
            var authentication = new n11Api.ServiceReference1.Authentication();

            authentication.appKey    = apiAnahtari1; //api anahtarınız
            authentication.appSecret = apiSifresi1;  //api şifeniz

            CategoryServicePortClient proxy   = new CategoryServicePortClient();
            GetParentCategoryRequest  request = new GetParentCategoryRequest();

            request.auth       = authentication;
            request.categoryId = CatId;
            GetParentCategoryResponse parentCat     = proxy.GetParentCategory(request);
            ParentCategoryData        parentCatData = parentCat.category;

            return(parentCat.category);
        }
Esempio n. 3
0
        private static GetTopLevelCategoriesResponse getTopCat()
        {
            var authentication = new n11Api.ServiceReference1.Authentication();

            authentication.appKey = apiAnahtari1;   //api anahtarınız

            authentication.appSecret = apiSifresi1; //api şifeniz

            CategoryServicePortClient proxy = new CategoryServicePortClient();

            var request = new GetTopLevelCategoriesRequest();

            request.auth = authentication;


            var categories = proxy.GetTopLevelCategories(request);

            return(categories);
        }
Esempio n. 4
0
        private static SubCategoryData[] getSubCat(long CatId)
        {
            var authentication1 = new n11Api.ServiceReference1.Authentication();

            authentication1.appKey    = apiAnahtari1; //api anahtarınız
            authentication1.appSecret = apiSifresi1;  //api şifeniz


            CategoryServicePortClient port = new CategoryServicePortClient();

            GetSubCategoriesRequest getSubbCatt = new GetSubCategoriesRequest();

            getSubbCatt.categoryId = CatId;
            getSubbCatt.auth       = authentication1;
            GetSubCategoriesResponse response = port.GetSubCategories(getSubbCatt);
            var subCategory = response.category;

            return(subCategory);
        }
Esempio n. 5
0
        private static SubCategoryData[] getSubCat(long CatId)
        {
            var authentication1 = new n11Api.ServiceReference1.Authentication();
            authentication1.appKey = apiAnahtari1; //api anahtarınız
            authentication1.appSecret = apiSifresi1;//api şifeniz

            CategoryServicePortClient port = new CategoryServicePortClient();

            GetSubCategoriesRequest getSubbCatt = new GetSubCategoriesRequest();
            getSubbCatt.categoryId = CatId;
            getSubbCatt.auth = authentication1;
            GetSubCategoriesResponse response = port.GetSubCategories(getSubbCatt);
            var subCategory = response.category;
            return subCategory;
        }
Esempio n. 6
0
        private static GetTopLevelCategoriesResponse getTopCat()
        {
            var authentication = new n11Api.ServiceReference1.Authentication();

            authentication.appKey = apiAnahtari1;  //api anahtarınız

            authentication.appSecret = apiSifresi1;//api şifeniz

            CategoryServicePortClient proxy = new CategoryServicePortClient();

            var request = new GetTopLevelCategoriesRequest();
            request.auth = authentication;

            var categories = proxy.GetTopLevelCategories(request);

            return categories;
        }