From f24aa9ba2766f6479209da4bbb5a0b62ad0cff18 Mon Sep 17 00:00:00 2001 From: Sujin/Sushi Date: Thu, 29 Aug 2013 13:34:52 -0400 Subject: [PATCH] created javascript library page --- docs/libraries/javascript.markdown | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 docs/libraries/javascript.markdown 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!