Go Wrapper for Deepgram⛳

bkid00

bkid00

Posted on April 11, 2022

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!!🤗

💖 💪 🙅 🚩
bkid00
bkid00

Posted on April 11, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related