- Posts: 55
COMMUNITY FORUM
[SOLVED] K2 API for Android App
- WinniePooh
- Topic Author
- Offline
- Senior Member
Less
More
10 years 2 months ago #130540
by WinniePooh
[SOLVED] K2 API for Android App was created by WinniePooh
Hello everyone,
I would like to know if there is an API to get information from my Joomla site to my android app. I've only found the extension JBackend which extend Joomla with an API and is compatible with K2.
Regards
I would like to know if there is an API to get information from my Joomla site to my android app. I've only found the extension JBackend which extend Joomla with an API and is compatible with K2.
Regards
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 2 months ago #130541
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Re: K2 API for Android App
I think JSON feeds would be the most easy solution.
Each part of K2 produces its own JSON feeds (?format=json) so you only have to parse these feeds in your app.
Each part of K2 produces its own JSON feeds (?format=json) so you only have to parse these feeds in your app.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- WinniePooh
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 55
10 years 2 months ago #130542
by WinniePooh
Replied by WinniePooh on topic Re: K2 API for Android App
Thank you, that helps me a lot. In articles I get a JSON file, but how can I get the latest articles from my site? On the home page the json format unfortunately not works.
Regards
Regards
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 2 months ago #130543
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Re: K2 API for Android App
Create a menu item towards all categories.
You do not need to show this menu item anywhere but its feed will give you the latest items.
You do not need to show this menu item anywhere but its feed will give you the latest items.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- WinniePooh
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 55
10 years 2 months ago #130544
by WinniePooh
Replied by WinniePooh on topic Re: K2 API for Android App
I've created a new menu item and published all categories on it. When I add the "?format=json" at the end of the url of the menu item, I get following error:
Fatal error: Call to undefined method JDocumentJSON::addCustomTag() in /www/htdocs/w00ec884/joomla/media/foundry/3.1/joomla/configuration.php on line 111
What is going wrong?
Thank you for your help.
Fatal error: Call to undefined method JDocumentJSON::addCustomTag() in /www/htdocs/w00ec884/joomla/media/foundry/3.1/joomla/configuration.php on line 111
What is going wrong?
Thank you for your help.
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 2 months ago #130545
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: K2 API for Android App
@WinniePooh
The error you are getting is raised by an other extension. This is a bug of the extension which should check the document type ( HTML, XML or JSON ) before trying to add CSS and script tags to the head.
The error you are getting is raised by an other extension. This is a bug of the extension which should check the document type ( HTML, XML or JSON ) before trying to add CSS and script tags to the head.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- WinniePooh
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 55
10 years 2 months ago - 10 years 2 months ago #130546
by WinniePooh
Replied by WinniePooh on topic Re: K2 API for Android App
I disabled all extensions and found out, that there is a problem with Komento. Only if Komento is enabled I get this error. I will ask the support of the komento extension to help me.
Edit: An update to a newer version of Komento solved the problem.
Thank you for your great support.
Edit: An update to a newer version of Komento solved the problem.
Thank you for your great support.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 2 months ago #130547
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Re: K2 API for Android App
You 're welcome
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.