label_id (int) - label id, as returned in getLabels
assign (boolean) - assign or remove label
Note: Up until version:1.15 setArticleLabel() clears the label cache for
the specified articles. Make sure to regenerate it (e.g. by calling API
method getLabels() for the respecting articles) when you’re using
methods which don’t do that by themselves (e.g. getHeadlines())
otherwise getHeadlines() will not return labels for modified articles.
### setArticleLabel (since API level 1)
Assigns article\_ids to specified label.
Parameters:
* article\_ids - comma-separated list of article ids
* label\_id (int) - label id, as returned in getLabels
* assign (boolean) - assign or remove label
Note: Up until version:1.15 setArticleLabel() clears the label cache for
the specified articles. Make sure to regenerate it (e.g. by calling API
method getLabels() for the respecting articles) when you’re using
methods which don’t do that by themselves (e.g. getHeadlines())
otherwise getHeadlines() will not return labels for modified articles.
jking
added this to the 0.2.0 milestone 7 years ago
setArticleLabel (since API level 1)
Assigns article_ids to specified label.
Parameters:
Note: Up until version:1.15 setArticleLabel() clears the label cache for
the specified articles. Make sure to regenerate it (e.g. by calling API
method getLabels() for the respecting articles) when you’re using
methods which don’t do that by themselves (e.g. getHeadlines())
otherwise getHeadlines() will not return labels for modified articles.