public UnclaimedDraft createUnclaimedDraft ( UnclaimedDraft draft ) throws HelloSignException { String url = BASE_URI ; if ( draft . isForEmbeddedSigning ( ) ) { url += UNCLAIMED_DRAFT_CREATE_EMBEDDED_URI ; } else { url += UNCLAIMED_DRAFT_CREATE_URI ; } return new UnclaimedDraft ( httpClient . withAuth ( auth ) . withPostFields ( draft . getPostFields ( ) ) . post ( url ) . asJson ( ) ) ; }
Creates an unclaimed draft using the provided request draft object .