SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

Tendances

tabla en html Katerine jaramillo
tabla en html Katerine jaramillo tabla en html Katerine jaramillo
tabla en html Katerine jaramillo
katejaramillo2
 
tabla en html Katerine jaramillo
 tabla en html Katerine jaramillo  tabla en html Katerine jaramillo
tabla en html Katerine jaramillo
katejaramillo2
 

Tendances (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
 

En vedette

YouTube API Japan UG #1
YouTube API Japan UG #1YouTube API Japan UG #1
YouTube API Japan UG #1
Yukio Andoh
 
IT-youtube Presentation
IT-youtube PresentationIT-youtube Presentation
IT-youtube Presentation
safiya999
 
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
Apigee | Google Cloud
 

En vedette (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
 

Similaire à Api vortrag

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
FITC
 

Similaire à 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
 

Dernier

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
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
Victor Rentea
 

Dernier (20)

Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
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...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
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...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
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
 
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
 
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
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
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
 

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