Closed froger-me closed 5 years ago
Hi @adrix71
I just tested the following:
dummy-plugin
v1.4 packagehttps://site.com/wppus-update-api/?action=get_metadata&package_id=dummy-plugin
dummy-plugin
v1.4 package to /wp-content/wppus/packages
https://site.com/wppus-update-api/?action=get_metadata&package_id=dummy-plugin
againAs you can see, the parameters are a bit different from the original API - not including package_id
results in a 404 Bad Request ; simply replace slug
by package_id
and it should work properly.
Remark: the actual API call includes more parameters (installed_version
, php
, locale
, checking_for_updates
, update_license_key
, update_license_signature
, update_type
), but package_id
and action
are the minimum requirement for the request to be considered valid.
It is a pleasure to work with you. There are not many people who respond quickly and divide the questions into two and make separate posts. Thank you, seriously.
Damn. It's my fault. I looked at the sources but I did not notice the slug
parameter renamed in package_id
. Considering that I knew her well, I had simply given a quick glance at that part of the code.
I have seen the additional parameters you mentioned, but I have not studied them yet because I am currently focusing on another problem.
Thanks a lot now it works
Quoted from https://github.com/froger-me/wp-plugin-update-server/issues/6