LivePersonInc / node-agent-sdk

LivePerson Agent Messaging SDK for NodeJS
MIT License
49 stars 79 forks source link

generateURLForUploadFile returns one time URL? #91

Open ohadcn opened 4 years ago

ohadcn commented 4 years ago

Hey I'm using node-agent-sdk, and my bot sends some images - mostly from a short list. I want to upload images to LP servers once, and reuse them for another clients - but when I send it to next client he do not get my image (at least not in whatsapp) Is the download link a one time or one client use?

ohassidi commented 4 years ago

What do send to your client? The links for upload/download are for private use and cannot be shared outside from LP ecosystem since they are temporary

ohadcn commented 4 years ago

so what is the recommended practice for files which should be sent lot of times? (e,g: an image I want to send to a list of active chats)

ohassidi commented 4 years ago

If you share them via whatsapp to client that has the SDK integration and can generate download links from the given path you have then it is ok and should work. Since the SDK should be able to generate URL for download from the given path. Outside application or whatsapp w/o integration you should share images as usual whatsapp

I hope I understood correctly the issue