2014-05-10 5 views
1

무엇이 누락 되었습니까? here으로 표시된 OAuth1 지침을 살펴본 후 올바른 access_key 및 access_secret을 받았지만 여전히 상태를 업데이트 할 수 없습니다.Twython 업데이트 상태가 OAuth1 키 후에도 작동하지 않습니다.

>> from twython import Twython 
>> t = Twython('consumer_key','consumer_secret','access_key','access_secret') 
>> t.update_status("test") 

Traceback (most recent call last): 
    File "<stdin>", line 1, in <module> 
TypeError: update_status() takes exactly 1 argument (2 given) 

get_user_timeline()을 호출 할 수 있지만 그래도 가능합니다.

계정 차단이 될 수 있습니까?

답변

1

재미있는 사실! 매개 변수를 명시 적으로 정의해야합니다. 왜 이것이 여기에 있지만 왜 여기에 해결책이 될지 잘 모르겠습니다.

t.update_status(status='test') 
당신이 기능`보다 더 많은 인수를 전달하고 있기 때문에 그것은 오류를 던지고
+0

update_status' (A Twython 기능이 기대되는이 아닌 트위터 기능) 참조 https://github.com/ryanmcgrath/ twython/blob/master/twython/endpoints.py # L94-L100 –