Skip to main content

Posts

Showing posts with the label api

Create facebook messenger chatbot using PHP

Chatbots are the latest sensation in social media communication channels. These automated chat systems are especially build to receive vistiors on social media chats and provide basic information to the visitors about your business. This information could include event schedules, product information, latest deals, store offers and general information about the brand. Entrepreneurs and brand marketers employ chatbots to handle the bulk of chats queries. This way, a large number of queries could be easily handled with minimum costs. Chatbots help reduces the dependence on human customer service representatives (CSR). These chatbots vet out common queries so that the human CSR cold focus on queries that require processing of multiple information sources. Since chatbots steer all conversation toward a pre-set direction, it is easy and time-efficient to use these chatbots instead of human CSR. In this article, I will create a simple Facebook chatbot that could carry out an...

How to fetch data from a remote API in React.js

In this post, we will see how you fetching data from a remote s ource inside your React.js application. So let’s create a brand new React project with  Initialize a React project $ npx create - react - app todos $ cd todos $ npm start If you succeed in executing the above commands, you will see the default React page in the browser at  http :// localhost : 3000 . Now Let’s get into the fetching remote data task, for the sake of simplicity, in this article, we will use the native fetch API that comes with the browser. It uses JavaScript promises to resolve the asynchronous response.  Let’s create a brand new component called  Todo , for this create a file called  Todo.js  with following code in the  src  directory. import React , { Component } from 'react' ; class Todo extends Component {      render ( ) {       ...