定制 jlorente/stethome-php-sdk 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jlorente/stethome-php-sdk

最新稳定版本:2.0.2

Composer 安装命令:

composer require jlorente/stethome-php-sdk

包简介

A PHP package to access the StethoMe API by a comprehensive way.

README 文档

README

A PHP package to access the StethoMe API by a comprehensive way.

Installation

The preferred way to install this extension is through composer.

With Composer installed, you can then install the extension using the following commands:

$ php composer.phar require jlorente/stethome-php-sdk

or add

...
    "require": {
        "jlorente/stethome-php-sdk": "*"
    }

to the require section of your composer.json file.

Configuration

You can set the STETHOME_VENDOR_TOKEN as environment variables or add them later on StethoMe class instantiation.

The name of the environment var is STETHOME_VENDOR_TOKEN.

Usage

Endpoints calls must done through the StethoMe class.

If you haven't set the environment variable previously, remember to provide the key on instantiation.

$stethome = new \Jlorente\StethoMe\StethoMe($secretVendorToken);
$stethome->pulmonary()->getVisit($visitId);

Methods

Security

getToken

https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/security/get_token

Generate client token for end user device.

$stethome->security()->getToken();
postToken

https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/security/post_token

Generate client token for end user device, scoped to given visits ids (recommended).

$stethome->security()->postToken($params);

Pulmonary

deleteVisit

https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/delete_pulmonary_visit__id_

Delete visit recordings.

$stethome->pulmonary()->deleteVisit($visitId);
getVisit

https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/get_pulmonary_visit

Check processing status of all recordings associated with given visit id.

$stethome->pulmonary()->getVisit($visitId);
getPoint

https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/get_pulmonary_visit__id__recording__point__check

Check processing status of single recording associated with given visit id.

$stethome->pulmonary()->getPoint($visitId, $point);
getPointTags

https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/get_pulmonary_visit__id__recording__point__tags

Get analysed tags for a single recording from given visit id.

$stethome->pulmonary()->getPointTags($visitId, $point);
getPointWav

https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/get_pulmonary_visit__id__recording__point__wav

Get single recording audio file for playback.

$stethome->pulmonary()->getPointWav($visitId, $point);
getVisitId

https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/get_pulmonary_visit

Generate visit ID. All subsequent client requests will have to send this ID to properly match all recordings to same visit.

$stethome->pulmonary()->getVisitId();
postVisitContent

https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/post_pulmonary_visit__id_

Add visit content.

$stethome->pulmonary()->postVisitContent($visitId, array $parameters = []);
copyVisit

https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/get_pulmonary_visit__id__copy

Create visit copy token.

$stethome->pulmonary()->copyVisit($visitId);
lockVisit

https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/post_pulmonary_visit__id__lock

Lock visit.

$stethome->pulmonary()->lockVisit($visitId);

License

Copyright © 2020 José Lorente Martín jose.lorente.martin@gmail.com.

Licensed under the BSD 3-Clause License. See LICENSE.txt for details.

统计信息

  • 总下载量: 5.53k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2020-03-05