I am trying to use the Shopify API to look up real-life orders in-game.
The endpoint I’m using is https://{api_key}:{password}@{shop_url}/admin/api/2021-10/orders.json?name={order_number}
When I try the endpoint with the filled-in information & the brackets removed, I get “HttpError: InvalidUrl”.
local response = game:GetService("HttpService"):RequestAsync({
Url = imagine there is the link here,
Method = "GET"
})
local decodedResponse
if response.Success then
print("HttpService request ON!")
else
print("The request failed:", response.StatusCode, response.StatusMessage)
end
If you try to visit the website without the credentials, it’ll ask you for a Username & Password
I saw somewhere on the Devforum a while back that you can send the Username & Password credentials over the header, but I forgot how to do it