Skip to content

Commit

Permalink
Merge pull request #17 from vivait/feature/DOC-63
Browse files Browse the repository at this point in the history
[DOC-63] Added convertToXlsx route
  • Loading branch information
clophie authored Aug 9, 2021
2 parents 19981eb + ba3f8c2 commit 17dbc33
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/Vivait/DocBuild/DocBuild.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,24 @@ public function signableCancel(string $source, string $signableKey): ?array
)->toJsonArray();
}

/**
* @param string $source The ID of the document to convert to a XLSX.
* @param null|string $callback The callback URL.
*
* @return array|null The decoded JSON of the response.
* @throws HttpException
*/
public function convertToXlsx(string $source, ?string $callback = null): ?array
{
return $this->post(
'xlsx',
[
'source' => $source,
'callback' => $callback,
]
)->toJsonArray();
}

/**
* @param string $method The request method to use.
* @param string $resource The resource to access on the base URL.
Expand Down

0 comments on commit 17dbc33

Please sign in to comment.