You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I know, the YouTubeKit with my API key in AppDelegate and SearchListRequest in the ViewController doesn't work? I set up everything correctly on Google Cloud w.r.t. YouTubeAPI. What should I do now?
#89
On my local code works fine, So it looks like a credential issue.
Can you check your API key settings on your GCP project, especially API key restriction and bundle id if you selected an iOS app.
YoutubeKit.shared.setAPIKey("AIza....................2Tiw")
let request = SearchListRequest(part: [.id, .snippet], searchQuery: "Apple")
YoutubeAPI.shared.send(request, queue: DispatchQueue.main) { result in
switch result {
case .success(let res):
print(res)
case .failure(let e):
print(e)
}
}
I am facing the same issue with identical error. Have you managed to resolve the issue with "Requests from this iOS client application are blocked"? If yes, how did you do it?
I tried updating API key characteristics, but setting API key with bundle identifier resulted in random videos being retrieved instead, and setting API key with correct bundle identifier resulted in 403 error.
Please let me know if you can help.
The output in question below.
The text was updated successfully, but these errors were encountered: