Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter huynhr36

    (@huynhr36)

    Thanks for sharing and being so responsive! That worked on my end!

    Thread Starter huynhr36

    (@huynhr36)

    Thanks for the info! I’m struggling on how to get the response body added into a variable to print the exception area. I understand what “$response[‘code’]” is, but how do I get the response body?

    Thread Starter huynhr36

    (@huynhr36)

    Thanks for the link Mario. Do you have any supporting documents on how I can display any API post response even if there’s no error?

    I found out the API connection I’m setting up only sends status code “201” back even if there’s issues with the form data so I’m trying to figure out a conditional statement that would pull the variable “outcome” from the response body.

    Here’s an example of the response code:

    {

    “outcome”: failure

    “Reason”: “phone number is not valid”

    }

Viewing 3 replies - 1 through 3 (of 3 total)