Hey all, how can i create or find document to send Sign template email via xmlrpc PHP
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
Hii,
<?php
require_once('ripcord/ripcord.php');
$url = 'john.doe@example.com',
'name' => 'John Doe'
]]]
]]
);
$models->execute_kw($db, $uid, $password,
'sign.request', 'action_sent',
[[$sign_request_id]]
);
echo "Sign request sent successfully with ID: $sign_request_id\n";
ripcord.php File Code:
<?php
define('RIPCORD_XMLRPC', 1);
function ripcord::client($url) {
return new ripcord_client($url);
}
class ripcord_client {
private $url;
public function __construct($url) {
$this->url = $url;
}
public function __call($method, $params) {
$request = xmlrpc_encode_request($method, $params);
$context = stream_context_create([
'http' => [
'method' => "POST",
'header' => "Content-Type: text/xml",
'content' => $request
]
]);
$file = file_get_contents($this->url, false, $context);
if ($file === false) {
throw new Exception("Unable to connect to XML-RPC server.");
}
return xmlrpc_decode($file);
}
}
?>
i hope it is use full
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
0
thg 7 25
|
298 | ||
|
1
thg 10 24
|
1548 | ||
|
1
thg 8 23
|
2169 | ||
|
0
thg 6 23
|
1829 | ||
module of online contract signatures
Đã xử lý
|
|
2
thg 12 23
|
3675 |