Call Personal URL

Discussing technical aspects of Yun development products, including IoT Core and other cloud service APIs, data analysis products, etc.


Post Reply
Romeo
Posts: 4

Hi All,

I plan to sell Tuya Alarm.

When the alarm rings, I'd like to call an url (to do some stuffs)

Is is possible ?

Can I add a task "Call personal url" ?
Image

Thank you

JamesG
Posts: 44

Re: Call Personal URL

Sorry, this function is not supported in app development

Romeo
Posts: 4

Re: Call Personal URL

Thank you.

Is it possible to create a cloud project and call a url when the alarm rings ?

JamesG
Posts: 44

Re: Call Personal URL

Yes, you can create a cloud project, associate it with your device or app, and then subscribe to device-reported messages to trigger actions.
However, this can only be done on the cloud service system where you receive the device messages and cannot be configured within the app.

Reference for Message Subscription:
https://developer.tuya.com/en/docs/iot/ ... zu0nzdw9cd

Romeo
Posts: 4

Re: Call Personal URL

Thank you

Romeo
Posts: 4

Re: Call Personal URL

Last question :

I have a french mobile application with a lot of users. It's a kind of neighboors application.

My goal is to sell alarm that sends push notification to my own application and not to the message center of Tuya application.

The idea was to make an http request to my server. Then I'll be able to manage my own push notifications.

With the cloud tuya project, do I have to connect the alarm of all my clients ?

Do you have an idea of how I can resolve my issue ?

Thank you very much

jmregida
Posts: 2

Re: Call Personal URL

I tried this code:

https://developer.tuya.com/en/docs/iot/ ... 0klj9qbv3l

With both Java and NodeJS and it gives me an Unauthorized error. Why is that? I am pretty sure my Access Key and Access Secret are exactly what is shown from the Cloud Project inside the Developer Platform. Can I get an assist please?

panda-cat
Posts: 23

Re: Call Personal URL

Please confirm whether the project message subscription has been turned on and the message rule configuration has been completed. In addition, the corresponding test equipment needs to be associated. If the subscription still cannot be normal after confirmation, please send me the project number through "Private Message" for review. https://developer.tuya.com/en/docs/iot/ ... 0klj9qbv3l

jmregida
Posts: 2

Re: Call Personal URL

I have done these things. I have sent you the project identifier for review. Thanks!

Post Reply