import { Twilio } from "twilio";
type Twilio = {
accountSid: string;
token: string;
};
export async function main(twilio: Twilio, messageSid: string): Promise<void> {
const client = new Twilio(twilio.accountSid, twilio.token);
const mediaList = await client.messages(messageSid).media.list();
console.log(mediaList);
}
Submitted by hugo697 468 days ago