xxxxxxxxxx
$ curl https://api.airtable.com/v0/appAMc1HcaoFzJ5PF/Table%201 \
-H "Authorization: Bearer YOUR_API_KEY"
xxxxxxxxxx
An Application Programming Interface (API) is a set of commands,
functions, protocols, and objects that programmers can use to
create software or interact with an external system.
Think of API as an interface for programs. A UI (User Interface) is an interface
for the user.
- Examples of API: library API (jQuery, Express, JavaScript), or Data request
API like Weather condition API and current time API.
- To make an API request you need to use an HTTP/HTTPS request to external
servers
Say you were going to a restaurant,
we know that there are things that are
on the menu like cakes and desert while
there are raw ingredients in the Kitchen.
The restaurant would not let you go into
the Kitchen to eat ingredients since the
restaurant has certain things that they sell
and let you buy and there are other things that
are off limits, which is similar to data.
Facebook has data on users while the police API
has data on crimes. They all have certain data that
they allow you to access and some data that are not your business.
At a restaurant, you are provided with a menu (API) that
allows to you to choose what you want and what they provide.
For a weather API, they include the temperature,
weather condition, weather image, and pressure
An application programming interface is a way for two or more computer programs to communicate with each other. It is a type of software interface, offering a service to other pieces of software. A document or standard that describes how to build or use such a connection or interface is called an API specification.
xxxxxxxxxx
python tools/bisect-builds.py -a mac -g 782793 -b 800218 --use-local-cache --verify-range -- --no-first-run --user-data-dir=/tmp http://example.com
xxxxxxxxxx
curl -s --basic -n "https://chromium.googlesource.com/chromium/src/+/HEAD/tools/bisect-builds.py?format=TEXT" | base64 -D > bisect-builds.py
xxxxxxxxxx
python3 -c "import base64; import urllib.request; print(str(base64.b64decode(urllib.request.urlopen(\"https://chromium.googlesource.com/chromium/src/+/HEAD/tools/bisect-builds.py?format=TEXT\").read()),'utf-8'))" > bisect-builds.py
xxxxxxxxxx
python tools/bisect-builds.py -a platform -g good-revision -b bad-revision -- flags-for-chrome
xxxxxxxxxx
python tools/bisect-builds.py -a mac -g 85.0.4183.121 -b 86.0.4240.193 --use-local-cache --verify-range