a5sys/qowisio-cloud-api-bundle

此包的最新版本(V1.0.4)没有提供许可信息。

从Qowisio Cloud API获取数据

V1.0.4 2016-12-02 10:33 UTC

This package is auto-updated.

Last update: 2024-09-05 18:38:49 UTC


README

Qowisio提供了一种UNB网络,允许连接的对象发送数据,硬件创建自己的连接对象,一个Web API来检索存储在云中的数据,以及更多。

此捆绑包专注于Qowisio Cloud API。

连接对象已通过UNB网络发送其数据,数据已被Qowisio云预处理程序读取,现在,您可以使用此捆绑包查询Qowisio Cloud API以获取“处理过”的数据。

为什么是处理过的数据?

使用UNB网络的连接对象设计得尽可能节省电力。因此,通过UNB网络发送的消息必须尽可能短(最大12字节)。数据是二进制编码,然后通过UNB网络发送。如果没有预处理,提取消息中所有值的任务就由您来完成。

示例:GPS是纬度和经度。消息中同时发送2个值,但在API中,您将访问2个数据。

安装

composer

composer require "a5sys/qowisio-cloud-api-bundle"

AppKernel.php

$bundles = [
    ...
    new A5sys\QowisioCloudApiBundle\QowisioCloudApiBundle(),
    ...
];

配置

config.yml

qowisio_cloud_api:
 	authentication:
	    email: %qowisio_api_email%
	    password: %qowisio_api_password%

parameters.yml

qowisio_api_email: email_you_suscribed_with@tld.com
qowisio_api_password: 'yourpassword'

注意:要获取您的Qowisio账户:https://developer.qowisio.com/log

此捆绑包的功能 VS API 功能

身份验证API

身份验证

  • GET /confirm/{hash}
  • POST /login > 用于数据API中的每个查询
  • POST /resendconfirm
  • POST /signup
  • POST /password/reset
  • POST /password/update
  • POST /user/update

数据API

身份验证

  • GET /amiauthenticated

  • GET /packages
  • GET /packages/{id}

设备/传感器

  • GET /devices
  • PUT /devices
  • POST /devices
  • DELETE /devices
  • GET /devices/type
  • GET /devices/{uid}/sensors

测量

  • GET /measures/{sensor_id}/{from}/{to}/{limit}

聚合

  • GET /aggregations/{sensor_uid}/lastday
  • GET /aggregations/{sensor_uid}/lastweek
  • GET /aggregations/{sensor_uid}/lastmonth
  • GET /aggregations/{sensor_uid}/lastquarter
  • GET /aggregations/{sensor_uid}/{from}/{to}
  • GET /aggregations/{sensor_uid}/{agg}/{from}/{to}/{limit}

用法

所有可用的服务在向云API发送任何查询之前都会自动进行身份验证。

qowisio.cloud.api.authentication

获取身份验证信息。

qowisio.cloud.api.devices.and.sensors

获取有关设备和它们的传感器的信息。

qowisio.cloud.api.measures

获取有关传感器测量的信息。

qowisio.tracker

获取在物联网连接日提供的特定跟踪设备的信息。

返回一个包含纬度、经度和日期的特定坐标对象的列表。

qowisio.cloud.api.caller

对API进行调用。如果您想开发尚未实现的调用,应使用它。

资源

https://developer.qowisio.com/dev/documentation/cloudapi