Here’s a link to download my Postman collection files that contains all of the API calls that I have made in this video and all my other API tutorial videos for whatever price you want (or download for free by typing $0). Once you import these files and populate your environment variables, you can start easily making the same API calls I did in the tutorial: andystechtutorials.gumroad.com/l/sqbuh!
Hey @sirkyou399, you're welcome! Can you clarify what you mean when you say "record api calls in postman"? Do you mean you want to run the same api calls multiple times?
Hey @saiadusumalli9193, if you make an api call to dataservice.accuweather.com/locations/v1/regions, you will get back a list of regions and then if you make this api call dataservice.accuweather.com/locations/v1/countries/{{specific_region_here}}?apikey={{api_Key}}, you will get back a list of countries for that specific region! Hopefully that helps!
@@AndysTechTutorials thank you very much for the reply. Is it possible to get the weather warnings using an api for the entire country? I am only able to use specific locations for the weather warnings but I would like to have all the weather warnings for a specific country. Thank you
Hey Koyi, once you have the users location assuming you get their city, you will have to make the api call at 1:50 and pass in the user’s city as the query parameter for q. Once you make that api call, you will get back the location key for the users specific city. Hopefully that makes sense!
@@AndysTechTutorials thank you for the lightning speed response, I understand that part so I'm trying to build a weather app and when the user opens the app and approved the permission of location tracking, I want to show the current location weather forecast. My question would be how do I pass the user's current device location into the API? Dynamically and not hard coded the city into the API.
I'm not sure I understand your question. Once you get your user's location, you can pass in that value into the api to get the location key. Once you get the location key, you can pass that into the other api to get the weather data for that specific city. Hopefully that make sense and if it doesn't I can clarify more.
To add on to my previous comment, you would need to make an api call in the programming language that you’re working and dynamically add your users location into the api call. For example, if you’re using react, you could use the axios package to make an api call and pass in the users city into the api call by passing in the query parameter of q and giving it the value of your users current city so something like q={usersCity} as part of the api call.
Here’s a link to download my Postman collection files that contains all of the API calls that I have made in this video and all my other API tutorial videos for whatever price you want (or download for free by typing $0).
Once you import these files and populate your environment variables, you can start easily making the same API calls I did in the tutorial: andystechtutorials.gumroad.com/l/sqbuh!
Thanks. Just purchased your API tutorial code. Cheers
Hey @asht7290, thank you so much for the support! I really appreciate it!
Thankyou, I am total new to APIs
Hey Sumiran, glad to help!
Me to
why there is no option to save my city ( location key ) in this weather app ? and using this then for testing other api calls in the weather app :(
Hey @ander172, when you say “weather app” are you talking about Postman?
Thank you for the tutorial. Can you suggest some methods on how to record the API calls in postman?
Hey @sirkyou399, you're welcome! Can you clarify what you mean when you say "record api calls in postman"? Do you mean you want to run the same api calls multiple times?
Thanks for this. I was having trouble figuring out where to get the locationKey. Their docs do a poor job not having reference links to needed info.
Hey Isuru, glad my tutorial was able to help you!
Thank you brother, you were very helpfull
Hey Miguel, glad you found it helpful! If you could subscribe to the channel, I would greatly appreciate it!
Bro now there is no any tab of name MY APPs
Hey awesome video. Can you please explain on how I can find the key for countries?
Hey @saiadusumalli9193, if you make an api call to dataservice.accuweather.com/locations/v1/regions, you will get back a list of regions and then if you make this api call dataservice.accuweather.com/locations/v1/countries/{{specific_region_here}}?apikey={{api_Key}}, you will get back a list of countries for that specific region!
Hopefully that helps!
@@AndysTechTutorials thank you very much for the reply. Is it possible to get the weather warnings using an api for the entire country? I am only able to use specific locations for the weather warnings but I would like to have all the weather warnings for a specific country.
Thank you
How did unpaste that JSon code to Wordpress?
Hi @Shibansky, can you clarify what you mean?
How to get the location key dynamically based on user's location?
Hey Koyi, once you have the users location assuming you get their city, you will have to make the api call at 1:50 and pass in the user’s city as the query parameter for q.
Once you make that api call, you will get back the location key for the users specific city.
Hopefully that makes sense!
@@AndysTechTutorials thank you for the lightning speed response, I understand that part so I'm trying to build a weather app and when the user opens the app and approved the permission of location tracking, I want to show the current location weather forecast. My question would be how do I pass the user's current device location into the API? Dynamically and not hard coded the city into the API.
I'm not sure I understand your question. Once you get your user's location, you can pass in that value into the api to get the location key. Once you get the location key, you can pass that into the other api to get the weather data for that specific city.
Hopefully that make sense and if it doesn't I can clarify more.
To add on to my previous comment, you would need to make an api call in the programming language that you’re working and dynamically add your users location into the api call.
For example, if you’re using react, you could use the axios package to make an api call and pass in the users city into the api call by passing in the query parameter of q and giving it the value of your users current city so something like q={usersCity} as part of the api call.
sehr hilfreich
Why do I need to create an app to get an API key? I want my API key
Hey @SuburbaniteUrbanite, with the AccuWeather API, you have to create an app to get your own api key
Do you know why I can't use the service?
24 Hours of Hourly Forecasts, I get Unauthorized
Thx
Hey Edwin, if it says unauthorized, that means your api key is not valid. Did you generate your own api key when making this api call?