1 Reply Latest reply on Jun 26, 2019 5:46 AM by john_reynolds

    Google App Script:  API POST to New document

    aot-sandbox Novice

      I'm wondering if someone has come across this issue with basic auth and Jive:


      The following curl command works flawlessly


      curl -u USERNAMEHERE:PASSWORDHERE -H "Content-Type: application/json" --data '{ "type": "document", "content": { "type": "text/html", "text":"<h1>HOORAY</h1> a Document is born"}, "subject": "TEST WORKED"}' https://MYJIVEURL.com/api/core/v3/places/XXXXXXXX/contents



      UPDATE: I Figured it out thanks to a legend on stackoverflow.


      Gist Here GSApp doc to jive · GitHub