fromecoderdojo

Inspiring kids to be creative and have fun with the internet

CSS HTML API Game programming II Game programming Algorithms JavaScript HTML/CSS
3 November 2018

API Integration

by Agustin & Felipe

Materials

Server

Client

Course #5

GET https://test.havefunhub.com/api/place/47
GET https://test.havefunhub.com/api/event/47
{
  "placeId": 47,
  "name": "Edventure Frome",
  "description": "info@edventurefrome.org\n\nhttp://www.edventurefrome.org",
  "category": "",
  "priceIndicator": 0,
  "address": "Park Hill Dr",
  "address2": null,
  "postCode": null,
  "city": "Frome",
  "latitude": 51.23781967163,
  "longitude": -2.31991004944,
  "active": true,
  "imageId": null,
  "imageHash": "b5670f2f4230a3bea63f29ea81651e35079d76dcf62482aaff4c0b5b1bbd62b1",
  "hasPromo": false,
  "country": "United Kingdom",
  "phone": "+447548014066",
  "imageURL": null,
  "userName": "Coder",
  "facebookId": null,
  "lastUpdated": null,
  "imageURLLarge": null,
  "imageURLSmall": null
}


curl https://test.havefunhub.com/
curl -H 'Accept: application/json' https://test.havefunhub.com/api/event/47
curl -verbose https://test.havefunhub.com/api/events
curl -XPUT ....

https://www.bbc.co.uk/

Playing time

Let’s try to integrate with the core API to find out more details about the data we consume

tags: api - kids