In this thread, I'll tell you all you need to know about Application programming interfaces (APIs).
P/S: If you find this thread helpful, kindly retweet 🙏
⬇️
🔹What is an API?
An API (Application programming interface) is simply the set of rules guiding how a client browser communicates with a web server to exchange data.
Three parties to note are:
- Browser (Client)
- Server (Back-end)
- A network (the Internet)
When we talk about APIs, we talk about requests and responses. A client makes a request to a server for data (HTML page or json data) over a network (The internet) and the server responds with the data.
The data transmitted to and fro are stored in something called Headers.
VARIABLES
- Variable names are case sensitive (name and NAME are
different variables)
- Must start with a letter or an underscore
- Can have numbers but must not start with one
- Python is loosely-typed (you don’t specify the type when
declaring a variable.
FUNCTIONS
- In python, functions are defined with the def keyword.
- Indentation is used instead of curly braces.
- A colon is placed after the parameters.
- No semi-colons.
🌟 2: #null essentially means "no data", empty, nada. #undefined means data has not been explicitly defined or declared. #boolean evaluates to either true or false. #numbers are digits between 0-9, #strings are characters enclosed within double quotes