 Nama saya Sing Tien. Saya adalah pengalaman yang baru dari Tech Ladies. Saya masih begini seperti yang terbaik untuk kamu semua. Dalam sesi ini, saya harap bahawa kami belajar daripada orang lain. Untuk pengalaman, tolong berbual dengan saya. Hari ini, saya akan bercakap tentang API. Berapa banyak kamu sudah menggunakan API sebelumnya? Beberapa. Jadi, menurut Wikipedia, API bermakna aplikasi, interfares dan sebagainya. Jadi, apa yang api betul-betul bermakna? Saya akan menjelaskannya dengan lebih berlainan untuk orang-orang yang tidak tahu apa API ini. Jadi, ambil API sebagai restoran. Jadi, ingat kamu duduk di atas pakaian dengan menu di tangan kamu. Jadi, kamu akan memasak makanan. Selepas kamu memasak, semua yang kamu perlu lakukan adalah menunggu makanan untuk digunakan di depan kamu. Jadi, kamu tidak akan memasak makanan untuk digunakan oleh siapa. Bagaimana ia telah dilakukan? Bagaimana ia telah dilakukan? Jadi, apa yang kamu perlukan untuk memasak makanan untuk digunakan di depan kamu? Itu saja. Jadi, API adalah sama. Jadi, makanan yang kamu menyebabkan akan menjadi panggilan Http yang telah digunakan ke sistem ini. Jadi, apa yang telah dilakukan? Restoran adalah makanan yang telah digunakan di depan kamu. Jadi, mungkin kamu perlukan fungsi ini. Maksudnya, berbicara untuk berbicara untuk fungsi. All you have to do is just to call the API. You don't have to care what happened behind the screen, how complex is the process. You just have to call and then you can use it. So, put it back in our real life example. So, I believe that all of you are very familiar with flight booking. We will just go to the flight website. After that, we key in where we want to go and also the date of our flight. And then they will return us what are the flights that are available and also what are the prizes. How if today you do not want to access to all this data through the flight website itself? If let's say you want to make a comparison, for example, I believe all of you have used Sky Scanner before because all of us want to get the cheapest flight possible. So, what Sky Scanner do? Have you guys ever wonder what happened behind Sky Scanner? So, basically Sky Scanner send a request over to call the API from different flight company or travel agency and they will return the response back into this website which is what we see, the comparison of all the prizes and the flights. So, I'm going to go into a bit more detail. So, there is a certain fixed ways of writing APIs. So, for web APIs, for now the two most commonly used ones is actually SOAP API and REST API. So, REST API is the most commonly used for now. So, I'm going to focus more on REST API. Imagine you have a pool of users that you can actually perform some action on it. You can perform a CRUD. So, what CRUD stand for is create, read, update and delete. So, you can have a look at the API. It's actually stated there that it allows you to create, view, update and delete the user. But this create an issue whereby if let's say every developer actually want to create their own API and if let's say they do not have a standard of doing this. So, for example, today I want to retrieve a list of users. I can just put the API as view underscore users or I can put it at users slash all. So, how do we know that? What are the URL referring to? So, we have to keep going back to the documentation to check what is the URL referring to. So, by using REST, we can standardize it. So, for example, if let's say you want to retrieve a list of user, the URL will be slash users and if let's say you want to refer to certain ID it will be user slash 123. Later on, I'm going to actually demo a bit about this. So, get post put delete if let's say you're not familiar with it is actually to perform the CRUD action that I mentioned just now. Get is to retrieve, to read is the R. Post is to create, to see. Put is to update, the U and delete is the D. So, why do we want to use API? I try to search Google. I try to Google how long it takes to actually build a speech to text function. If let's say you want to use it in your own application and what is being comment by people is actually don't do it. Don't invent the wheel. It actually require a poor, very talented engineers. It require a lot of times, a lot of energy and by just using API for example, during my last hackathon we are able to create an application that able to convert speech to text function by using IBM Watson API. And we did it within 24 hours. So, if let's say today you have a product that you need to, you have an idea that you need to verify fast. So, this will be the way. So, since today is actually the team is Ruby so, I will have to show some code. So, this is just a very simple code to actually call the API. What I use is a Ruby Jam called REST Client. And then I put get. This is a WeBuild API that actually help us to retrieve a list of upcoming events, technical talks, technical events. So, after that I turn it into a data. Okay. So, I'm going to demo some part of the thing that I mentioned just now using Postman. So, Postman is application that you can actually use to test your API. So, this is just a simple database that I have created just now in the evening. So, let's see. So, if you guys remember get, one of the action get is to retrieve the list of the user. So, this is the user that is being saved under the database. So, you can see the result actually just return right below. So, what if I put it into post? So, for example so, post is for you to create a new user. So, you just have to insert user name, email age. So, you reflect right below. So, the ID is 5. Later on, if you type in so, you will get the data that I just key in just now. So, what if you want to update the user? So, you will just put can just change it here. For example, I want to change the age become 25. So, just send. Yup, the age has been changed to 25. So, post is used to update the details as in the data of the user. So, the last one, delete. You just have to key in users slash the ID of the user that we key in just now. You press send. Yup, it has been deleted. So, when we go back to the main you won't see the one that we just key in just now, ID 5. It's already been deleted from the database. Ya, so, that's basically what I'm going to talk today. Thank you. Any question? Oh, do you have any questions? Where is the data set? I create the new Reels apps and then I create a new database. So, it's being saved there. It's under the Locker Machine for now. Ya. Just in your computer? Ya. Anyone else? Ya, for it is the extra speech for Watson. Do you use a Jam or do you want to do this? We just call the... Okay, because that time I'm not the one that program but based on what I know, we just call the URL from our application. Oh, okay. Is there a Jam? Maybe. Can I ask someone else to answer? For those who are movie programmers you can also chip in and answer. You know, it's not necessary. So, is there a Jam for all of us? Can I get the person that program to answer? Can you ask a question? Ya, I can just... I'm sorry. Okay. Any questions? Okay, if not, then thank you so much.