2017 © Pedro Peláez
 

library pandadoc

PandaDoc SDK

image

garethhallnz/pandadoc

PandaDoc SDK

  • Wednesday, April 18, 2018
  • by garethhallnz
  • Repository
  • 3 Watchers
  • 1 Stars
  • 44 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 57 % Grown

The README.md

PHP library for PandaDoc's API

Build Status License, (*1)

This library provides convenient wrapper functions for PandaDoc's REST API. The API is documented here., (*2)

Requirements

Installation

Dependencies are managed by Composer. After installing Composer, run the following command from the library root:, (*3)

composer install --no-dev --ignore-platform-reqs, (*4)

Or to install with phpunit:, (*5)

composer install, (*6)

Usage Documents

<?php
    require 'vendor/autoload.php';

    $accessToken = 'your-access-token';

    $documents = new Documents($accessToken);

    // List all the documents.
    $data = $documents->list();

    // Search for a document.
    $filter = [
        'q' => 'Search string here'
    ];

    $data = $documents->list($filter);

    // Show document details.
    $data = $documents->details('documentID');

    // Show document state.
    $data = $documents->status('documentID');

    // Download a document
    $data = $documents->download('documentID', "destination-path");

Usage Templates

<?php
    require 'vendor/autoload.php';

    $accessToken = 'your-access-token';

    $templates = new Templates($accessToken);

    // List all the templates.
    $data = $templates->list();

    // Show template details.
    $data =$templates->details('templateID');

Refresh Access Token

<?php
    require 'vendor/autoload.php';

    $accessToken = 'your-access-token';

    // Refresh access token
    $auth = new Auth();
    $client_id = 'your-client-id';
    $client_secret = 'your-secret';
    $refresh_token = 'your-refresh-token';

    // Show new tokens.
    $data = $auth->refreshAccessToken($client_id, $client_secret, $refresh_token);

The Versions

18/04 2018

dev-master

9999999-dev https://github.com/garethhallnz/pandadoc

PandaDoc SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gareth Hall
by Ivan Liskov

pandadocs

14/02 2018

dev-guzzle5

dev-guzzle5 https://github.com/garethhallnz/pandadoc

PandaDoc SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gareth Hall
by Ivan Liskov

pandadocs

20/12 2017

dev-pandadoc-guzzle-v6

dev-pandadoc-guzzle-v6 https://github.com/garethhallnz/pandadoc

PandaDoc SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gareth Hall
by Ivan Liskov

pandadocs