Merge pull request #153 from alucardRD/master
Fixed initial Soundcloud API test
This commit is contained in:
commit
3ed06c57e6
|
@ -53,7 +53,7 @@ func (sc *SoundCloud) CheckAPIKey() error {
|
||||||
return errors.New("No SoundCloud API key has been provided")
|
return errors.New("No SoundCloud API key has been provided")
|
||||||
}
|
}
|
||||||
url := "http://api.soundcloud.com/tracks/vjflzpbkmerb?client_id=%s"
|
url := "http://api.soundcloud.com/tracks/vjflzpbkmerb?client_id=%s"
|
||||||
response, err := http.Get(fmt.Sprintf(url, viper.GetString("api.soundcloud")))
|
response, err := http.Get(fmt.Sprintf(url, viper.GetString("api_keys.soundcloud")))
|
||||||
defer response.Body.Close()
|
defer response.Body.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Reference in a new issue