Learning Outcomes
What Is An API?
How Developers Work With APIs?
Understanding HTTP
How To Make API Calls
API Request Tools
Authentication & Authorization
Errors
Case Study: Paga’s Payment APIs
Slide 4
Slide 4 text
HTTP
1. Language
2. Protocol of communication
3. Web
4. Communication
Slide 5
Slide 5 text
1. CCTV will capture motion
2. CCTV will send motion to the server
3. Server is storing this motion
4. Phone requests to view this motion
5. Server will send the motion to the Phone
6. Phone will alert on a particular CCTV camera
7. Server will receive this alert
8. Server sends this alert to the CCTV
9. CCTV will change indicator ( beeping )
phone
api
server
api
cctv
Slide 6
Slide 6 text
Request
Response
1. 100 - 199 Information ( the existence of something, does it exist )
2. 200 - 299 Success
3. 300 - 399 Redirect
4. 400 - 499 Client Error
5. 500 - 599 Server Error
1. GET
2. DELETE
3. POST
Slide 7
Slide 7 text
Authentication
Authorization
Who are you?
What are you allowed to do?
● Cashier
● Bank Manager
● Account Managers
● Reconciliation officers
● Accountant
● Security
● Customers
What can you do?