-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheditEmbeddedTemplate.php
More file actions
27 lines (26 loc) · 1.21 KB
/
editEmbeddedTemplate.php
File metadata and controls
27 lines (26 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html>
<head>
<title>Embedded Template Editing</title>
<script type="text/javascript" src="//s3.amazonaws.com/cdn.hellosign.com/public/js/hellosign-embedded.LATEST.min.js"></script>
<link rel="stylesheet" type="text/css" href="newcss.css" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" href="/favicon-32x32.png"/>
<link rel="icon" type="image/png" href="/favicon-16x16.png"/>
<link rel="manifest" href="/manifest.json" />
<link rel="mask-icon" href="/safari-pinned-tab.svg"/>
</head>
<body>
<?php
echo '<a href="index.php">Home Is Where The Heart Is<br /></a>';
require_once 'vendor/autoload.php';
$api_key = getenv('HS_APIKEY_PROD') ? getenv('HS_APIKEY_PROD') : '';
$client_id = getenv('HS_CLIENT_ID_PROD') ? getenv('HS_CLIENT_ID_PROD') : '';
$client = new HelloSign\Client($api_key);
$template_id = $_POST['templateID'];
$response = $client->getEmbeddedEditUrl("$template_id?skip_signer_roles=1&skip_subject_message=1");
$sign_url = $response->edit_url;
include ('signerpage.php');
?>
</body>
</html>