Created
January 12, 2015 01:48
-
-
Save superlou/17b62bddffaf40d0ba57 to your computer and use it in GitHub Desktop.
Access to dev.api.ean.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
customerSessionId: 23, // todo Should be unique for each user session | |
possible: function(location) { | |
$.get('http://dev.api.ean.com/ean-services/rs/hotel/v3/list', { | |
apiKey: 'mc7re8wzh2vnnw67uz4je6qq', | |
cid: 55505, | |
_type: 'json', | |
customerSessionId: this.get('customerSessionId'), | |
latitude: location.lat, | |
longitude: location.lng | |
}, function(result) { | |
return result; | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment