Hi Rick,
Whilst I poke at this on my own I figure I'll ask the n00nb question. I've got a decent grip on calling external APIs using json as a post key in the request along with the auth in the header. Now I'm working with an endpoint which takes a simple string. I still need the auth in the header but I don't need to build some fancy VFP object, run it through a serializer, etc. What is the recommended way to put a simple string into the body of the request without all that serialization/deserialization stuff?
TIA
OK. Just to add some more color commentary here, I've got a wrapper that pushes all my external API calls through CallService. If I use wwhttp.post() instead I've got it working. In any case I'll appreciate any thoughts you care to share about this.
Just send a raw post.
lcRawData = "Hello cruel World!"
loHttp.cContentType = "plain/text"
lcResult = loHttp.Post(lcUrl, lcRawData)
Thanks! Pretty much where I landed but I do need to change the content type.