Skip to content

Add Tuya request script#3

Open
doffpett wants to merge 1 commit into
mainfrom
f90utz-codex/test-access-token-from-tuya
Open

Add Tuya request script#3
doffpett wants to merge 1 commit into
mainfrom
f90utz-codex/test-access-token-from-tuya

Conversation

@doffpett
Copy link
Copy Markdown
Owner

Summary

  • load optional .env file in get_tuya_token.js
  • add tuya_request.js helper for signed requests
  • provide .env.example and .gitignore
  • document how to use the new scripts in README

Testing

  • node get_tuya_token.js (fails: getaddrinfo ENOTFOUND openapi.tuyaeu.com)
  • node tuya_request.js GET "/v2.0/cloud/space/235737481/resource?lastRowKey=0&onlySub=true&pageSize=100" (fails: getaddrinfo ENOTFOUND openapi.tuyaeu.com)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant