Everytime we send an image MMS with Twilio, they keep a copy of the image on their server.
Does Twilio have a API function or an account setting to delete image resources older than a certain time (rather than deleting them one by one with the Delete Media Resource API)?
Thanks!
Twilio developer evangelist here.
There is no account setting to delete images automatically, based on time or anything else. As the documentation says (emphasis mine):
Twilio will keep that media around until you issue an HTTP DELETE on that instance.
Every time you send a message you could schedule a job to run in the future to then delete that message's media. That way you are in control of deletion when you want it to happen.
Related
Is is possible to get latest dalta link for messages and do not iterate through all messages until we reach last page?
/v1.0/me/mailFolders/{folderId}/messages/delta API
From documentation https://learn.microsoft.com/en-us/graph/delta-query-overview "Resources stored in Azure Active Directory (such as users and groups) support "sync from now" scenarios. This allows you to skip steps 1 and 2 (if you're not interested in retrieving the full state of the resource) and ask for the latest deltaLink instead. Append $deltaToken=latest to the delta function and the response will contain a deltaLink and no resource data."
But that does not work for messages how i understood. Is there another way to do this?
We are using a number of webhooks for testing purposes with the DEMO company and this means the webhook queue is full of items.
Is it possible to remove all these items that i am seeing in the webhook queue as i am getting an error about too many requests?
It isn't possible to remove items from the queue manually. That said, once they've been sent and your script has responded correctly they won't be sent again. As such you should just need to allow your script to receive everything in the queue.
Alternatively you could reset your demo company. This will also reset the webhooks and any data you have entered.
Is there a way to see an image's metadata from a file that was sent using Whatsapp. My cousin recieved a photo that i sent to a group few days ago, and he don't want to tell me who sent it back to him, is there a way see who re-send the photo i sent on the group to him? I've been reading about metadata apps similar to exifool, i've also heared that Linux has a command to do similar tasks
According to this Quora post, as well as other sources on the net, Whatsapp strips away all metadata from any image. This is common among most social media sites/apps.
I am working with slack webhook. Trying to understand the event API.
I am getting confused with file_created and file_shared events. What is the difference between them? Gone through the official documentation but did not worked for me.
Also, we receive file_id and id when an event is triggered, both ids are same. Is there any difference between them?
use cases always help to understand :)
The file_created event is triggered once a new file is uploaded. At this point also a new file_id for that file is created.
Files belong to a user and will not be visible to anyone on a Slack workspace until it is shared in a conversation or channel.
Once a file is shared in a channel / conversation the file_shared event is triggered. Sharing a file can be done during the initial upload (which usually is the case - so both events will occur together) or later.
The same file can be also be shared in multiple channels and each time the file_shared event will be triggered.
I have been looking at the sample code provided by Google for casting videos and am not able to figure out from where is the metadata being gotten from for the Notification. Below are the liks I am looking at.
Links: https://github.com/googlecast/CastVideos-android/blob/master/src/com/google/sample/cast/refplayer/CastOptionsProvider.java
https://github.com/googlecast/CastVideos-android/blob/master/AndroidManifest.xml
I did some research and my assumption is that it gets the metadata from the TargetActivityClass which is ExpandedControlsActivity but I am not able to get it even there. Any help is appreciated.
When your app creates a MediaInfo to load on the receiver, you provide all the required metadata (title, image, etc) and that is how the framework handles the rest for you. Note that the framework also listens to the messages and status updates from the receiver so it stays up to date with what is playing on the receiver, hence can update the metadata for the notification, if necessary.