Thread Starter
ds1970
(@ds1970)
No, I’m not looking to display reviews. I wrote that yesterday so not sure why it was deleted.
What do you wish to display?
Thread Starter
ds1970
(@ds1970)
I will find a programmer to make it since it looks like there’s no plugin for it. I want a widget that returns with a google reviews request link after you enter a business name. This is a link a business would send to their customers asking for a google review. Similar to what Whitespark and Podium have on their site. I’ll close this request now. thanks
No problem @ds1970. All the best.
Just in case it’s helpful, I asked ChatGPT to write code for a plugin that does what you want. If you have a little bit of coding experience then maybe you could get it to work.
https://gist.github.com/noisysocks/5c3634f24afafad9dd892b0c58ac8d91
This script sends a GET request to Google’s PlaceID lookup API when the button is clicked. It uses the entered business name to find the corresponding PlaceID, which is then used to construct a link to the Google Review page for that place. The link is then displayed on the page.
Please note that while this code should work as a basic example, it’s a good idea to handle potential errors and edge cases. For example, the findplacefromtext API request might not return any candidates if the business name is misspelled or doesn’t exist. You might want to check for this and give an appropriate error message.
Also, this is a simple demonstration and doesn’t include any security measures. In a real-world plugin, you should also make sure to properly sanitize and validate all input and output, handle errors gracefully, and consider potential security issues.
Lastly, please remember to replace "YOUR_API_KEY" with your actual Google Places API key. If you don’t have one, you can get it from the Google Cloud Console.