Bug 452577 - Export to pinterest function does not work and shows a message status:failure,code:11
Summary: Export to pinterest function does not work and shows a message status:failure...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-WebService-Pinterest (show other bugs)
Version: 7.6.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-13 13:49 UTC by Alessandro Lion
Modified: 2022-04-26 20:12 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.7.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Lion 2022-04-13 13:49:29 UTC
SUMMARY
***
Export to pinterest function does not work. 

NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Select a picture
2. click the export menu and choose export to pinterest
3. 

OBSERVED RESULT
I am getting a window saying 
{"status":"failure","code":11,"data":null,"message":"API method not found.","endpoint_name":null}

EXPECTED RESULT
not sure , but it seems like I should see a browser where i can input the credential

SOFTWARE/OS VERSIONS
Windows: 10 professional
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Using a standard laptop "Stock" Lenovo Thinkbook with 16gb ram and intel core i7 processor, everything else network internet related works fine.
Comment 1 Alessandro Lion 2022-04-13 15:05:25 UTC
Noticed first  on version 7.3.0, I installed the latest one, 7.6.0 and I could easily reproduce it also with that.
Comment 2 Maik Qualmann 2022-04-13 19:19:33 UTC
The Pinterest plugin uses an outdated API and the user Client ID that a student created about 4 years ago no longer exists. I have requested a new account, we will see if it will activated. In the meantime, it is difficult for open source programs to get a access, with Facebook as example it is actually no longer possible.

Maik
Comment 3 Maik Qualmann 2022-04-15 20:14:55 UTC
Git commit c5404cd23a83f5147702486e8fda54ea66e63926 by Maik Qualmann.
Committed on 15/04/2022 at 20:12.
Pushed by mqualmann into branch 'qt5-maintenance'.

ported Pinterest export tool to the new V5 API
The digiKam client key is currently still in trial
mode and therefore cannot be used publicly by other users.

M  +45   -80   core/dplugins/generic/webservices/pinterest/ptalker.cpp
M  +3    -1    core/dplugins/generic/webservices/pinterest/ptalker.h
M  +6    -7    core/dplugins/generic/webservices/pinterest/pwindow.cpp

https://invent.kde.org/graphics/digikam/commit/c5404cd23a83f5147702486e8fda54ea66e63926
Comment 4 Maik Qualmann 2022-04-15 21:00:03 UTC
I have uploaded the required video showing the digiKam Pinterest Export tool in action. The video is required to upgrade trial access to standard access. We'll see if we get accepted.

Maik
Comment 5 Maik Qualmann 2022-04-16 20:39:41 UTC
Git commit 80f4b9c6d1843d10efcbbeccfdbccc2e68781ca9 by Maik Qualmann.
Committed on 16/04/2022 at 20:38.
Pushed by mqualmann into branch 'qt5-maintenance'.

fix crash and various problems in the Pinterest tool

M  +17   -6    core/dplugins/generic/webservices/pinterest/ptalker.cpp
M  +1    -0    core/dplugins/generic/webservices/pinterest/ptalker.h
M  +16   -9    core/dplugins/generic/webservices/pinterest/pwindow.cpp

https://invent.kde.org/graphics/digikam/commit/80f4b9c6d1843d10efcbbeccfdbccc2e68781ca9
Comment 6 Maik Qualmann 2022-04-26 11:53:08 UTC
Good news, digiKam has been successfully upgraded to standard Pinterest API access. A Windows test version that includes the changes can be found here:

https://files.kde.org/digikam/

Maik