Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Commit

Permalink
Rename getAuthToken to getAccessData
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarbuzzi committed Jan 15, 2021
1 parent 456840f commit 1ff254a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tvd.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func createDefaultConfigFile() error {
// DownloadVOD downloads a VOD based on the various info passed in the config
func DownloadVOD(cfg Config) error {
fmt.Println("Fetching access token")
ar, err := getAuthToken(cfg.VodID, cfg.ClientID)
ar, err := getAccessData(cfg.VodID, cfg.ClientID)
if err != nil {
return err
}
Expand Down Expand Up @@ -228,7 +228,7 @@ func DownloadVOD(cfg Config) error {
return nil
}

func getAuthToken(vodID int, clientID string) (AuthGQLResponse, error) {
func getAccessData(vodID int, clientID string) (AuthGQLResponse, error) {
log.Printf("[getAuthToken] vodID=%d\n", vodID)
var ar AuthGQLResponse

Expand Down

0 comments on commit 1ff254a

Please sign in to comment.