shortlist-digital / agreable-apple-news-plugin
该软件包已被放弃且不再维护。未建议替代软件包。
Shortlist Media的Wordpress插件。
3.16.0
2018-10-31 15:33 UTC
Requires
- dev-master
- 3.16.0
- 3.15.0
- 3.14.7
- 3.14.6
- 3.14.5
- 3.14.4
- 3.14.3
- 3.14.2
- 3.14.1
- 3.14.0
- 3.13.3
- 3.13.2
- 3.13.1
- 3.13.0
- 3.12.2
- 3.12.1
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.5
- 3.9.4
- 3.9.3
- 3.9.2
- 3.9.1
- 3.9.0
- 3.8.3
- 3.8.2
- 3.8.1
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.4
- 3.5.3
- 3.5.2
- 3.5.1
- 3.5.0
- 3.4.0
- 3.3.7
- 3.3.6
- 3.3.5
- 3.3.4
- 3.3.3
- 3.3.2
- 3.3.1
- 3.3
- 3.2.16
- 3.2.15
- 3.2.14
- 3.2.13
- 3.2.12
- 3.2.11
- 3.2.10
- 3.2.9
- 3.2.8
- 3.2.7
- 3.2.6
- 3.2.5
- 3.2.4
- 3.2.3
- 3.2.2
- 3.2.1
- 3.2.0
- 3.1.7
- 3.1.6
- 3.1.5
- 3.1.4
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.1
- 3.0.0
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.11
- 1.1.10
- 1.1.9
- 1.1.8
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.0
- 0.3.1
- 0.3.0
- 0.2.1
- 0.2.0
- 0.1
- dev-feature/button-support
- dev-add-new-iframely-embed-generator
- dev-improve-error-messages
- dev-add-tests
- dev-send-apple-news-via-cron
This package is not auto-updated.
Last update: 2018-10-31 15:35:43 UTC
README
可接受的Facebook嵌入链接
- https://#/{page-name}/posts/{post-id}
- https://#/{username}/posts/{post-id}
- https://#/{username}/activity/{activity-id}
- https://#/photo.php?fbid={photo-id}
- https://#/permalink.php?story_fbid={post-id}
- https://#/photos/{photo-id}
我认为最后一个示例链接可能是一个潜在的错误或旧式链接,因为我没有在数据库中看到类似的链接。而我们必须转换经常使用的照片URL。
运行测试
要运行自动化测试,您需要在本地工作的情况下执行Vagrant内的此命令
- 更改工作目录
cd [project location]/app/plugins/agreable-apple-news-plugin
- 运行
behat,通常位于父文件夹中
../../../../vendor/bin/behat
如果由于某些原因插件无法工作,请检查WordPress永久链接设置是否设置为具有/%category%/%postname%的自定义结构
要获取部分,请使用以下方法
$base = "https://news-api.apple.com";
$credentials = new Credentials(getenv('APPLE_NEWS_API_KEY'), getenv('APPLE_NEWS_API_SECRET'));
$channel = getenv('APPLE_NEWS_CHANNEL_ID');
$sections = (new Api($base, $credentials))->get_sections($channel);