Client: HTML & JS

5 minutes
Share the link to this page
Copied
  Completed

Transcript

Hello, guys, welcome to the 23rd session of the EPA dot A tutorials for beginner. In this lesson, we will use the HTML and JavaScript to create our own client. From which we will pass the URL of the request to the ebay.da and display the response to the user. Let's switch to the browser and open the dots. Click on the SDK is here is a list of lots of SDK provided for the various platforms such as Android, apple, PHP, dotnet, Python, and many more. In this lesson, we will see the HTML and JavaScript so click on the HTML policy as example.

It will open the guest on the GitHub, click on the roll button and see what it does. Client dot html and open the directory where we are right click and select the Edit with notepad plus plus. Here we need to grow by the apa.ts token. For that switch to the da da da. Click on the gear icon. Here are the client and the developer API keys for the origin.

We can use any for testing. I will use the developer copy it and pasted here and open this page in the browser. Let's test it by sending the some of it at the 90 Here is the response in the Jason. Within that it contained the answer. Now I'm going to customize it such that we can see the live chat conversation means the it contains the URL to send and receive messages. And also differentiate which messages is sent by who let's make changes yet is a method named d a set response using which we will set the text in the text area.

Here instead of the replacing all of the text, we will perform the append operation. For that, I'm going to copy this line and finished it here at the plus sign And the last lesson to differentiate the airline field from here we are sending a request to the apa.ta and this text variable to contain the original query before the executing query, I am going to call the search response and pass the text because this is a query written by the user, so I am writing the you and on the success instead of writing the antis Jason data, now, we will write the only data though door reser door fulfillment to door to speech because it was reserved written by the board, so I am writing the board in the prefix and save it and refresh the page and send the same message. Here you can see that this message was sent by you and this message was written by the boat.

Now I am writing the Hi, we got the hider and write the sum of 10 and 90 we got the 100. Let's see what we are learning this session. In this session we are used to how to use the JavaScript SDK to create our own client. We copy the example from the docs of epa.da and make some changes as per the requirement. You can make some more everyone changes to thanks for watching. Nice day.

If you have any doubt feel free to contact me

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.