toastnz / socialposter
与 Social Poster API 服务集成
1.0.0
2023-08-30 22:15 UTC
Requires
- guzzlehttp/guzzle: ^6 || ^7
- silverstripe/framework: ^4 || ^5
- silverstripe/vendor-plugin: ^1 || ^2
- unclecheese/display-logic: ~2 || ~3
README
Social Poster API 服务集成。
联系 https://toast.co.nz 获取访问令牌。
要求
参见 composer.json
安装
composer require toastnz/socialposter
配置
Page: # This will add a tab to the page in the CMS extensions: - Toast\SocialPoster\Extensions\SocialPosterExtension # Mapping is optional and will be used to pre-populate the fields in the CMS social_poster: fields: Title: Title Content: PageSummary Image: SummaryImage Link: AbsoluteLink Schedule: PublishDate # Required # Alternatively you can set SOCIAL_POSTER_TOKEN in your .env file Toast\SocialPoster\Helpers\SocialPoster: access_token: YOUR-ACCESS-TOKEN-HERE