DEV Community

bkid00
bkid00

Posted on

9 6

Go Wrapper for Deepgram⛳

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
Enter fullscreen mode Exit fullscreen mode

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,
    )
}
Enter fullscreen mode Exit fullscreen mode

Testing

Run tests with:

go test -v
Enter fullscreen mode Exit fullscreen mode

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,
    )
}
Enter fullscreen mode Exit fullscreen mode

Testing

Run tests with:

go test -v

License

MIT

See you guys!!🤗

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay