Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update TüNews API client #14

Open
svenseeberg opened this issue Mar 24, 2025 · 2 comments
Open

Update TüNews API client #14

svenseeberg opened this issue Mar 24, 2025 · 2 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@svenseeberg
Copy link
Member

svenseeberg commented Mar 24, 2025

The API structure of tunewsinternational.com changed. Due to these changes new articles are currently not being synced into the Integreat app.

Instead of categories the site now uses Polylang to manage languages. Additionally, there is a custom Integreat field that indicates if an article is relevant for the Integreat App.

According to the Polylang API docs it should be possible to filter languages with a GET parameter:

http://tuenews.de/wp-json/wp/v2/posts/?lang=de

However, the Integreat custom field is not visible(?) in the API. There is an acf attribute, but it seems to be empty in all cases that I checked.

After the API has been fixed, we may have to prune the database on the django-tunews.tuerantuer.org and re-fetch all articles.

@svenseeberg svenseeberg added bug Something isn't working enhancement New feature or request labels Mar 24, 2025
@Upacesky-26
Copy link

Custom fields are now exposed via the Wordpress API

@svenseeberg
Copy link
Member Author

Awesome, thanks.

So posts can have an "acf:" {"integreat": true} attribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants