Dev-tip of the day:

Always make sure that your database table fields are long enough to hold the entire third-party API client reference ID, so that the last three characters won’t be cut off..

I’ve been “crying” here while debugging for the last hour because my API function and everything else worked, but the result wasn’t showing up in the third-party application (their API returned a 200), but when I tested it with their API sandbox application, it did show up..

  • 2
    From my recent experience, I'd write a unit test for someone else's API in the future, my application broke recently because I now need a / before specifying the arguments and before I didn't. Now it looks like https://domain/page/?arg=1
    Good job I don't have OCD because it looks hideous
Add Comment