Keyword

K2 has Web services?

  • Grupo123.Net
  • Grupo123.Net's Avatar Topic Author
  • Offline
  • New Member
More
8 years 7 months ago #151595 by Grupo123.Net
K2 has Web services? was created by Grupo123.Net
Hello i like to know if K2 support or have some Web Service to be able to get data from external applications?

Thanks for any info

Please Log in or Create an account to join the conversation.

More
8 years 7 months ago #151602 by Lefteris
Replied by Lefteris on topic K2 has Web services?
Hi,

Can you clarify what you are trying to achieve? You need a custom script or extension to import data from a service API in K2.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Grupo123.Net
  • Grupo123.Net's Avatar Topic Author
  • Offline
  • New Member
More
8 years 6 months ago #151668 by Grupo123.Net
Replied by Grupo123.Net on topic K2 has Web services?
Hi i found this :

=======================================
getk2.org/blog/786-k2-v257-released-introduces-json-jsonp-content-output

We are introducing JSON & JSONP content output. This is phase 1 towards a true REST capable K2 release coming in version 3. We want you to be able to turn your Joomla! & K2 website into a source of content ready to be consumed or updated by third-party applications, e.g. a mobile application that reads and posts content to your K2 powered Joomla! website. Or simple stuff like AJAX calls are now a piece of cake for developers. To quickly set you up, just append 'format=json&limit=X&page=Y' to any K2 generated URL, replacing X with the number of items you want to fetch (with a forced limit of 100) and Y as the page number (if you wish to break your results in pages). At its simplest form, just append 'format=json' to get the default K2 output in JSON. The additional GET parameters mentioned above only work in categories, user pages, tags etc. If you append 'format=json' to an item URL you will get all the item's contents in JSON format. Additionally, you can pass a callback function to the above URLs in case you want to wrap the output in a function. The format is 'format=json&callback=Z', replacing Z with your callback function name.

===============================================

and that is what i need is there any more documentation about this?

Please Log in or Create an account to join the conversation.

More
8 years 6 months ago #151676 by Lefteris
Replied by Lefteris on topic K2 has Web services?
As it is written in this announcement, the implementation of the current 2.x version is working with GET requests. You can get the data in JSON by appending format=json to the URL.

However, you cannot use the same endpoint to create, edit or delete data.

Is there anything else you need to know?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum