shortlist-digital / agreable-apple-news-plugin
This package is abandoned and no longer maintained.
No replacement package was suggested.
Wordpress plugin for Shortlist Media.
Package info
github.com/shortlist-digital/agreable-apple-news-plugin
Type:wordpress-plugin
pkg:composer/shortlist-digital/agreable-apple-news-plugin
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
Acceptable Facebook embed links
- https://www.facebook.com/{page-name}/posts/{post-id}
- https://www.facebook.com/{username}/posts/{post-id}
- https://www.facebook.com/{username}/activity/{activity-id}
- https://www.facebook.com/photo.php?fbid={photo-id}
- https://www.facebook.com/permalink.php?story_fbid={post-id}
- https://www.facebook.com/photos/{photo-id}
I think the last example link it a potential bug or old style link since I haven't seen any similar in the database. Whereas, we have to convert the often used photo url.
Run the tests
To run the automated tests you'll need to execute this inside Vagrant if working locally
- Change working directory
cd [project location]/app/plugins/agreable-apple-news-plugin
- Run
behat, it will be located in the parent folder normally
../../../../vendor/bin/behat
If for some reason the plugin does not work check the wordpress permalinks setting is set to custom structure with /%category%/%postname%
To get sections, use this
$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);