kates's ruby plurk lib 'add_all_as_friends' method doesn't work?

正體中文版在此 (Traditional Chinese version is here)

kates's ruby plurk lib is a nice plurk lib for ruby. But I notice that the 'add_all_as_friends' method doesn't work and always throws an exception (API call return an error message page and JSON parse failed)


Add following code before you new a Plurk::Client
module Plurk
class Client
ENDPOINTS[:add_all_as_friends] = {:path=>"/API/Alerts/addAllAsFriends", :login_required=>true}
end
end

This is because that the API path is /API/Alerts/addAllAsFriends not /API/Alerts/addAllAsFriend. The code shows that they amiss lost the ending 's'. And I will contact them to fix this.

留言

這個網誌中的熱門文章

神之雫 的 雫 (雨下) 怎麼唸、意思是什麼

[已解決] 入肉 (肏) 的注音/怎麼唸?意思是什麼?(兒童不宜)

哆啦A夢放上任何東西都無違和感、彷彿有音效的滑鼠墊 這裡買得到