SlideShare una empresa de Scribd logo
1 de 19
API
Application Programming Interface
Übersicht

•   Facebook – Graph API
•   Twitter – REST API
•   YouTube – Data API
JSON
{                                        <object>
    "key": "vaule",                      ! <key>vaule</key>
    "string": "Lorem ipsum dolor sit",   ! <string>Lorem ipsum dolor sit</string>
    "number": -123.456,                  ! <number>-123.456</number>
    "object":{                           ! <object>
    ! "key": "value"                     ! ! <key>value</key>
    },                                   ! </object>
    "array": ["foo","bar"],              ! <array>foo</array><array>bar</array>
    "boolean": true,                     ! <bolean>true</bolean>
    "empty": null                        ! <empty>null</empty>
}                                        </object>


169 Bytes                                226 Bytes


                                         Eine mögliche XML-Schreibweise, andere Schreibweisen sind möglich.
Parsing JSON
jQuery                       PHP

$.ajax({                     $url = "example.json";
! url: "example.json",       $file_content = file_get_contents($url);
! success: function(data){   $data = json_decode($file_content);
! ! alert(data.string);      echo $data->string;
! }
});
Facebook
graph.facebook.com/cocacola

{
    "id": "40796308305",
    "name": "Coca-Cola",
    "picture": "http://profile.ak.fbcdn.net/hprofile-ak-snc4/276879_40796308305_1578420141_s.jpg",
    "link": "https://www.facebook.com/coca-cola",
    "likes": 35648837,
    "category": "Food/beverages",
    "website": "http://www.coca-cola.com",
    "username": "coca-cola",
    "founded": "1886",
    "products": "Coca-Cola is the most popular and biggest-selling soft drink in history […]",
    "location":{
       "latitude": 42.00736,
       "longitude": -72.521224
    },
    "can_post": true,
    "checkins": 73
}

                                                                                   Dateigröße: 1,16 KB
Facebook – Albums
graph.facebook.com/mercedesbenzdeutschland/albums
{
    "data": [
       {
          "id": "251092158272082",
          "from": {
              "name": "Mercedes-Benz Deutschland",
              "category": "Cars",
              "id": "145689658812333"
          },
          "name": "DTM 2011 - Rennen, Finale und Showprogramm",
          "location": "Hockenheimring Baden-Wu00fcrttemberg",
          "link": "https://www.facebook.com/album.php?fbid=251092158272082&id=145689658812333&aid=54543",
          "cover_photo": "251092214938743",
          "count": 10,
          "type": "normal",
          "created_time": "2011-10-27T08:08:23+0000",
          "updated_time": "2011-10-27T08:10:30+0000",
          "can_upload": false
       },
       {
          "id": "249480695099895",
          "from": {
              "name": "Mercedes-Benz Deutschland",
Facebook – Album Photos
graph.facebook.com/251092158272082/photos
{
    "data": [
       {
          "id": "251092214938743",
          "from": {
              "name": "Mercedes-Benz Deutschland",
              "category": "Cars",
              "id": "145689658812333"
          },
          "tags": {
              "data": [
                 {
                    "id": "100000441323195",
                    "name": "Denis Hu00f6rner",
                    "x": 50.1042,
                    "y": 83.6795,
                    "created_time": "2011-10-27T10:40:08+0000"
                 }
              ]
          },
          "name": "DTM 2011rnrnMotorsports / DTM: german touring cars championship 2011, 07 […]",
          "picture": "http://photos-f.ak.fbcdn.net/hphotos-ak-snc7/299511_251092214938743_145689658812333_64…",
          "source": "http://a6.sphotos.ak.fbcdn.net/hphotos-ak-snc7/s720x720/299511_251092214938743_14568965…",
Facebook – Picture
graph.facebook.com/251092214938743
{
    "id": "251092214938743",
    "from": {
       "name": "Mercedes-Benz Deutschland",
       "category": "Cars",
       "id": "145689658812333"
    },
    "tags": {
!   ! […]
    },
    "name": "DTM 2011rnrnMotorsports / DTM: german touring cars championship 2011, 07 Jamie Green (GBR, AMG
    "picture": "http://photos-f.ak.fbcdn.net/hphotos-ak-snc7/299511_251092214938743_145689658812333_642955_10555
    "source": "http://a6.sphotos.ak.fbcdn.net/hphotos-ak-snc7/s720x720/299511_251092214938743_145689658812333_64
    "height": 505,
    "width": 720,
    "images": [
       {
          "height": 505,
          "width": 720,
          "source": "http://a6.sphotos.ak.fbcdn.net/hphotos-ak-snc7/s720x720/299511_251092214938743_145689658812
       },
       {
          "height": 126,
Facebook – Graph API
developers.facebook.com/docs/reference/api/
Facebook – Authentication
developers.facebook.com/docs/authentication/
Facebook – Beispiel
Twitter
api.twitter.com/1/statuses/user_timeline.json?screen_name=saschalobo
[
! {
! ! "id": 134979869225402368,
! ! "text": "Keine Ahnung, was das fu00fcr die Finanzkrise hiesse, aber mein Leben wu00e4re
besser, wenn der Begriff "Rating-Riese" verboten wu00fcrde",
! ! "created_at": "Fri Nov 11 13:04:43 +0000 2011",
! ! "user": {
! ! ! "id": 5876652,
! ! ! "name": "Sascha Lobo",
! ! ! "screen_name": "saschalobo"
! ! },
! ! "retweet_count": 9
! },
! {
! ! "id": 134944048069869569,
! ! "text": "u00dcberall liest man 11.11.11 u2013u00a0liebe Nerds, bitte achtet auch im Internet
auf Eure Schriftsprache und schreibt: !!.!!.!!",
! ! "created_at": "Thu Nov 10 22:31:56 +0000 2011",
! ! "user": {
! ! ! "id": 5876652,
! ! ! "name": "Sascha Lobo",
! ! ! "screen_name": "saschalobo"
! ! },
Twitter – REST API
dev.twitter.com/docs/api
Twitter – Beispiel
Berlintwitterwall
YouTube
gdata.youtube.com/feeds/api/users/NationalGeographic/uploads?v=2&alt=json&max-results=50
{
!   […]
!   "entry": [
!   ! {
!   ! ! "published": {
!   ! ! ! "$t": "2011-11-11T20:59:35.000Z"
!   ! ! },
!   ! ! "updated": {
!   ! ! ! "$t": "2011-11-13T18:00:48.000Z"
!   ! ! },
!   ! ! "title": {
!   ! ! ! "$t": "Thrive: How to be Happy Tip #1"
!   ! ! },
!   ! ! "media$group": {
!   ! ! ! "media$thumbnail": [
!   ! ! ! ! {
!   ! ! ! ! ! "url": "http://i.ytimg.com/vi/gYm0tDcQMI0/default.jpg",
!   ! ! ! ! ! "time": "00:00:37.500"
!   ! ! ! ! },
!   ! ! ! ! {
!   ! ! ! ! ! "url": "http://i.ytimg.com/vi/gYm0tDcQMI0/3.jpg",
!   ! ! ! ! ! "time": "00:00:56.250"
!   ! ! ! ! }
YouTube – Data API
code.google.com/intl/en-UK/apis/youtube/2.0/reference.html
YouTube – Beispiel
Pipes
pipes.yahoo.com
Anwendungen

•   Mediatheken
    Videos von YouTube & Fotos von Facebook verbinden


•   Benutzergenerierte Inhalte
    Twitterwall, Benutzerbilder von Partygästen

Más contenido relacionado

La actualidad más candente

Earn money with banner and text ads for clickbank
Earn money with banner and text ads for clickbankEarn money with banner and text ads for clickbank
Earn money with banner and text ads for clickbankJaroslaw Istok
 
Automation Script for WO Summary in Maximo
Automation Script for WO Summary in MaximoAutomation Script for WO Summary in Maximo
Automation Script for WO Summary in Maximosthume
 
Earn money with banner and text ads for Clickbank
Earn money with banner and text ads for ClickbankEarn money with banner and text ads for Clickbank
Earn money with banner and text ads for ClickbankJaroslaw Istok
 
Ufind proxo(cucurhatan).cfg
Ufind proxo(cucurhatan).cfgUfind proxo(cucurhatan).cfg
Ufind proxo(cucurhatan).cfgAhmad Hidayat
 
tabla en html Katerine jaramillo
tabla en html Katerine jaramillo tabla en html Katerine jaramillo
tabla en html Katerine jaramillo katejaramillo2
 
Doing it in style - creating beautiful sites, the web standards way / WebDD /...
Doing it in style - creating beautiful sites, the web standards way / WebDD /...Doing it in style - creating beautiful sites, the web standards way / WebDD /...
Doing it in style - creating beautiful sites, the web standards way / WebDD /...Patrick Lauke
 
CSS3 and jQuery
CSS3 and jQueryCSS3 and jQuery
CSS3 and jQuerypsophy
 
Anko試食会
Anko試食会Anko試食会
Anko試食会susan335
 
CSS3 Takes on the World
CSS3 Takes on the WorldCSS3 Takes on the World
CSS3 Takes on the WorldJonathan Snook
 
tabla en html Katerine jaramillo
 tabla en html Katerine jaramillo  tabla en html Katerine jaramillo
tabla en html Katerine jaramillo katejaramillo2
 
Xlrays online web tutorials
Xlrays online web tutorialsXlrays online web tutorials
Xlrays online web tutorialsYogesh Gupta
 

La actualidad más candente (18)

Capitulo 3-enegia-y-conservacion-de-masas
Capitulo 3-enegia-y-conservacion-de-masasCapitulo 3-enegia-y-conservacion-de-masas
Capitulo 3-enegia-y-conservacion-de-masas
 
CSS3 vs jQuery
CSS3 vs jQueryCSS3 vs jQuery
CSS3 vs jQuery
 
Earn money with banner and text ads for clickbank
Earn money with banner and text ads for clickbankEarn money with banner and text ads for clickbank
Earn money with banner and text ads for clickbank
 
1cst
1cst1cst
1cst
 
Automation Script for WO Summary in Maximo
Automation Script for WO Summary in MaximoAutomation Script for WO Summary in Maximo
Automation Script for WO Summary in Maximo
 
Dorothea orem-theory
Dorothea orem-theoryDorothea orem-theory
Dorothea orem-theory
 
Earn money with banner and text ads for Clickbank
Earn money with banner and text ads for ClickbankEarn money with banner and text ads for Clickbank
Earn money with banner and text ads for Clickbank
 
Ufind proxo(cucurhatan).cfg
Ufind proxo(cucurhatan).cfgUfind proxo(cucurhatan).cfg
Ufind proxo(cucurhatan).cfg
 
Html5 and css3
Html5 and css3Html5 and css3
Html5 and css3
 
tabla en html Katerine jaramillo
tabla en html Katerine jaramillo tabla en html Katerine jaramillo
tabla en html Katerine jaramillo
 
Doing it in style - creating beautiful sites, the web standards way / WebDD /...
Doing it in style - creating beautiful sites, the web standards way / WebDD /...Doing it in style - creating beautiful sites, the web standards way / WebDD /...
Doing it in style - creating beautiful sites, the web standards way / WebDD /...
 
CSS3 and jQuery
CSS3 and jQueryCSS3 and jQuery
CSS3 and jQuery
 
Anko試食会
Anko試食会Anko試食会
Anko試食会
 
Insertcustomer
InsertcustomerInsertcustomer
Insertcustomer
 
CSS3 Takes on the World
CSS3 Takes on the WorldCSS3 Takes on the World
CSS3 Takes on the World
 
tabla en html Katerine jaramillo
 tabla en html Katerine jaramillo  tabla en html Katerine jaramillo
tabla en html Katerine jaramillo
 
More of less (take 2)
More of less (take 2)More of less (take 2)
More of less (take 2)
 
Xlrays online web tutorials
Xlrays online web tutorialsXlrays online web tutorials
Xlrays online web tutorials
 

Destacado

YouTube API Japan UG #1
YouTube API Japan UG #1YouTube API Japan UG #1
YouTube API Japan UG #1Yukio Andoh
 
Youtube IFrame Player API
Youtube IFrame Player APIYoutube IFrame Player API
Youtube IFrame Player APIRyan Chung
 
4w 1h with youtube api
4w 1h with youtube api4w 1h with youtube api
4w 1h with youtube apiOue Ekasit
 
YouTube API: Dive In
YouTube API: Dive InYouTube API: Dive In
YouTube API: Dive Innotronwest
 
Building Video Applications with YouTube APIs
Building Video Applications with YouTube APIsBuilding Video Applications with YouTube APIs
Building Video Applications with YouTube APIsJarek Wilkiewicz
 
IT-youtube Presentation
IT-youtube PresentationIT-youtube Presentation
IT-youtube Presentationsafiya999
 
Why APIs are Different Than Integration
Why APIs are Different Than IntegrationWhy APIs are Different Than Integration
Why APIs are Different Than IntegrationApigee | Google Cloud
 
Youtube Presentation
Youtube PresentationYoutube Presentation
Youtube Presentationtownsend
 
YouTube Presentation
YouTube PresentationYouTube Presentation
YouTube Presentationguest786f62
 
The Day The Earth Broke Into Two...A Jataka Story
The Day The Earth Broke Into Two...A Jataka StoryThe Day The Earth Broke Into Two...A Jataka Story
The Day The Earth Broke Into Two...A Jataka StoryOH TEIK BIN
 
DESIGN IT! Talk #001 (UX) Yukio Andoh
DESIGN IT! Talk #001 (UX) Yukio AndohDESIGN IT! Talk #001 (UX) Yukio Andoh
DESIGN IT! Talk #001 (UX) Yukio AndohYukio Andoh
 
Wisdom From A Laugh 145, 146
Wisdom From A Laugh 145, 146Wisdom From A Laugh 145, 146
Wisdom From A Laugh 145, 146OH TEIK BIN
 
Scaling APIs: Predict, Prepare for, Overcome the Challenges
Scaling APIs: Predict, Prepare for, Overcome the ChallengesScaling APIs: Predict, Prepare for, Overcome the Challenges
Scaling APIs: Predict, Prepare for, Overcome the ChallengesApigee | Google Cloud
 
Youtube api at Glance
Youtube api at GlanceYoutube api at Glance
Youtube api at GlanceAshok Basnet
 
Presentation - you tube
Presentation - you tubePresentation - you tube
Presentation - you tubesunil.dce
 

Destacado (18)

YouTube API Japan UG #1
YouTube API Japan UG #1YouTube API Japan UG #1
YouTube API Japan UG #1
 
Youtube IFrame Player API
Youtube IFrame Player APIYoutube IFrame Player API
Youtube IFrame Player API
 
4w 1h with youtube api
4w 1h with youtube api4w 1h with youtube api
4w 1h with youtube api
 
YouTube API: Dive In
YouTube API: Dive InYouTube API: Dive In
YouTube API: Dive In
 
Building Video Applications with YouTube APIs
Building Video Applications with YouTube APIsBuilding Video Applications with YouTube APIs
Building Video Applications with YouTube APIs
 
IT-youtube Presentation
IT-youtube PresentationIT-youtube Presentation
IT-youtube Presentation
 
Why APIs are Different Than Integration
Why APIs are Different Than IntegrationWhy APIs are Different Than Integration
Why APIs are Different Than Integration
 
Youtube Presentation
Youtube PresentationYoutube Presentation
Youtube Presentation
 
YouTube Powerpoint
YouTube PowerpointYouTube Powerpoint
YouTube Powerpoint
 
YouTube Presentation
YouTube PresentationYouTube Presentation
YouTube Presentation
 
The Day The Earth Broke Into Two...A Jataka Story
The Day The Earth Broke Into Two...A Jataka StoryThe Day The Earth Broke Into Two...A Jataka Story
The Day The Earth Broke Into Two...A Jataka Story
 
DESIGN IT! Talk #001 (UX) Yukio Andoh
DESIGN IT! Talk #001 (UX) Yukio AndohDESIGN IT! Talk #001 (UX) Yukio Andoh
DESIGN IT! Talk #001 (UX) Yukio Andoh
 
Wisdom From A Laugh 145, 146
Wisdom From A Laugh 145, 146Wisdom From A Laugh 145, 146
Wisdom From A Laugh 145, 146
 
YouTube APIs Workshop
YouTube APIs WorkshopYouTube APIs Workshop
YouTube APIs Workshop
 
Effective writing
Effective writingEffective writing
Effective writing
 
Scaling APIs: Predict, Prepare for, Overcome the Challenges
Scaling APIs: Predict, Prepare for, Overcome the ChallengesScaling APIs: Predict, Prepare for, Overcome the Challenges
Scaling APIs: Predict, Prepare for, Overcome the Challenges
 
Youtube api at Glance
Youtube api at GlanceYoutube api at Glance
Youtube api at Glance
 
Presentation - you tube
Presentation - you tubePresentation - you tube
Presentation - you tube
 

Similar a Api vortrag

Forbes MongoNYC 2011
Forbes MongoNYC 2011Forbes MongoNYC 2011
Forbes MongoNYC 2011djdunlop
 
Rich Results and Structured Data
Rich Results and Structured DataRich Results and Structured Data
Rich Results and Structured DataSMA Marketing
 
SFScon17 - Patrick Puecher: "Exploring data with Elasticsearch and Kibana"
SFScon17 - Patrick Puecher: "Exploring data with Elasticsearch and Kibana"SFScon17 - Patrick Puecher: "Exploring data with Elasticsearch and Kibana"
SFScon17 - Patrick Puecher: "Exploring data with Elasticsearch and Kibana"South Tyrol Free Software Conference
 
Winning with Structured Data and Schema.org - OMLIVE 2018
Winning with Structured Data and Schema.org - OMLIVE 2018Winning with Structured Data and Schema.org - OMLIVE 2018
Winning with Structured Data and Schema.org - OMLIVE 2018Izzi Smith
 
ELK Stack - Turn boring logfiles into sexy dashboard
ELK Stack - Turn boring logfiles into sexy dashboardELK Stack - Turn boring logfiles into sexy dashboard
ELK Stack - Turn boring logfiles into sexy dashboardGeorg Sorst
 
SDKs, the good the bad the ugly - Japan
SDKs, the good the bad the ugly - JapanSDKs, the good the bad the ugly - Japan
SDKs, the good the bad the ugly - Japantristansokol
 
Abusing text/template for data transformation
Abusing text/template for data transformationAbusing text/template for data transformation
Abusing text/template for data transformationArnaud Porterie
 
Paris js extensions
Paris js extensionsParis js extensions
Paris js extensionserwanl
 
Python Code Camp for Professionals 3/4
Python Code Camp for Professionals 3/4Python Code Camp for Professionals 3/4
Python Code Camp for Professionals 3/4DEVCON
 
Data Mangling with mongoDB the Right Way [PyData London] 2016]
Data Mangling with mongoDB the Right Way [PyData London] 2016]Data Mangling with mongoDB the Right Way [PyData London] 2016]
Data Mangling with mongoDB the Right Way [PyData London] 2016]Alexander Hendorf
 
PixelsCamp 2017 - Cloud Functions for Firebase and Machine Learning APIs
PixelsCamp 2017 - Cloud Functions for Firebase and Machine Learning APIsPixelsCamp 2017 - Cloud Functions for Firebase and Machine Learning APIs
PixelsCamp 2017 - Cloud Functions for Firebase and Machine Learning APIsCarlos Azaustre
 
The things browsers can do! SAE Alumni Convention 2014
The things browsers can do! SAE Alumni Convention 2014The things browsers can do! SAE Alumni Convention 2014
The things browsers can do! SAE Alumni Convention 2014Christian Heilmann
 
OSCON 2011 CouchApps
OSCON 2011 CouchAppsOSCON 2011 CouchApps
OSCON 2011 CouchAppsBradley Holt
 
NoSQL & MongoDB
NoSQL & MongoDBNoSQL & MongoDB
NoSQL & MongoDBShuai Liu
 
Working and Winning With GraphQL
Working and Winning With GraphQLWorking and Winning With GraphQL
Working and Winning With GraphQLMbosinwa Awunor
 
Presentation html5 css3 by thibaut
Presentation html5 css3 by thibautPresentation html5 css3 by thibaut
Presentation html5 css3 by thibautThibaut Baillet
 
Hypermedia API’s
Hypermedia API’s Hypermedia API’s
Hypermedia API’s 3camp
 
Building Progressive Web Apps for Android and iOS
Building Progressive Web Apps for Android and iOSBuilding Progressive Web Apps for Android and iOS
Building Progressive Web Apps for Android and iOSFITC
 
FrontInBahia 2014: 10 dicas de desempenho para apps mobile híbridas
FrontInBahia 2014: 10 dicas de desempenho para apps mobile híbridasFrontInBahia 2014: 10 dicas de desempenho para apps mobile híbridas
FrontInBahia 2014: 10 dicas de desempenho para apps mobile híbridasLoiane Groner
 
HackMIT Presentation
HackMIT PresentationHackMIT Presentation
HackMIT PresentationMatt Harris
 

Similar a Api vortrag (20)

Forbes MongoNYC 2011
Forbes MongoNYC 2011Forbes MongoNYC 2011
Forbes MongoNYC 2011
 
Rich Results and Structured Data
Rich Results and Structured DataRich Results and Structured Data
Rich Results and Structured Data
 
SFScon17 - Patrick Puecher: "Exploring data with Elasticsearch and Kibana"
SFScon17 - Patrick Puecher: "Exploring data with Elasticsearch and Kibana"SFScon17 - Patrick Puecher: "Exploring data with Elasticsearch and Kibana"
SFScon17 - Patrick Puecher: "Exploring data with Elasticsearch and Kibana"
 
Winning with Structured Data and Schema.org - OMLIVE 2018
Winning with Structured Data and Schema.org - OMLIVE 2018Winning with Structured Data and Schema.org - OMLIVE 2018
Winning with Structured Data and Schema.org - OMLIVE 2018
 
ELK Stack - Turn boring logfiles into sexy dashboard
ELK Stack - Turn boring logfiles into sexy dashboardELK Stack - Turn boring logfiles into sexy dashboard
ELK Stack - Turn boring logfiles into sexy dashboard
 
SDKs, the good the bad the ugly - Japan
SDKs, the good the bad the ugly - JapanSDKs, the good the bad the ugly - Japan
SDKs, the good the bad the ugly - Japan
 
Abusing text/template for data transformation
Abusing text/template for data transformationAbusing text/template for data transformation
Abusing text/template for data transformation
 
Paris js extensions
Paris js extensionsParis js extensions
Paris js extensions
 
Python Code Camp for Professionals 3/4
Python Code Camp for Professionals 3/4Python Code Camp for Professionals 3/4
Python Code Camp for Professionals 3/4
 
Data Mangling with mongoDB the Right Way [PyData London] 2016]
Data Mangling with mongoDB the Right Way [PyData London] 2016]Data Mangling with mongoDB the Right Way [PyData London] 2016]
Data Mangling with mongoDB the Right Way [PyData London] 2016]
 
PixelsCamp 2017 - Cloud Functions for Firebase and Machine Learning APIs
PixelsCamp 2017 - Cloud Functions for Firebase and Machine Learning APIsPixelsCamp 2017 - Cloud Functions for Firebase and Machine Learning APIs
PixelsCamp 2017 - Cloud Functions for Firebase and Machine Learning APIs
 
The things browsers can do! SAE Alumni Convention 2014
The things browsers can do! SAE Alumni Convention 2014The things browsers can do! SAE Alumni Convention 2014
The things browsers can do! SAE Alumni Convention 2014
 
OSCON 2011 CouchApps
OSCON 2011 CouchAppsOSCON 2011 CouchApps
OSCON 2011 CouchApps
 
NoSQL & MongoDB
NoSQL & MongoDBNoSQL & MongoDB
NoSQL & MongoDB
 
Working and Winning With GraphQL
Working and Winning With GraphQLWorking and Winning With GraphQL
Working and Winning With GraphQL
 
Presentation html5 css3 by thibaut
Presentation html5 css3 by thibautPresentation html5 css3 by thibaut
Presentation html5 css3 by thibaut
 
Hypermedia API’s
Hypermedia API’s Hypermedia API’s
Hypermedia API’s
 
Building Progressive Web Apps for Android and iOS
Building Progressive Web Apps for Android and iOSBuilding Progressive Web Apps for Android and iOS
Building Progressive Web Apps for Android and iOS
 
FrontInBahia 2014: 10 dicas de desempenho para apps mobile híbridas
FrontInBahia 2014: 10 dicas de desempenho para apps mobile híbridasFrontInBahia 2014: 10 dicas de desempenho para apps mobile híbridas
FrontInBahia 2014: 10 dicas de desempenho para apps mobile híbridas
 
HackMIT Presentation
HackMIT PresentationHackMIT Presentation
HackMIT Presentation
 

Último

Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfOverkill Security
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 

Último (20)

Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 

Api vortrag

  • 2. Übersicht • Facebook – Graph API • Twitter – REST API • YouTube – Data API
  • 3. JSON { <object> "key": "vaule", ! <key>vaule</key> "string": "Lorem ipsum dolor sit", ! <string>Lorem ipsum dolor sit</string> "number": -123.456, ! <number>-123.456</number> "object":{ ! <object> ! "key": "value" ! ! <key>value</key> }, ! </object> "array": ["foo","bar"], ! <array>foo</array><array>bar</array> "boolean": true, ! <bolean>true</bolean> "empty": null ! <empty>null</empty> } </object> 169 Bytes 226 Bytes Eine mögliche XML-Schreibweise, andere Schreibweisen sind möglich.
  • 4. Parsing JSON jQuery PHP $.ajax({ $url = "example.json"; ! url: "example.json", $file_content = file_get_contents($url); ! success: function(data){ $data = json_decode($file_content); ! ! alert(data.string); echo $data->string; ! } });
  • 5. Facebook graph.facebook.com/cocacola { "id": "40796308305", "name": "Coca-Cola", "picture": "http://profile.ak.fbcdn.net/hprofile-ak-snc4/276879_40796308305_1578420141_s.jpg", "link": "https://www.facebook.com/coca-cola", "likes": 35648837, "category": "Food/beverages", "website": "http://www.coca-cola.com", "username": "coca-cola", "founded": "1886", "products": "Coca-Cola is the most popular and biggest-selling soft drink in history […]", "location":{ "latitude": 42.00736, "longitude": -72.521224 }, "can_post": true, "checkins": 73 } Dateigröße: 1,16 KB
  • 6. Facebook – Albums graph.facebook.com/mercedesbenzdeutschland/albums { "data": [ { "id": "251092158272082", "from": { "name": "Mercedes-Benz Deutschland", "category": "Cars", "id": "145689658812333" }, "name": "DTM 2011 - Rennen, Finale und Showprogramm", "location": "Hockenheimring Baden-Wu00fcrttemberg", "link": "https://www.facebook.com/album.php?fbid=251092158272082&id=145689658812333&aid=54543", "cover_photo": "251092214938743", "count": 10, "type": "normal", "created_time": "2011-10-27T08:08:23+0000", "updated_time": "2011-10-27T08:10:30+0000", "can_upload": false }, { "id": "249480695099895", "from": { "name": "Mercedes-Benz Deutschland",
  • 7. Facebook – Album Photos graph.facebook.com/251092158272082/photos { "data": [ { "id": "251092214938743", "from": { "name": "Mercedes-Benz Deutschland", "category": "Cars", "id": "145689658812333" }, "tags": { "data": [ { "id": "100000441323195", "name": "Denis Hu00f6rner", "x": 50.1042, "y": 83.6795, "created_time": "2011-10-27T10:40:08+0000" } ] }, "name": "DTM 2011rnrnMotorsports / DTM: german touring cars championship 2011, 07 […]", "picture": "http://photos-f.ak.fbcdn.net/hphotos-ak-snc7/299511_251092214938743_145689658812333_64…", "source": "http://a6.sphotos.ak.fbcdn.net/hphotos-ak-snc7/s720x720/299511_251092214938743_14568965…",
  • 8. Facebook – Picture graph.facebook.com/251092214938743 { "id": "251092214938743", "from": { "name": "Mercedes-Benz Deutschland", "category": "Cars", "id": "145689658812333" }, "tags": { ! ! […] }, "name": "DTM 2011rnrnMotorsports / DTM: german touring cars championship 2011, 07 Jamie Green (GBR, AMG "picture": "http://photos-f.ak.fbcdn.net/hphotos-ak-snc7/299511_251092214938743_145689658812333_642955_10555 "source": "http://a6.sphotos.ak.fbcdn.net/hphotos-ak-snc7/s720x720/299511_251092214938743_145689658812333_64 "height": 505, "width": 720, "images": [ { "height": 505, "width": 720, "source": "http://a6.sphotos.ak.fbcdn.net/hphotos-ak-snc7/s720x720/299511_251092214938743_145689658812 }, { "height": 126,
  • 9. Facebook – Graph API developers.facebook.com/docs/reference/api/
  • 12. Twitter api.twitter.com/1/statuses/user_timeline.json?screen_name=saschalobo [ ! { ! ! "id": 134979869225402368, ! ! "text": "Keine Ahnung, was das fu00fcr die Finanzkrise hiesse, aber mein Leben wu00e4re besser, wenn der Begriff "Rating-Riese" verboten wu00fcrde", ! ! "created_at": "Fri Nov 11 13:04:43 +0000 2011", ! ! "user": { ! ! ! "id": 5876652, ! ! ! "name": "Sascha Lobo", ! ! ! "screen_name": "saschalobo" ! ! }, ! ! "retweet_count": 9 ! }, ! { ! ! "id": 134944048069869569, ! ! "text": "u00dcberall liest man 11.11.11 u2013u00a0liebe Nerds, bitte achtet auch im Internet auf Eure Schriftsprache und schreibt: !!.!!.!!", ! ! "created_at": "Thu Nov 10 22:31:56 +0000 2011", ! ! "user": { ! ! ! "id": 5876652, ! ! ! "name": "Sascha Lobo", ! ! ! "screen_name": "saschalobo" ! ! },
  • 13. Twitter – REST API dev.twitter.com/docs/api
  • 15. YouTube gdata.youtube.com/feeds/api/users/NationalGeographic/uploads?v=2&alt=json&max-results=50 { ! […] ! "entry": [ ! ! { ! ! ! "published": { ! ! ! ! "$t": "2011-11-11T20:59:35.000Z" ! ! ! }, ! ! ! "updated": { ! ! ! ! "$t": "2011-11-13T18:00:48.000Z" ! ! ! }, ! ! ! "title": { ! ! ! ! "$t": "Thrive: How to be Happy Tip #1" ! ! ! }, ! ! ! "media$group": { ! ! ! ! "media$thumbnail": [ ! ! ! ! ! { ! ! ! ! ! ! "url": "http://i.ytimg.com/vi/gYm0tDcQMI0/default.jpg", ! ! ! ! ! ! "time": "00:00:37.500" ! ! ! ! ! }, ! ! ! ! ! { ! ! ! ! ! ! "url": "http://i.ytimg.com/vi/gYm0tDcQMI0/3.jpg", ! ! ! ! ! ! "time": "00:00:56.250" ! ! ! ! ! }
  • 16. YouTube – Data API code.google.com/intl/en-UK/apis/youtube/2.0/reference.html
  • 19. Anwendungen • Mediatheken Videos von YouTube & Fotos von Facebook verbinden • Benutzergenerierte Inhalte Twitterwall, Benutzerbilder von Partygästen