Skip to content

Instantly share code, notes, and snippets.

@baz8080
Created July 6, 2020 22:23
Show Gist options
  • Save baz8080/1d867ee68c1ca8865e459acd5dedf3e6 to your computer and use it in GitHub Desktop.
Save baz8080/1d867ee68c1ca8865e459acd5dedf3e6 to your computer and use it in GitHub Desktop.
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