toastnz/socialposter

与 Social Poster API 服务集成

安装: 2

依赖关系: 0

建议者: 0

安全: 0

星星: 0

关注者: 3

分支: 0

开放问题: 0

类型:silverstripe-vendormodule

1.0.0 2023-08-30 22:15 UTC

This package is auto-updated.

Last update: 2024-08-30 01:27:00 UTC


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