Problem with API Sample Code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • smaction
    Member
    • Apr 2018
    • 68

    Problem with API Sample Code

    I have been working with the EspoApiClient class. However, the only way I could get the sample usage to work was by deleting error handling line:
    throw new \Exception($errorMessage, $this->getResponseHttpCode()); In the request method. What should the correct code for error handling be? What did I miss? TIA
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Read about try - catch in php manual
    PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.

    Comment

    Working...