delannoyk / SoundcloudSDK

A Client for Soundcloud's API written in Swift!
MIT License
87 stars 27 forks source link

Receiving forbidden error when running search function #49

Closed yeetmaster69 closed 7 years ago

yeetmaster69 commented 7 years ago

I have created this function: @objc fileprivate func search() {

    let test = Track.search(queries: [.queryString("hello")]) { [weak self] response in

        if case .failure(let error) = response.response {
            dump(error)
        } else {
            print("Success")
        }
    }
}

When I press a button that executes this function, the error is: "-Soundcloud.SoundcloudError.forbidden" What are the possible reasons for this error?

MchlG commented 7 years ago

Could you tell me how you have added this library to your project? If via Cocoapods what exactly does your podfile look like? thanks!

delannoyk commented 7 years ago

Closing this for inactivity. Please reopen if necessary.