Skip to content

Instantly share code, notes, and snippets.

@superlou
Created January 12, 2015 01:48
Show Gist options
  • Save superlou/17b62bddffaf40d0ba57 to your computer and use it in GitHub Desktop.
Save superlou/17b62bddffaf40d0ba57 to your computer and use it in GitHub Desktop.
Access to dev.api.ean.com
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