• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

TuyaAPI / cloud / 51
73%

Build:
DEFAULT BRANCH: master
Ran 16 Apr 2019 09:01PM UTC
Jobs 1
Files 1
Run time 14s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
51

push

travis-ci

codetheweb
Feature: support new API sign mechanism (HMAC-SHA265) (#3)

Adding new API signage mechanism compatible with current (3.9.0) TuyaSmart App. This enables You to use API with `clientId/token` used in official apps - which means it's possible to continue using official app and read/control device from the cloud simultaneously.

For details regarding reverse-engineering process see: [tuya-sign-hacking repo](https://github.com/nalajcie/tuya-sign-hacking). You can also find there the credentials retrieved from the official app (I didn't include them here on purpose in case there will ever be any takedown action from Tuya).

Things to consider:
- there is no clear difference between old/new API in terms of submitted data (I've decided to use `apiEtVersion` which hopefully will change if the API will change in the future; moreover, the API is versioned on per-action basis (each `action` has it's own version field) which adds another level of confusion)
- I don't know if the distinction between using old and new API is clear enough (providing different options to constructor). Maybe there should be whole new class (`Cloud2`? but we don't even know if that's version 2). Maybe it should be made more explicit by adding e.g. `useHMACSign` option to the constructor?

What do You think?

45 of 68 branches covered (66.18%)

Branch coverage included in aggregate %.

42 of 42 new or added lines in 1 file covered. (100.0%)

103 of 136 relevant lines covered (75.74%)

8.89 hits per line

Jobs
ID Job ID Ran Files Coverage
1 51.1 16 Apr 2019 09:01PM UTC 0
72.55
Travis Job 51.1
Source Files on build 51
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #51
  • ac4f8462 on github
  • Prev Build on master (#42)
  • Next Build on master (#53)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc