mojoconf / MCT

nothing to see here yet, move along
7 stars 1 forks source link

Sync event details from eventbrite.com to MCT #11

Closed jhthorsen closed 9 years ago

jhthorsen commented 9 years ago

Could use eventbrite as editor and just pull the data into MCT. (or use a web hook?) https://developer.eventbrite.com/docs/event-details/

It returns something like this:

{
  "resource_uri": "https://www.eventbriteapi.com/v3/events/15957581556/",
  "name": { "text": "Mojoconf 2015 TESTEVENT", "html": "Mojoconf 2015 TESTEVENT" },
  "description": {
    "text": "Some description. \nIt seems like it can be as long as you want... ", 
    "html": "<P>Some description.<\/P>\r\n<P>It seems like it can be as long as you want...<\/P>"
  },
  "logo": null,
  "id": "15957581556",
  "url": "http://www.eventbrite.com/e/mojoconf-2015-testevent-tickets-15957581556",
  "logo_url": null,
  "start": { "timezone": "America/New_York", "local": "2015-04-09T19:00:00", "utc": "2015-04-09T23:00:00Z" },
  "end": { "timezone": "America/New_York", "local": "2015-04-09T22:00:00", "utc": "2015-04-10T02:00:00Z" },
  "created": "2015-02-28T15:24:48Z",
  "changed": "2015-02-28T15:26:04Z",
  "capacity": 40,
  "status": "draft",
  "currency": "USD",
  "listed": false,
  "shareable": false,
  "invite_only": false,
  "online_event": false,
  "show_remaining": false,
  "organizer_id": "7979370321",
  "venue_id": "9901885",
  "category_id": null,
  "subcategory_id": null,
  "format_id": null,
  "category": null,
  "subcategory": null,
  "format": null, 
  "organizer": {
    "description": { "text": "This organization is the best.", "html": "<P>This organization is the best.<\/P>" }, 
    "logo": null, 
    "resource_uri": "https://www.eventbriteapi.com/v3/organizers/7979370321/", 
    "id": "7979370321", 
    "name": "Mojoconf", 
    "url": "http://www.eventbrite.com/o/mojoconf-7979370321", 
    "num_past_events": 0, 
    "num_future_events": 0
  },
  "venue": {
    "address": { "address_1": null, "address_2": null, "city": null, "region": "NY", "postal_code": null, "country": "US", "latitude": 43.299428499999998, "longitude": -74.21793260000004 },
    "resource_uri": "https://www.eventbriteapi.com/v3/venues/9901885/",
    "id": "9901885",
    "name": "New York",
    "latitude": "43.2994285",
    "longitude": "-74.21793260000004"
  },
  "ticket_classes": [
    {
      "resource_uri": "https://www.eventbriteapi.com/v3/events/15957581556/ticket_classes/34013864/",
      "id": "34013864",
      "name": "Early bird",
      "description": null,
      "donation": false,
      "free": true,
      "minimum_quantity": 1,
      "maximum_quantity": null,
      "quantity_total": 40,
      "quantity_sold": 1,
      "sales_end": "2015-04-09T22:00:00Z",
      "hidden": false,
      "include_fee": false,
      "split_fee": false,
      "hide_description": true,
      "auto_hide": false,
      "variants": [],
      "event_id": "15957581556"
    }
  ]
}
jhthorsen commented 9 years ago

Not going for tight integration with Eventbrite. Using Github for OAuth2 connect instead.