json ファイルを Datahub.io のアカウントにアップロードしようとしましたが、次のckanclient
エラーが発生しました。
ckanclient.CkanApiError: Got redirected to another URL, which does not work with POSTS. Redirection: http://thedatahub.org/api/storage/auth/form/2013-07-26T022918/my.json -> http://datahub.io/user/login?came_from=http://datahub.io/api/storage/auth/form/2013-07-26T022918/my.json
私が使用するコードはこれです(これはAPIと同じコードです)
import ckanclient
ckan = ckanclient.CkanClient(api_key='8a482c44-ef3d-4337-88c6-dca16fd6b3f3',)
ckan.upload_file('my.json')
私は何を間違っていますか?