Been looking out all around the web for this, however can not discover something in addition to folks making an attempt to push their plugins.
I would like to tug within the Google My Enterprise Evaluations with their API into the entrance web page of my web site to showcase critiques from prospects.
I believe I’ve largely found out the API I have to name as I used to be capable of retrieve the information utilizing Postman, however getting this into the features file of my WordPress theme is a complete totally different beast.
Can somebody please assist information me on how I can use this API with WordPress?
In Postman I’ve authorization setup as OAuth2.0, I actually do not know the right way to name and get a token and assign it to my web site so as to retrieve the information in order that’s the primary query. How do I setup the auth name in WordPress with OAuth2.0?
Subsequent step would then be utilizing the API. Right here it’s https://mybusiness.googleapis.com/v4/accounts/:accountID/areas/:locationID/critiques
How would I set this up within the features file? I am assuming I take advantage of CURL or one thing primarily based on some random articles I’ve come throughout, however I am actually at a loss. The result I am searching for is to tug within the critiques from Google so that it’ll dynamically replace and I haven’t got to maintain copy/pasting critiques to the location manually.
Thanks!