Integrate external news content API into com_content articles

For Joomla! 3.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, General Support Moderators

Forum rules
Locked
mike_hermary
Joomla! Intern
Joomla! Intern
Posts: 82
Joined: Fri Aug 20, 2010 3:04 am
Location: Canada
Contact:

Integrate external news content API into com_content articles

Post by mike_hermary » Wed Dec 15, 2021 2:31 pm

My client is looking to integrate news content coming from an external API into their Joomla website. The API is in the JSON format and includes multiple fields like title, summary, date, and full text content.

I am looking for a way to get the data from the API and map it to the appropriate fields in com_content. The generated articles would be assigned to one single category.

I have reviewed this https://joomla.stackexchange.com/questi ... request-to post and the Joomla 3 API https://api.joomla.org/framework-1/clas ... .Http.html http client class, but I am not sure how to get started. I have familiarity with Joomla PHP programming, but not with consuming external data through APIs.

The website is running Joomla 3.10.3.

Any suggestions are greatly appreciated.

Locked

Return to “Joomla! 3.x Coding”