Created
July 6, 2020 22:23
-
-
Save baz8080/1d867ee68c1ca8865e459acd5dedf3e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let model = ZDKHelpCenterOverviewContentModel.defaultContent() | |
// Use the model to filter content by IDs, tags, etc | |
ZDKHelpCenterProvider().getHelpCenterOverview(withHelpCenterOverviewModel: model) { (result, _) in | |
guard let categories = result else { return } | |
print ("Help Center has \(categories.count) categories") | |
for category in categories { | |
print ("Category name is \(category.name)") | |
for section in category.sections { | |
print ("Section name is \(section.name)") | |
for article in section.articles { | |
print ("Article name is \(article.name)") | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment