using webpart to get data from api

web dev asked on July 30, 2018 01:02

hello kentico dev in my project i try to get data fro api and i wonder if there any webpart that support this get data json from api and use it in repeater any one have idea about how to use it thank you

Recent Answers


Anton Grekhovodov answered on July 30, 2018 06:35

Hi,
There is no such webpart in Kentico. You should write custom code to load data from api.

0 votesVote for this answer Mark as a Correct answer

web dev answered on July 30, 2018 13:16 (last edited on July 30, 2018 13:25)

how about using a webpart like this one webpart or Data Source

1 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on July 30, 2018 14:11

You have the right idea Nadia, either my universal API viewer with hierarchy of you need to repeat with hierarchy support, otherwise a custom data source to consume the json and convert it into a data table.

0 votesVote for this answer Mark as a Correct answer

web dev answered on July 30, 2018 14:22

thanks Trevor Fayas do you have any idea how to use it to get data from api

0 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on July 30, 2018 14:41

Included in the download is a PDF with instructions and the code has xml and json examples, it does require some. Net knowledge

0 votesVote for this answer Mark as a Correct answer

web dev answered on July 30, 2018 14:57

i mean how to add this webpart to kentico

0 votesVote for this answer Mark as a Correct answer

web dev answered on July 30, 2018 17:13

Trevor Fayas i try to use yourweb part but its not working for me is there another way

0 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on July 30, 2018 17:22

You need to import it like you would other tools, but make sure to check "include files" and "include global files" when you import.

After that you follow the instructions, clone it and code it to consume your json.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.