How would you approach integrating with a third-party API that has poor documentation?

Situational