Skip to content

Commit

Permalink
Fix #171
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanmatthieud committed May 31, 2019
1 parent 7cbc035 commit a9b15ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/disneytokyo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ class DisneyTokyoPark extends Park {
options.name = options.name || "Tokyo Disneyland Park";
options.timezone = options.timezone || "Asia/Tokyo";

options.useragent = options.useragent || "TokyoDisneyResortApp/1.0.8 Android/8.1.0";
options.useragent = options.useragent || "TokyoDisneyResortApp/1.0.12 Android/8.1.0";

// inherit from base class
super(options);

this[s_apiKey] = options.api_key || "818982cd6a62e7927700a4fbabcd4534a4657a422711a83c725433839b172371";
this[s_apiAuth] = options.api_auth || "MmYyZDYzehoVwD52FWYyDvo22aGvetu6uaGGKdN6FILO9lp2XS17DF//BA+Gake8oJ0GKlGnJDWu/boVa32d7PfCeTqCJA==";
this[s_apiOS] = options.api_os || "Android 8.1.0";
this[s_apiVersion] = options.api_version || "1.0.11";
this[s_apiVersion] = options.api_version || "1.0.12";
this[s_apiBase] = options.api_base || "https://api-portal.tokyodisneyresort.jp";

if (options.park_id === undefined) throw new Error("No Park ID passed to DisneyTokyoPark object constructor");
Expand Down Expand Up @@ -116,6 +116,7 @@ class DisneyTokyoPark extends Park {
url: `${this[s_apiBase]}/rest/v1/devices`,
method: "POST",
headers: this.GetAPIHeaders(),
data: {}
}).then((data) => {
if (data && data.deviceId) {
this.Log(`Fetched device ID for TDR: ${data.deviceId}`);
Expand Down

0 comments on commit a9b15ec

Please sign in to comment.