7
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

python-firebase 1.2で認証でハマった件

Last updated at Posted at 2016-10-29

概要

pythonでfirebaseのデータを取得して、加工したくなりました。
python-firebaseというライブラリがあったので使ったのですが、
FirebaseのDatabaseにアクセスする際に、認証する所でハマりました。

環境など

Mac OS Sierra 10.12.1
Python 2.7.12
python-firebase (1.2) https://github.com/ozgur/python-firebase

インストール

マニュアルどおりに下記のコマンドを実行

MacOS_Terminal
$ sudo pip install requests
$ sudo pip install python-firebase

ハマった所

firebase.FirebaseAuthentication

「firebase.Authentication」と記載しているページ(https://pypi.python.org/pypi/python-firebase) があり、騙されました。昔そういう名前だったとか?
ただしくは「firebase.FirebaseAuthentication」です。

THIS_IS_MY_SECRET

下記のマニュアル通りに行おうとしたところ、「THIS_IS_MY_SECRET」が、どれなのか迷いました。

スクリーンショット 2016-10-29 19.50.04.png

ここから取得したら、うまく認証が通りました。
(「表示する」で出てきたシークレットをコピペ。)

スクリーンショット 2016-10-29 20.07.56.png

以上です。

7
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?