There is a channel for square libs, #squarelibraries. In regards to the code it smells a little bit. The
/api
path might be repeated. Also using direct ip address can generate issues with certificate verification, however you are using http not https so would be fine.