Handle POST from other website

Eagle Y asked on December 14, 2015 19:40

HI,

I need to use a third party service.

Using it I post to it and need to provide it with a CALLBACK. they will use the CALLBACK once my data is done processing.

The third party service will POST to the CALLBACK, all content of POST will be JSON.

I then need to use the json to update some tables/objects in Kentico.

does Kentico out of the box provide a solution for this? If not, how would you recommend I get this done?

Thanks

Recent Answers


Joshua Adams answered on December 14, 2015 19:49

You may want to think about using the rest api. Here is some documentation that should point you in the right direction:

https://docs.kentico.com/display/K9/Managing+objects+using+REST

0 votesVote for this answer Mark as a Correct answer

Bryan Soltis answered on December 14, 2015 19:53 (last edited on December 14, 2015 19:53)

Hi Eagle,

I think I would look into using the REST service for this type of integration. I would consume the service from my 3rd party app and then use it to update the objects I needed.

https://docs.kentico.com/display/K9/Kentico+REST+service

If that doesn't work out, you may need to build your own functionality in Kentico (a WCF service, ASXH file, or something) and have your 3rd party service call that. From there you can use the Integration Bus or Scheduled Task to update the objects you need.

https://docs.kentico.com/display/K9/Using+the+integration+bus

  • Bryan
1 votesVote for this answer Mark as a Correct answer

Eagle Y answered on December 15, 2015 12:53

Thanks.

I've used REST in past to get data from Kentioc site but not to update anything.

From what I see the REST needs a set of data for it to tale action, as can see in examples: http://devnet.kentico.com/docs/7_0/devguide/index.html?rest_data_manipulation_methods.htm (project is in version 7)

How can I provide third party with callback url "~/rest/....."

If all data after ~/rest/ has to do with KEntico objects?

Third party will be sending back some JSON.

how can I use the REST service and create a custom function to deal with incoming JSON?

Thanks :)

0 votesVote for this answer Mark as a Correct answer

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