AnsweredAssumed Answered

Formatting a cURL post API request for insert from URL to post a twitter status

Question asked by daniella on Jul 25, 2018
Latest reply on Sep 13, 2018 by jfencil

Hello,

 

I'm trying to post a twitter status update from the contents of a FileMaker text field. Using Postman, I've generated a working curl header for posting tweets (private data edited out here).

 

curl -X POST \

  https://api.twitter.com/1.1/statuses/update.json \

  -H 'Authorization: OAuth oauth_consumer_key=\"fake\",oauth_token=\"fake\",oauth_signature_method=\"HMAC-SHA1\",oauth_timestamp=\"1532559586\",oauth_nonce=\"XxgdDTKWsnU\",oauth_version=\"1.0\",oauth_signature=\"fake\"' \

  -H 'Cache-Control: no-cache' \

  -H 'Postman-Token: fake' \

  -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \

  -F 'status=hello world'

 

Could someone give me some advice on how to translate this into the something that would work with the Insert from URL script step? I think I might have some of the syntax wrong, and also I think that I might need to have some of these keys be generated first in fields before being transferred into the header via variables (nonce, timestamp, possibly token?). I've tried a few different alterations but none have worked. Any info is appreciated. Thank you.

Outcomes