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