arena-js
arena-js copied to clipboard
Fix to createBlock function + Add /me endpoint
Using the createBlock as documented in the README would throw an exception as passing a string through would break the regex.
I added a small check to see whether the parameter was an object first, if not it will create one and use the regex.
The README may need some updating too as you can pass in an object with title, description etc and that will work as is.
Edit: Added an additional function to facilitate the /me
API endpoint