Domanda

I could not find a way to get last_access_date for a recording. The following API call returns dateCreated/dateUpdated https://www.twilio.com/docs/api/rest/recording

Is there a way to get lastAccessDate for a recording?

È stato utile?

Soluzione

Twilio evangelist here.

Last accessed date is not something we currently include in the Recording resource details. If you are sending the Twilio recording URL direct to your customers then there is isn't a way to tell when they last accessed the file. You could put an arbitrary lifetime on the file (eg we delete it after X days), but that may not be the best use case.

A better approach might be to, instead of giving them the direct URL, give them a URL that goes through your own web application and them redirects them to the recording URL. This would allow you to track when the customer has last accessed the file (because they would have to go through your URL).

Of course with using a redirect, it would not be hard to find out the URL you have redirected them to and go around your app if they wanted to. In that case you might have to consider downloading the recording into your system and having your customers download it directly from you.

Hope that helps.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top