AppleNewsAPI
AppleNewsAPI copied to clipboard
This is a PHP library that allows you to publish content to Apple News and construct documents in the Apple News JSON format.
Suppresses deprecation message `Deprecated function: Return type of ChapterThree\AppleNewsAPI\Document\Base::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include()`
These changes add support for a number of additional TextStyle and ComponentTextStyle properties: Extra TextStyle properties: - fontFamily - fontWeight - fontStyle - fontWidth Extra ComponentTextStyle properties: - firstLineIndent -...
The Apple News format version number is hard-coded at "1.2". This gets in the way of using Apple News features which are only available in more recent versions. Proposal: Increase...
backgroundColor - The article's background color, defined as a 3- to 8-character RGBA hexadecimal string; e.g., #000 for black or #FF00007F for red with an alpha (opacity) of 50%. Defaults...
Tiktok Compoent added.
In recent PHP versions it is required that an object is an array/countable before you do a count on it. https://github.com/chapter-three/AppleNewsAPI/blob/master/src/Document/Metadata.php#L338 ` PHP Warning: count(): Parameter must be an array...
Should close #26 I still need to test this on our site, I'll post back here when that is done
Apple supports both of these target types for anchors: https://developer.apple.com/documentation/apple_news/anchor Allowing for setting anchors using just plain IDs instead of a component means that you can anchor items to specific...
When i try to delete an article i get this error: PHP Notice: Array ( [code] => 401 [message] => HTTP/1.1 401 Unauthorized [response] => stdClass Object ( [errors] =>...