create sharing link with api

dokho 2 years ago

Hello,

First sorry for my english :)

Is it possible to create a sharing link with api ?

Regards,

Anton Tananaev 2 years ago

Yes, anything you can do in the official app, you can do using API as well. That's because the app uses the same API. Check what it does and do the same thing.

dokho 2 years ago

What I understand is that clicking the "share device" button creates a user with an expiration date, link a device to this user and create a token for this user.

I think I will be able to do the first two via the API, however I cannot find, in the documentation, how to create a token.

Anton Tananaev 2 years ago

It seems like you completely ignored what I said.

dokho 2 years ago

No not at all, I just don't understand how to do "Check what it does and do the same thing."

Anton Tananaev 2 years ago

You can either look at the source code or the easiest option is checking network tools in your browser to see what APIs it calls.

dokho 2 years ago

Yes ! Thank you and sorry for my ignorance: I am a simple user.

But I think I found: url/api/devices/share with "deviceId" and "expiration"

I'll try :)