diff --git a/README.md b/README.md index 8bc99b8..23feb4a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ ## HelloSign PHP SDK +[![Build Status](https://travis-ci.org/hellosign/hellosign-php-sdk.svg?branch=v3)](https://travis-ci.org/hellosign/hellosign-php-sdk) This is the official PHP SDK for HelloSign's API. [View API Documentation and Examples.](https://app.hellosign.com/api/documentation) diff --git a/library/HelloSign/BulkSendJob.php b/library/HelloSign/BulkSendJob.php index 93b0c21..4506d5f 100644 --- a/library/HelloSign/BulkSendJob.php +++ b/library/HelloSign/BulkSendJob.php @@ -184,8 +184,15 @@ public function getSignatureRequests() */ public function __construct($response = null, $options = array()) { - $this->signature_requests = $response->signature_requests; - $this->list_info = $response->list_info; + if (isset($response->signature_requests)) + { + $this->signature_requests = $response->signature_requests; + } + + if (isset($response->list_info)) + { + $this->list_info = $response->list_info; + } parent::__construct($response, $options); } diff --git a/library/HelloSign/Client.php b/library/HelloSign/Client.php index 239e389..840647c 100644 --- a/library/HelloSign/Client.php +++ b/library/HelloSign/Client.php @@ -41,7 +41,7 @@ class Client { - const VERSION = '3.5.5'; + const VERSION = '3.5.6'; const API_URL = "https://api.hellosign.com/v3/"; diff --git a/library/HelloSign/Test/TemplateTest.php b/library/HelloSign/Test/TemplateTest.php index 68940bb..528bdd2 100644 --- a/library/HelloSign/Test/TemplateTest.php +++ b/library/HelloSign/Test/TemplateTest.php @@ -187,7 +187,8 @@ public function testUpdateTemplateFiles() { $templates = $this->client->getTemplates(); $template_id = $templates[0]->getId(); - + $client_id = $_ENV['CLIENT_ID']; + $request = new \HelloSign\Template(); $request->enableTestMode(); $request->setClientId($client_id);