Fax.Plus 提供强大且直观的传真 API,专为医疗保健需求量身定制。开发人员可以使用 JavaScript、Node.js、Ruby、Python 和 Java 等常用平台,轻松将传真功能集成到医疗保健应用程序中。快速上手,使用安全身份验证选项(包括 OAuth 2.0 或个人访问令牌 (PAT)),并利用Fax.Plus详细的 RESTful API 和 Webhook 集成,以构建完全优化的医疗保健传真解决方案。
立即探索我们的 API 文档,创建专门针对医疗保健提供商的高级、安全的传真集成。
1const axios = require('axios');
2const OutboxApiFp = require('@alohi/faxplus-api').OutboxApiFp;
3const Configuration = require('@alohi/faxplus-api').Configuration;
4
5const config = new Configuration({
6 accessToken: accessToken,
7 basePath: 'https://restapi.fax.plus/v3',
8 // Header required only when using the OAuth2 token scheme
9 baseOptions: {
10 headers: {
11 "x-fax-clientid": clientId,
12 }
13 }
14});
15
16async function sendFax() {
17 const reqParams = {
18 "userId": '13d8z73c',
19 "payloadOutbox": {
20 "comment": {
21 "tags": [
22 "tag1",
23 "tag2"
24 ],
25 "text": "text comment"
26 },
27 "files": [
28 "filetosend.pdf"
29 ],
30 "from": "+12345667",
31 "options": {
32 "enhancement": true,
33 "retry": {
34 "count": 2,
35 "delay": 15
36 }
37 },
38 "send_time": "2000-01-01 01:02:03 +0000",
39 "to": [
40 "+12345688",
41 "+12345699"
42 ],
43 "return_ids": true
44 }
45 }
46 const req = await OutboxApiFp(config).sendFax(reqParams);
47 const resp = await req(axios);
48}
49
50sendFax()
从faxplus导入ApiClient、OutboxApi、OutboxComment、RetryOptions、OutboxOptions、OutboxCoverPage、PayloadOutbox从faxplus.configuration导入配置outbox_comment = OutboxComment(tags=[ 'tag1' , 'tag2' ], text= '文本注释' ) retry_options = RetryOptions(count= 2 , delay= 15 ) outbox_options = OutboxOptions(enhancement= True , retry=retry_options) outbox_cover_page = OutboxCoverPage() payload_outbox = PayloadOutbox( from = '+12345667' , to=[ '+12345688' , '+12345699' ], files=[ 'filetosend.pdf' ], comment=outbox_comment, options=outbox_options, send_time= '2000-01-01 01:02:03 +0000' , return_ids= True , cover_page=outbox_cover_page) conf = Configuration() conf.access_token = access_token # 仅在使用 OAuth2 令牌方案时才需要 header_name 和 header_value
api_client = ApiClient(header_name = 'x-fax-clientid' ,header_value = client_id,configuration = conf) api = OutboxApi(api_client)resp = api.send_fax( user_id = '13d8z73c' , body = payload_outbox)
<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
'Authorization' => 'Bearer {access-token}',
// The x-fax-clientid header is required only when using the OAuth2 token scheme
'x-fax-clientid' => '{client ID}',
);
$client = new GuzzleHttp\Client();
// Define array of request body.
$request_body = ...; // See request body example
try {
$response = $client->request('POST','https://restapi.fax.plus/v3/accounts/{user_id}/outbox', array(
'headers' => $headers,
'json' => $request_body,
)
);
print_r($response->getBody()->getContents());
}
catch (GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
// The x-fax-clientid header is required only when using the OAuth2 token scheme
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
"Authorization": []string{"Bearer {access-token}"},
"x-fax-clientid": []string{"YOUR CLIENT_ID"}
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "https://restapi.fax.plus/v3/accounts/{user_id}/outbox", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
公司和团队的信任Fax.Plus 发展业务
所有 Alohi 服务均具有一致、可靠的正常运行时间
受影响的国家Fax.Plus
我们的数据中心经过全面认证、审计和验证,符合最严格的规定,确保您的数据安全和合规。
想了解我们先进的传真解决方案如何帮助您的医疗保健组织吗?
安排演示,我们的一位代表将与您联系以进行定制演示。