novuhq / go-novu

GO SDK for Novu - The open-source notification infrastructure for engineers. 🚀
MIT License
58 stars 44 forks source link

[NV-GO-1] API 🚀: Validate MX Record Setup for Inbound Parse Functionality #29

Closed NonsoAmadi10 closed 1 year ago

NonsoAmadi10 commented 1 year ago

What does this PR do?

How should this be tested manually?

package main

import ( "context" "fmt" novu "github.com/novuhq/go-novu/lib" "log" )

func main() { apiKey := "" ctx := context.Background()

    novuClient := novu.NewAPIClient(apiKey, &novu.Config{})
    resp, err := novuClient.InboundParserApiGet(ctx)
    if err != nil {
    log.Fatal("novu error", err.Error())
    return
}

fmt.Println(resp.Data.MxRecordConfigured)

}


Any Background Context?
- N/A
NonsoAmadi10 commented 1 year ago

@unicodeveloper @prajjwaldimri I have made changes to the application and even fix the test issue. I look forward to your feedback again