mirror of https://github.com/perkeep/perkeep.git
Add a README for the flickr importer package
Change-Id: I018c1574e231cae4119fb55ceb7b63d976db0074
This commit is contained in:
parent
aba07a9db1
commit
6a5a2d6d7c
|
@ -0,0 +1,18 @@
|
|||
Flickr Importer
|
||||
===============
|
||||
|
||||
This is an incomplete Camlistore importer for Flickr.com. So far it can import
|
||||
the first 100 photos from a photostream and also their set metadata.
|
||||
|
||||
To use:
|
||||
|
||||
1) Fill out http://www.flickr.com/services/apps/create/noncommercial/ to get a
|
||||
Flickr API key and secret.
|
||||
2) Start the server with the flag -flickrapikey=<apikey>:<secret>
|
||||
3) Navigate to http://<server>/importer-flickr/login
|
||||
4) Watch import progress on the command line
|
||||
|
||||
|
||||
TODO:
|
||||
|
||||
https://code.google.com/p/camlistore/issues/list?q=feature%3Aimportflickr
|
|
@ -85,13 +85,6 @@ func (im *imp) readCredentials() error {
|
|||
}
|
||||
|
||||
func (im *imp) serveLogin(w http.ResponseWriter, r *http.Request) {
|
||||
if oauthClient.Credentials.Token == "" || oauthClient.Credentials.Secret == "" {
|
||||
w.Write([]byte("<h1>Bonk</h1>"))
|
||||
w.Write([]byte("<p>You need a Flickr API key to ride this attraction."))
|
||||
w.Write([]byte("<p><a href='http://www.flickr.com/services/apps/create/noncommercial/'>Get yours here</a> then modify the 'importer-flickr' key in your server-config.json file and restart your server."))
|
||||
return
|
||||
}
|
||||
|
||||
callback := im.host.BaseURL + "callback"
|
||||
tempCred, err := oauthClient.RequestTemporaryCredentials(im.host.HTTPClient(), callback, nil)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue