Socket
Book a DemoInstallSign in
Socket

github.com/trietphm/twilio-video-rest-api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/trietphm/twilio-video-rest-api

v0.0.0-20170603021922-2eae09084256
Source
Go
Version published
Created
Source

Twilio REST API Tool

GoDoc Build Status

Easier to access to Twilio Programmable Video REST API. Twilio Document: https://www.twilio.com/docs/api/video/rest

Install

go get github.com/trietphm/twilio-video-rest-api

Usage

Twilio REST

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)

Debug tool

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

Supported

  • Create Room
  • Get Room
  • Complete Room
  • Get list Room
  • Debug tool

FAQs

Package last updated on 03 Jun 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.