Sending json post request in thirdparty api from sketchup

Please post code correctly on the forum (and make tabs are converted to spaces [2 for Ruby, 4 for other languages.)] SEE