Edits history of script submission #1052 for ' Get Call (twilio)'

  • deno
    import { Twilio } from "twilio";
    
    type Twilio = {
      accountSid: string;
      token: string;
    };
    
    export async function main(twilio: Twilio, callSid: string): Promise<void> {
      const client = new Twilio(twilio.accountSid, twilio.token);
      const call = await client.calls(callSid).fetch();
      console.log(call.to);
    }
    

    Submitted by hugo697 974 days ago