cubehouse / themeparks

Unofficial API for accessing ride wait times and schedules for Disneyland, Disney World, Universal Studios, and many more parks
MIT License
536 stars 126 forks source link

Add entertainment to retrievable data #9

Open PhilippeP62 opened 8 years ago

PhilippeP62 commented 8 years ago

A lot of attractions ( parades, shows, meet & greets ... ) doesn't have wait times but show times , retrieving them separately would be a plus.

cubehouse commented 8 years ago

I'll look into this at some point. I'm going to leave the ticket open as I would like to add this at some point.

Alternatively, anybody else can contribute and add such a feature with a pull request :)

zpocbob commented 7 years ago

I am very much interested in this feature as well. I know the url to the data but don't yet understand this code well enough to implement it. All I need is raw data returned.

josiahpeters commented 7 years ago

@zpocbob You should include the data url if you know it.

cubehouse commented 7 years ago

@zpocbob emailed me directly and we arrived at the following code snippet: https://gist.github.com/cubehouse/2de24d7d43beb34a3cd7b81d1273a6c3

This gist shows you how to request custom URLs from the Disney API. Specifically, this script fetches the character appearances for both Disneyland California parks. This should show you the URL bob is discussing above.

zpocbob commented 7 years ago

WDW https://api.wdpro.disney.go.com/bulk-service/snapshot/WDW-mobile-character-appearances

var park_id; if (result.finalUrl.indexOf("WDW-mobile-mk-character-appearances") >= 0) { // disneyland response park_id = "mk"; } else if (result.finalUrl.indexOf("WDW-mobile-ep-character-appearances") >= 0) { // california adventure response park_id = "ep" }else if (result.finalUrl.indexOf("WDW-mobile-hs-character-appearances") >= 0) { // california adventure response park_id = "hs" }else if (result.finalUrl.indexOf("WDW-mobile-ak-character-appearances") >= 0) { // california adventure response park_id = "ak" }

DLR https://api.wdpro.disney.go.com/bulk-service/snapshot/DLR-mobile-character-appearances

    var park_id;
    if (result.finalUrl.indexOf("DLR-mobile-dl-character-appearances") >= 0) {
        // disneyland response
        park_id = "dl";
    } else if (result.finalUrl.indexOf("DLR-mobile-ca-character-appearances") >= 0) {
        // california adventure response
        park_id = "ca"
    }
zpocbob commented 7 years ago

WDW Restaurant list https://api.wdpro.disney.go.com/global-pool-override-A/facility-service/destinations/80007798/restaurants

Restaurant specific info and menuitems "https://api.wdpro.disney.go.com/global-pool-override-A/facility-service/restaurants/"+restaurant_id (90002606)

Get menus from the Restaurant "https://api.wdpro.disney.go.com/global-pool-override-A/facility-service/menu-items/"+menu_id (90006650)

zpocbob commented 7 years ago

Other items I'd like to find: Aailable times slots for Restaurants at WDW and DLR Get available fastpass+ times for attractions at WDW.

eaaliprantis commented 7 years ago

I would definitely love to get the available time slots for restaurants at WDW and DLR. I'm willing to contribute and code and assist as much as possible :)

coffeebean-dev commented 7 years ago

@zpocbob The issue with grabbing the attractions without waittimes, is that it is associated with the resort and not the individual park. You would have to somehow loop through all of them and then figure out which park it belongs to via the relevant links array.

@eaaliprantis There are no waittimes for restaurants, only for certain attractions and entertainments.

cubehouse commented 7 years ago

I'm pretty sure in order to get fastpass times you not only need to login with a valid account, but that account also needs to have a purchased ticket for the day you're enquiring about. I've not done any investigation into that, but I think that's how it works, which isn't very feasible I fear!

For restaurants, I do want to eventually add a new "resort" concept to the library, where you can access a resort object that contains an array of parks associated with it. That is where I would implement restaurant calls.

cbgrey commented 6 years ago

I'm unclear where this issue stands. Is the solution for DL Characters above universal enough to apply to all entertainment at Disney Parks (specifically WDW and DL)?

cubehouse commented 6 years ago

Sorry, I don't follow your question.

Generally, this issue remains a potential "nice to have", but ultimately is not the focus of this library. If there were more maintainers and pull requests coming in, we could support that, but it's too much for me to maintain realistically.

All the parks have exposed functions (see docs) that let you make custom authenticated calls etc., which is demonstrated in the above Gist, so you can generally access anything if you are willing to dig a little and maintain that yourself for your project.

cbgrey commented 6 years ago

Fair enough. Thanks for the reply.

PhilippeP62 commented 5 years ago

WDW https://api.wdpro.disney.go.com/bulk-service/snapshot/WDW-mobile-character-appearances

@zpocbob How did you come upon those URLs , I' trying to find the corresponding ones for DL Paris , but so far with no luck.