I was bored and saw some posts of the users making use of the dev.to api so I threw together my own little project, a widget for your posts.
It shows the latest 30 posts by using the following API call: https://dev.to/api/articles?username=ben
A view of the widget admin, super simple: https://imgur.com/a/r3bg67G
Live view (showing Ben Halpen's posts) - The widget comes with no styling so uses the default styling from your theme.
http:// wpthemes4u. co. uk/plugins/ (remove spaces)
You can download the widget from https://www.dropbox.com/s/ohkdmbk9arrzxoe/devto-widget.zip?dl=0, I will get it on Github when I get chance.
The API has a lot of data I can use to make the widget more interesting, what would you like to see? things I have considered are:
- user card (with profile image, name, description & twitter url)
- limit posts to a user defined number in the widget settings
Let me know any ideas to improve the widget or other ideas for WordPress integrations for Dev.to