DEV Community

bkid00
bkid00

Posted on

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)