I am using AppleNewsAPI to create apple news documents and submit them to apple news. Even looking at the API doc I can't understand how to grammatically apply the style. this is what I have done so far:
$obj = new Document(uniqid(), 'my headline', 'en', new Layout(7, 1024));
$obj->addComponent(new Body('article body'))
->addComponent(new Document\Components\Title('my headline'))
->addComponent(new Document\Components\Caption('my caption'))
[...]
->addComponentTextStyle('default', new ComponentTextStyle());
and this produce a valid json file for apple. How can I pass some style information using this library?
thanks