cloned from the official HelloSign PHP SDK