Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.

Commit

Permalink
api: Refactor references to auth package in api package.
Browse files Browse the repository at this point in the history
Fixed package references to youtube data api and auth package.

Fixes #8
  • Loading branch information
Nyah Check committed Sep 16, 2017
1 parent 9b3234a commit 377b568
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
2 changes: 0 additions & 2 deletions api/apidata.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ import (
"strings"

"github.com/Sirupsen/logrus"

"google.golang.org/api/youtube/v3"
)


Expand Down
18 changes: 0 additions & 18 deletions cmd/ytd/ytd.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,18 @@ import (
"fmt"
"os"

"github.com/Ch3ck/ytd/auth"
"github.com/Sirupsen/logrus"

"golang.org/x/net/context"
)

const (

//Developer key
devKey = "" //Generated from OAuth

//BANNER for ytd which prints the help info
BANNER = "ytd - %s\n"
//VERSION which prints the ytd version.
VERSION = "v0.1"
)

var (
key string
query string
version bool

Expand All @@ -50,7 +43,6 @@ type ApiData struct {

func init() {
// parse flags
flag.StringVar(&key, "key", "", "Youtube API key")
flag.StringVar(&query, "query", "", "Youtube search Query")

flag.BoolVar(&version, "version", false, "print version and exit")
Expand All @@ -66,20 +58,10 @@ func init() {
logrus.Infof("%s", VERSION)
os.Exit(0)
}

// set log level
if debug {
logrus.SetLevel(logrus.DebugLevel)
}

}

func main() {
ctx := context.Background()
service, err = auth.CreateYoutubeService(ctx)
auth.HandleError(err, "Error creating YouTube client")

//channelsListByUsername(service, "snippet,contentDetails,statistics", "GoogleDevelopers")
}

func usageAndExit(message string, exitCode int) {
Expand Down

0 comments on commit 377b568

Please sign in to comment.