Exemple #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;
        }
Exemple #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);
        }