
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
github.com/trietphm/twilio-video-rest-api
Easier to access to Twilio Programmable Video REST API. Twilio Document: https://www.twilio.com/docs/api/video/rest
go get github.com/trietphm/twilio-video-rest-api
First, get your own API key & secrect from Twilio Console
Create new Twilio
// Pass your httpClient or leave it nil, then default http client will be used
tw := twilio.NewTwilio(ApiKey, ApiSecret, httpClient)
Get a room
room, err := tw.GetRoom("MyRoom")
if err != nil {
panic(err)
/* To get original Twilio error, parse it to TwilioError
te, err := ParseTwilioError(err)
if err != nil {
panic("Parse twilio error fail")
}
panic (te)
*/
}
fmt.Printf("%+v\n", room)
You can log all information of your request/response to Twilio REST api. To enable debug:
tw.EnableDebug()
And disable it
tw.DisableDebug()
Debug tool will be disable by default
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.