0
Twitter의 새로운 1.1 API를 지원하려면 twitter_oauth 보석을 v.0.4.9로 업데이트해야했습니다. 그러나 즐겨 찾기 소식 및 팔로 잉 사용자는 작동하지 않습니다.오류 코드 34 twitter_oauth 4.9 보석
def follow(id)
client.friend(id)
end
내 컨트롤러 코드 :
{"errors"=>[{"message"=>"Sorry, that page does not exist", "code"=>34}]}
나는 다음과 api_client 모델을 가지고 : 나는 다음과 같이 사용자 또는 마음에 드는 게시물을 따라하려고 반환 오류를 받고 있어요
def update
status = if params[:follow]
client.follow(params[:id])
elsif params[:follow] == 'false'
client.follow(params[:id])
end
respond_to do |format|
format.json do
if status['screen_name'] == params[:screen_name]
success = true
notice = if params[:follow] == 'true'
"You are now following #{status['screen_name']}"
else
"You are no longer following #{status['screen_name']}"
end
else
success = false
notice = 'Something went wrong. Try again in a couple of seconds.'
end
render :json => {:success => success, :message => notice}.to_json
end
end
end
다른 누구도이 문제가 발생했거나 진행 상황을 파악할 수 있습니까?