I&C SCI 32 Lecture Notes - Lecture 5: Json, Percent-Encoding, Application Programming Interface

62 views1 pages
Week 5 (Tuesday) ICS 32: Notes
Websites (For people)
Web “API”: Application Programming Interface
-Google has a collect of web APIs
https://www.youtube.com/results?search_query=lakers+clippers
URL?QUERY_PARAMETERS
name 1= value1&name2=value2&name3=value3
query parameter whose name is “a=b” and whose value is “c?d”
- http://www.blah.com/blah?a=b=c=?d
URL encoding
-Spaces are replaced with + characters
-Other special characters are “% encoded” …
o“?” -> “%3F”
API KEY
JavaScript Object Notation (JSON)
-Like a dictionary (each has a name and value)
https://www.googleapis.com/youtube/v3/search ?
key=APIKEY
&part=snippet
&type=video
&maxResults=10
&q=lakers+clippers
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows half of the first page of the document.
Unlock all 1 pages and 3 million more documents.

Already have an account? Log in

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents