Skip to content
This repository was archived by the owner on Oct 17, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
11 changes: 9 additions & 2 deletions library/HelloSign/BulkSendJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion library/HelloSign/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
class Client
{

const VERSION = '3.5.5';
const VERSION = '3.5.6';

const API_URL = "https://api.hellosign.com/v3/";

Expand Down
3 changes: 2 additions & 1 deletion library/HelloSign/Test/TemplateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down