Skip to content

Instantly share code, notes, and snippets.

@nateyolles
Created January 13, 2017 01:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nateyolles/d504998004712a79769fd75e537aa47a to your computer and use it in GitHub Desktop.
Save nateyolles/d504998004712a79769fd75e537aa47a to your computer and use it in GitHub Desktop.
$.ajax({
url: 'https://scheduler.bookedin.com/api/v1/companies/nurtured-by-nature/dayAvailability?from=2017-01-01&to=2018-01-31',
dataType: 'jsonp',
success: function(data) {
for (var x = 0; x < data.months.length; x++) {
if (data.months[x].availability.length > 0) {
alert('opening found');
}
}
},
error: function() {
alert('Error');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment