Skip to content

I can't run the go example after installing the library #142

Answered by rusq
YassineOsip asked this question in Q&A
Discussion options

You must be logged in to vote

I need to fix it - try this:

import (
  "github.com/rusq/slackdump/v2"
  "github.com/rusq/slackdump/v2/auth"
)

func main() {
  provider, err := auth.NewValueAuth("xoxc-...", "xoxd-...")
  if err != nil {
      log.Print(err)
      return
  }
  sd, err := slackdump.New(context.Background(), provider)
  if err != nil {
      log.Print(err)
      return
  }
  _ = sd
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@YassineOsip
Comment options

Answer selected by YassineOsip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants