0% found this document useful (0 votes)
44 views24 pages

Automations Using Api

Uploaded by

adesinaokiki2003
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views24 pages

Automations Using Api

Uploaded by

adesinaokiki2003
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

AUTOMATIONS USING API

(HTTP REQUEST)
INTRODUCTION TO API
• Application Programming Interface(API) provides a set of rules,
protocols and tools that developers can use to access the
functionality and data of another software system, service or
platform.
• It helps two different applications to connect with each other.
TYPES OF API
• WEB API (Restful API, Soap API)
• LIBRARY API (Python Standard Library and JavaScript Library)
• DATA API (Webscraping API and Data provider API)
• CLOUD API (Cloud service API and Social Media API)
And so much more…
Today, My presentation will be based on RESTful
API because it is the most common and widely
used type of API.
RESTful API
• REST means Representational State Transfer
• REST uses standard HTTP methods (GET, POST, PUT, e.t.c) to perform
actions such as CRUD (CREATE, REPLACE, UPDATE and DELETE)
operations on resources.
• Any API that performs any action using the standard HTTP methods is
termed “RESTful”
HOW AUTOMATION PLATFORMS USE
API
Automation platforms like Integromat (now known as Make) and Zapier are
closely related to APIs (Application Programming Interfaces) because they
leverage APIs to connect, integrate, and automate workflows across various
applications.

Automation platforms use APIs to interact with various applications and


services. For instance, to automate tasks in Google Sheets, the platform will
use the Google Sheets API.

These platforms provide pre-built integrations with popular services (e.g.,


Gmail, Slack, Dropbox), which are essentially pre-configured API calls that
users can set up without needing to understand the underlying API details.
HTTP REQUEST
HTTP REQUEST STRUCTURE
HTTP REQUEST METHODS
We have numerous types of HTTP requests methods but these are the most common
ones.
Generally, APIs will return one of these 2
types of data structures.
• JavaScript Object Notation(JSON)
• Extensible Markup Language (XML)
HTTP STATUS/RESPONSE CODES
HOW WAS I ABLE IMPLEMENT THESE
KNOWLEDGE OF HTTP?
PROBLEM
My client, Bella, runs an online store and wants to
offer promotions to her customers who are
subscribed to her newsletter.
SOLUTION
To get the job done, It was split into two stages.
The first stage was to get the list of her all her subscribed and unsubscribed
customers which includes the first name, last name and email.
1. After that, I used “make.com” to harness Google sheet API.
2. Converted the information from Goole Sheet to API language (JSON).
3. Send a post request to a webhook URL and
4. Get the HTTP reports to know if HTTP request encountered an error or it was
successful.
I used the “POST” HTTP
method in order for me to
send it to a webhook URL
which in turn sends a custom
email to the subscribed users.
The HTTP Status Codes have been updated.
Code “200” means that the operation did not encounter any error.
An Email has been sent.
And Because I was part of Bella’s subscribed customers, I received a
promo email.
THE END

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy