Adrian
Forum Replies Created
-
Forum: Plugins
In reply to: [License Manager for WooCommerce] Additional REST API Validation Help@jroblesruiz Sorry, I didn’t get that from your initial post. I thought that there was an issue with the get_json_params function in combination with using a body in a GET request. What you were trying to explain is that it’s a generic issue and not linked to the get_json_params function. Sorry, I’m new to all this.
Using parameters instead of the body I was able to get this fully working now. I just need to save the data in the database which shouldn’t be a problem and I don’t require to use the data later like you do to prevent an activation on another machine. For me it’s more that I’m able to monitor that one license key is not used by let’s say 50 machines. Thank you for your help!
- This reply was modified 4 years, 12 months ago by Adrian.
Forum: Plugins
In reply to: [License Manager for WooCommerce] Additional REST API Validation HelpHi @jroblesruiz,
Thank you very much for replying. I’ve used your change, and I got exited as it indeed passed the test in Postman. However I am not able to get the UUID value that I sent with postman in WordPress. To test I save a csv file with below code where I save the license key and the UUID.
$path = wp_upload_dir(); $fp = fopen($path['path']."/Test.csv", "w"); fputcsv($fp, array($licenseKey, $body['uuid'])); fclose($fp);I get a csv file with the license key, but no UUID. Do you have more luck on your side? Can you confirm you are able to see the UUID value in WordPress?
Maybe with your help I will be able to solve this. If it’s not possible maybe an alternative solution would be to add the additional info (eg UUID) as a parameter(s) in the url (next to the consumer key/secret) rather than in the body? After googling a bit I get the impression you are not supposed to use body in a GET request.
Regards,
Adrian@champsupertramp Thank you so much! The class you wrote is absolutely great!
Not only am I now able to see content on all my custom tabs, but also instead of specifying the meta keys for each field I can simply specify a form id which makes it even easier.
I’m missing one feature that I would like and that’s to hide the button on a custom tab. I know it’s possible with [‘show_button’] = false. Nice task for me as a beginner to see if I can add it in the class. Thank you so much again!
- This reply was modified 5 years, 2 months ago by Adrian.