0)環境
$ uname -a Linux localhost.localdomain 2.6.18-1.2200.fc5 #1 Sat Oct 14 16:59:26 EDT 2006 i686 i686 i386 GNU/Linux
1)CPAN Flickr::Upload をインストール
# cpan Flickr::Upload
2)Flickr API key, secret を取得する
(取得)
http://flickr.com/services/api/key.gne
(確認)
http://flickr.com/services/api/keys/
API
—
Key: | Secret:
********** | **********
3)auth_token を作成する
$ flickr_upload --auth --key {key} --secret {secret}
| 1. Enter the following URL into your browser
|
| http://flickr.com/services/auth?...
|
| 2. Follow the instructions on the web page
| 3. Hit {Enter} when finished.
{1.をブラウザでアクセスする >> 「OK,I'LL ALLOW IT」を押す}
{Enterを押す}
| You authentication token for this application is
| **********
4)アップロードする
(書式)
$ flickr_upload --auth_token {auth_token} --key {key} --secret {secret} --public 0 --friend 1 --family 1 {filename}
| Uploading {filename}...
| Waiting for upload results (ctrl-C if you don't care)...
| ...
5).flickrrcを設定する
$ vi ~/.flickrrc
--
auth_token={auth_token}
key={key}
secret={secret}
--
$ chmod 600 ~/.flickrrc
(使用例)
$ flickr_upload --public 1 --friend 1 --family 1 *.JPG
以上
Auto Amazon Links: プロダクトが見つかりません。
よしまさのブログをもっと見る
購読すると最新の投稿がメールで送信されます。

