Overview of My Submission
Just a small Go wrapper for the Deepgram API🐋
Installation
Install this package with:
go get github.com/agouil/deepgram-go
Usage
package main
import (
"fmt"
"github.com/agouil/deepgram-go"
)
func main() {
deepgramClient := deepgram.Deepgram{
ApiKey: <DEEPGRAM_API_KEY>,
}
result, err := deepgramClient.CheckBalance()
if err != nil {
fmt.Println(err)
return
}
fmt.Println(
"Balance:", result.Balance,
"UserID:", result.UserId,
)
}
Testing
Run tests with:
go test -v
Submission Category:
Wacky Wildcards
Link to Code on GitHub
ApiWrapper-ForDeepgram
Installation
Install this package with:
go get github.com/agouil/deepgram-go
Usage
package main
import (
"fmt"
"github.com/agouil/deepgram-go"
)
func main() {
deepgramClient := deepgram.Deepgram{
ApiKey: <DEEPGRAM_API_KEY>,
}
result, err := deepgramClient.CheckBalance()
if err != nil {
fmt.Println(err)
return
}
fmt.Println(
"Balance:", result.Balance,
"UserID:", result.UserId,
)
}
Testing
Run tests with:
go test -v
License
See you guys!!🤗
Top comments (0)