Git Product home page Git Product logo

signnow / signnowphpsdk Goto Github PK

View Code? Open in Web Editor NEW
8.0 5.0 10.0 247 KB

The Official SignNow PHP SDK library for interacting with SignNow REST API. Sign documents, request e-signatures, and build role-based workflows with multiple signers using this client.

Home Page: https://www.signnow.com/developers

License: MIT License

PHP 100.00%
signnow-api electronic-signatures esignature esign sdk api-client documents signnow package

signnowphpsdk's Issues

undefined script:

Hey,

I'm running run.php file. It returning me

Undefined script:

Error. The parameters array in config.php file script is not defined.

Type error in SplFileInfoItem

Executing basic code sample:

$entityManager->create(new DocumentUpload(new \SplFileInfo($filePath)));

throws type error with PHP 8.0.13 e.g. if file access denied:

TypeError
stream_get_meta_data(): Argument #1 ($stream) must be of type resource, bool given
in ....\app\vendor\signnow\rest-entity-manager\src\EntityManager\Annotation\GuzzleRequestBody\Multipart\SplFileInfoItem.php

on line #27.

Allow self-signed certificate in chain for devel test app

When attempting to upload a file with sample code (developer test app):

use SignNow\Api\Entity\Document\Upload as DocumentUpload;
$uploadFile = (new DocumentUpload(new \SplFileInfo('realFilePath')));
$document = $entityManager->create($uploadFile);

Throws error:

Unexpected exception of type [SignNow\Rest\EntityManager\Exception\EntityManagerException] with message [Request failed! Reason: cURL error 60: SSL certificate problem: self signed certificate in certificate chain (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://api-eval.signnow.com/document] in [...\app\vendor\signnow\rest-entity-manager\src\EntityManager.php:318]

How to allow Guzzle to accept self signed certificate in client wrapper?

Signing Link Expiration does not accept null

as per documentation:

In your request specify: "auth_method" - signer authentication menthod; can be "password", "email", "mfa", "social", "biometric", "other", "none" "link_expiration" - in how many minutes the link expires, ranges from 15 to 45 minutes or null.
https://docs.signnow.com/docs/signnow/aaa2c15d291c3-generate-a-link-for-embedded-invite

However:

   public function setSigningLinkExpiration(
        string $documentUid,
        string $fieldInviteUniqueId,
        int $expiration,
        ?AuthMethodInterface $authMethod = null
    ) {

int $expiration should allow null

unable to use file from aws s3

Trying to get :

$documentEntity = $document->upload((string)$this->awsURL($fileName));

but keep getting

fopen(): Argument #1 ($filename) must be of type string, bool given. File name is a string, and accessiable on the internet. Its not writeable

Role id

Hi,

it's possibile get role_id from document. It's necessary for embeddedInvite.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.