I found my username and password in IBM Cloud Docs Weather.
I have this code:
print file_get_contents("https://d40845df-8125-441f-8e7c-e650726ce721:[email protected]/v1/location/30339:4:US/forecast/hourly/48hour.json"); // of course, the password is my password
The result on my website is Unauthorized.Array()
I can go to Weather API on https://twcservice.mybluemix.net/rest-api/ and here is clickable API for weather.
It looks like this:
When I fill empty inputs and click on Try it out! I get no response.
On IBM Cloud Docs Weather I found username and password with GET url.