Created
January 13, 2017 01:39
-
-
Save nateyolles/d504998004712a79769fd75e537aa47a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$.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