当我执行youtube.playlists.delete
请求时,我会回来
NoMethodError: undefined method `[]' for nil:NilClass
from /Users/me/.rvm/gems/ruby-1.9.2-p320@vidyard_dashboard/gems/google-api- client-0.4.4/lib/google/api_client/result.rb:53:in `media_type'
from /Users/me/.rvm/gems/ruby-1.9.2-p320@vidyard_dashboard/gems/google-api-client-0.4.4/lib/google/api_client/result.rb:57:in `data?'
from /Users/me/.rvm/gems/ruby-1.9.2-p320@vidyard_dashboard/gems/google-api-client-0.4.4/lib/google/api_client.rb:775:in `execute!'
当播放列表被删除时,该请求似乎实际上通过了,但无论出于何种原因,在返回的路上仍然会引发错误。请求的基本代码如下所示:
yt.client.execute!(
:api_method => yt.youtube.playlists.delete,
:parameters => {:id => 'youtube_playlist_id'}
)