Skip to content

Missing documentation: methods for \SignRequest\Models\Document #3

Open

Description

@Helveg

Can I request some documentation on the Document model? The examples use fileFromUrl but don't demonstrate how to use a local file stream.

Activity

  1. swooningfish commented on Nov 1, 2019

    @swooningfish

    I used

    $data->setFileFromContent(base64_encode(file_get_contents($path_to_pdf )));
    $data->setFileFromContentName($filename);
    

    Rather than

    $data->setFileFromUrl('https://docs.google.com/document/d/1oI2R1SxfMNZXiz3jCQvorpoklF9xq_dCJnOpkI-zo80/edit?usp=sharing');

    Seem to work quite nicely, but more PHP examples would be great to get developers up and running quickly

  2. michi88 commented on Apr 24, 2020

    @michi88
    Contributor

    I've made a more elaborate example here! Note that I'm no php expert ;)

    https://github.com/michi88/signrequest-php-example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions