I've written a Perl "framework" for the Ipernity API. Here is the first release. Maybe still little bit buggy and probably there are some things to improve. Let me know your comments.
Simply download: www.pebcak.de/tmp/Ipernity-API.tar.gz
To install, just extract the .tar.gz file, change to the new folder and run:
perl Makefile.PL
make
make test
make install
Send a message
Search for members
n0llpro says:
Doomshammerpro replies:
n0llpro replies:
Werd mir das dann die Tage näher anschauen.
Hat sich eigentlich schon mal jemand an einem Export-Plugin für Lightroom versucht?
Doomshammerpro replies:
Doomshammerpro says:
Doomshammerpro says:
Anthony le Bourlierpro says:
h-e-n-r-ypro says:
Ich habe Dein Perl Modul erfolgreich eingesetzt.
Funktioniert super! Danke!!!!!
P.S. wollte es erst mit php probieren, kann aber auf meinem Server kein php5 installieren. Für Dein Modul musste ich zwar von perl5.8.1 auf 5.8.8 upgraden, aber danach war alles ok.
Doomshammerpro says:
h-e-n-r-ypro replies:
Ich habe hier einen Fall, wo ich einen Fehler beim Holen des Dokuments im authorisierten Modus bekomme:
Entity: line 17: parser error : Input is not proper UTF-8, indicate encoding !
Und zwar ist hier bei doc.get/xml?doc_id=3522833
beim original ein filename mit Umlauten drin, die der xml-Parser nicht parsen kann (falsches Encoding?)
Leider sieht man das nur im signed mode, da ja sonst das original nicht mitkommt.
Kannst Du das nachvollziehen?
h-e-n-r-y
P.S. Nochmal vielen Dank für das Modul!!!! Ist ein super Einstieg für mich in die API.
Doomshammerpro replies:
h-e-n-r-ypro replies:
'args' => {
'api_key' => 'foo',
'secret' => 'bar',
'outputformat' => 'xml',
} );
my $hashref = $api->execute_xml(
'method' => 'doc.get',
'doc_id' => '3522833',
'auth_token' => Auth::getToken() ,);
my $doc = $hashref->{doc};
my $d = $doc->{description};
u.s.w.
reicht das?
Doomshammerpro says:
'method' => 'doc.get',
'doc_id' => '3522833',
'auth_token' => Auth::getToken() ,);
Das wird nicht klappen. Du solltest getToken() nur einmal ausfuehren und den resultierenden AuthToken statisch in einer Variable speichern. Ein getToken() Request setzt voraus, dass vorher ein Frob angefordert wurde (oder bei 'ner Web-App der Request von 'ner Redirect Seite kommt).
my $hashref = $api->execute_xml(
'method' => 'doc.get',
'doc_id' => '3522833',
'auth_token' => '12345-123-1234567890',
);
So sollte es funktionieren.