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
It works fine if I set opts[:part] = 'id,snippet' but getting this error "Google::APIClient::ClientError (status)" on setting opts[:part] = 'id,snippet,status,statistics'
Please help me and tell me what should I do to get number of views , likes and dislikes in search list
Thanks in Advance
The text was updated successfully, but these errors were encountered:
You will need OAuth2 access. Developer_key alone does not have enough permission to get the statistics.
To make it easier to have OAuth2 auth, you should look into refreshToken.
Again, I don't have the Ruby code, but here is how to create an auth object in Java and I think you can adapt easily to your project.
I want to get videos view counts plus number of likes and dislikes
Here is my code in ruby
opts = Trollop::options do
opt :q, 'Search term', :type => String, :default => "#{search_params}"
opt :maxResults, 'Max results', :type => :int, :default => 25
end
It works fine if I set opts[:part] = 'id,snippet' but getting this error "Google::APIClient::ClientError (status)" on setting opts[:part] = 'id,snippet,status,statistics'
Please help me and tell me what should I do to get number of views , likes and dislikes in search list
Thanks in Advance
The text was updated successfully, but these errors were encountered: