worth open api
This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.
- API version: 1.0.0
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen
Install the following dependencies:
go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optionalPut the package under your project folder and add the following in import:
import "./worth"All URIs are relative to https://iot.worthcloud.net
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AuthenticatorApi | GenToken | Get /v1/authenticator/{access_key}/{secret_key} | 生成token |
| DeviceApi | SendAction | Post /v1/devices/send_action | 发送指令 |
Endpoints do not require authorization.