I'm talking to the Square Connect API from SS2. I ...
# suitescript
c
I'm talking to the Square Connect API from SS2. I need to send multipart form data as described at https://docs.connect.squareup.com/api/connect/v2#endpoint-v1items-uploaditemimage. I can find pure JS examples on the web, but I'm not sure how to adapt them to work with N/https. Any ideas?
r
@cja Hello, you need to build out the authentication first
c
Thanks, I've made many requests to the API already, I'm just stuck-ish on uploading item images
Since the requests are more complicated
r
how do you mean?
c
Multipart form data and byte string