php jotform library responseCode access

  • Profile Image
    asv_jotforms
    Asked on May 12, 2016 at 04:02 PM

    Is there a clean way to access the parameters of the return json response? According to the jotform library, the 'content' variable of the return json object is returned.  However, I think it will be beneficial to access the responseCode parameter as well. Is there an easy way to do this without modifying the library code?

     

    Thanks,

    Chris J

  • Profile Image
    victor
    Answered on May 12, 2016 at 04:26 PM

    I am assuming that you bought our product and install Jotform directly in you server. I would ask you to create a post to our developers forum

    http://developers.jotform.com/forum

    They will be glad to answer you question on how to capture the variables of the Jotform library.

  • Profile Image
    asv_jotforms
    Answered on May 13, 2016 at 12:13 AM

    I did not buy the product. I am using the PHP library.  I am looking to get access to the json response.

  • Profile Image
    jonathan
    Answered on May 13, 2016 at 02:17 AM

    You can find an example in the documentation for API PHP Client here http://developers.jotform.com/libraries#jotform-api-php

    Were you trying to do something similar to the included example

     

    As mentioned by my colleague, you can get better assistance on the PHP library in the devs forum http://developers.jotform.com/forum

    Please let us know how we can be of further assistance.

  • Profile Image
    asv_jotforms
    Answered on May 13, 2016 at 11:41 AM

    I want to delete a submission and ensure a successful deletion prior to modifying other local state. I just realized the library throws an exception on non-200 statuses. I will use that fact to assist with my development. It's solved. Thanks again for the help and reference to the developer's forum.

  • Profile Image
    victor
    Answered on May 13, 2016 at 11:55 AM

    Glad you were able to resolve the issue. If you more technical question  with Jotform, I would recommend you contact our developers forum, as they will assist you better.

    Have a great day.