cowlicker12
Forum Replies Created
-
I know that the cURL request below works because I tested it on a terminal. Now I want to use your shortcode plugin to make the exact same request. All I know is that the endpoint needs an API token (which the client gave me and is labeled “blank1: blank2” below). How would you put this request into your shortcode’s syntax?
curl -XGET -H "blank1: blank2" -H "Content-Type: application/json" "https://website.net/employeestatus?key=Adam.Smith|Adam%20Smith"
I’ve tried the 2 methods below, but they both return a not-authorized error.
1.
[remote_content url="https://website.net/employeestatus?key=Adam.Smith|Adam%20Smith" method="GET" header="blank1: blank2" header="Content-Type: application/json"]
2.
[remote_content url="https://website.net/employeestatus?key=Adam.Smith|Adam%20Smith" method="GET" header="blank1: blank2" header="Content-Type: application/json" userpwd="blank1: blank2"]
- This reply was modified 6 years, 10 months ago by cowlicker12.
Oh, wait I should mention that I actually need to send a token of the form “blank:blank”
I’m new to WordPress and cURL. Could you give an example of what you mean by sending them as _GET parameters in the QUERY_STRING?
Forum: Fixing WordPress
In reply to: Enqueuing a script and stylesheet not workingIt’s a JS file for a child theme. It contains CDN links that I need in order to use Bootstrap and Jquery
Forum: Fixing WordPress
In reply to: Enqueuing a script and stylesheet not workinglink to the full question posted on Stack Exchange. Please help!!