Heya,
Great wizards of Enfold,
I have a small issue that I could use some help with. I need to do a server to server HTTP Post to an API with a curl PHP script. I already have the script. I am trying to figure out how to implement it.
It basically post a request to an API which sends back a 200 response with an URL in the header.
I am trying to find out how to call the script. I need to use the URL I get in the response as a button target. I guess that, since it’s php, everything will be executed on page load.
I would appreciate any help on this. I have a plugin that allows me to run php on wordpress pages. I can also upload the file and call it . I just don’t know the syntax or where to place the file.
Sorry about my ignorance.;)
Thanks,
Silviu
Hey miketica!
Could you forward me the PHP script and the URL you wish to send the POST request to and tell me which plugin you’re using to add PHP code to wordpress pages.
Regards,
Arvish
Hey!
Yep, definitely out of what we can assist with via support in this case.
Without some additional background information on whats going on its actually still a bit hazy for me anyhow :(
For me, I would add this to a small custom plugin or maybe a function to be called with a shortcode instead of trying to embed it into a page from the WordPress admin.
Best regards,
Devin
It was worth a try. Thanks anyway ;).