Monday, August 8, 2022
HomeSoftware EngineeringExploring DEV.to API. You usually overlook that APIs exist for… | by...

Exploring DEV.to API. You usually overlook that APIs exist for… | by Joseph Maurer


You usually overlook that APIs exist for many of the platforms you employ. Whereas some firms lock down their APIs to solely present very restricted info, DEV.to goes the additional mile to offer an especially sturdy API. Let’s go over what is accessible!

Hyperlink to Undertaking: https://www.josephamaurer.com/Initiatives/DevAPI/RecentDevPosts.html

Hyperlink to DEV API Documentation: https://docs.forem.com/api/

DEV’s API permits for many attention-grabbing performance. Within the video above, I am going over a use case the place you pull the newest 100 posts, and create bootstrap playing cards for every. In every card I show three buttons. The primary is both energetic or disabled if the person has a twitter account. That is helpful as a result of I wish to retweet articles and tag their creators. The second button is a hyperlink to the DEV publish. Lastly the third button opens the API response for the article.

Whereas my instance confirmed articles, there are many various things that the API can return to you. One of many extra attention-grabbing performance is the power to publish an article utterly from the API. I don’t know why you’ll need to do this, however it might be helpful.

All in all, it’s cool to assume that this performance exists, even in case you can’t discover a sensible use case for it. One of many extra helpful use instances would possibly simply be populating your current articles out of your weblog to your web site.

Let me know what you’ll need to do with this API!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular