diff --git a/docs/libraries/javascript.markdown b/docs/libraries/javascript.markdown new file mode 100644 index 0000000..03a195b --- /dev/null +++ b/docs/libraries/javascript.markdown @@ -0,0 +1,41 @@ +# OpenPhoto Javascript Library + +### Examples + +First, include the `OpenPhoto.js` script and add a `data-site` attribute. + + + +Second, write a function that does something with the API response. + + + +Third, call any [API endpoint](http://theopenphotoproject.org/documentation) and pass the callback function we defined above. + + + +This is a pure JavaScript example which doesn't rely on any third party libraries. + +Enjoy!