I'm trying to figure out how can I call an API using Flask-Restplus (normally, I'd just use API key, as it always was possible - let's say the easiest example is weather). I know how I can do it in Flask, but have no idea how can I do it in Restplus. There are tons of documentations, but mostly about working with local database. I don't understand how I can call a real weather API inside Restplus. If you can explain it to me or provide an example, I'd appreciate that very much. Also I have 2 files - one for an endpoints, 2nd for the calls, and I can't understand how I can invoke the call or connect those two files. Thanks in advance!
Add a comment |
1 Answer 1
Flask-RESTPlus package deals with creating and exposing APIs. If you need to access external APIs within your application you are suppose to use Requests package.
Sign up to request clarification or add additional context in comments.
Comments
Explore related questions
See similar questions with these tags.
- The Overflow Blog
-
-
- Featured on Meta
-
-
-
Related
Hot Network Questions
- How can I correctly render hidden lines in a 3D graphic as dashed lines and visible lines as solid lines?
- How do translators decide what to use for the title of books of the Bible?
- Bash Backup script for password DB
- Oven door cleaning
- Mechanics of re-licensing a fork of permissively licensed code
- Showing that the one-point compactification of an open set in the Euclidean plane is path-connected
- Are quantum wavefunctions required to be analytic?
- PSE Advent Calendar 2025 (Day 2): Decorating in the Midst of Purple Skies
- Is there a way in TikZ or Lua to make a short function which converts letters to their corresponding alphabetical position (and vice versa)?
- How to log in to Mac mini from MacBook on home network?
- Did an Iranian organization use millions of dollars to promote Shia (branch of Islam) in Japan and only a single person converted?
- Make a hexagonal earth with geometry nodes in blender 5.0
- Is user enumeration a problem for a passwordless app?
- Does unequpping gear make me stealthier?
- Incorrect (but reasonable) employment dates on CV for PhD application
- PSE Advent Calendar 2025 (Day 1): The Wish List
- If "bad" can be "badly" in adverbial form, then why not "good" to goodly"?
- Why does Mtt 13:34 say that Jesus always spoke in parables?
- Formal version/synonym for the phrase "history repeats itself"
- Ritardando text positioning on a PianoStaff
- How to execute machine code in QuickBasic under DosBox?
- How do I generate +4.5 V and -4.5 V from a 9 V battery using an opamp?
- Relationship between sound heard from two different locations
- Is a Sun Blade only considered a weapon when attuned?
lang-py