Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update apple news article with isHidden property #35

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mkBincy
Copy link

@mkBincy mkBincy commented Jun 26, 2023

Updated articleMetadataFromOpts for supporting isHidden property

We will get an error code NOT_ALLOWED while trying to change isPreview flag from false to true.
Once an article has been published with isPreview set to false, the setting cannot be changed to true.

We could use isHidden property to temporarily keeping the article as hidden. We could make use of the update operation with isHidden set to true.
isHidden - Boolean that indicates whether the article should be temporarily hidden from display in the News feed. Note that a hidden article is accessible if you have a direct link to the article.
Default: false

Further reference:-
https://developer.apple.com/documentation/apple_news/update_an_article
https://developer.apple.com/documentation/apple_news/delete_an_article

@mkBincy mkBincy changed the title Update article with isHidden property Update apple news article with isHidden property Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant