Spritz - change the way people read and make communication faster, easier, and more effective.
So, there has been a lot of buzz about this lately and today I too got my API key to test this out. I must say that using Spritz is really easy, and they have a very good documentation with examples so I will keep this short.
After you register to their developer program you will get your API key. A simple use case to get you started is to make a HTML document with the following content:
Important things to note here are that Spritz uses jQuery and you have to use your clientId and put this rediretUri file to your server (on which you host the domain with which you registered your Spritz application).
A little more advanced example is here: http://www.nikola-breznjak.com/codez/spritz/ (you can just view the source of it and I'm sure you'll know how to take it from there).
Using this on a simple HTML page was, well, simple. I tried to incorporate this into my wordpress blog (the one you're reading right now), and though it works nicely when I put the code in the index.php file (the main template file which lists all of the posts), it does not work when I put the same exact code to the single.php (template for showing specific posts). The error that I'm getting in the latter case is this:
Unable to spritz: Unable to retrieve contentVersion, contentId=5343e07be4b063e2752c379b: HTTP call failed, status: 500, message: Internal Server Error
So, if someone got the same error, how did you go about it?