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.