I am required by my email provider (I use SendGrid) to upload a CSV file when I want to update my contact database. The SendGrid API requires a two-part process. First, I have to do a standard PUT call to the correct end-point. This returns an upload_uri and two values of header info. So far, so good.
My problem (I am NOT a coder) is that the example for the SECOND call to the API in SendGrid’s API documentation, is in the form of a cURL command. For the life of me, I can’t figure out where in the API module I place the returned data from the first API call.
Here is the cURL command that is needed to upload the file:
curl --upload-file “/Users/file_path” “url returned in response of step 1 call”
-H ‘x-amz-server-side-encryption: aws:kms’
While entering the header info is somewhat obvious, I have zero idea how to use the SendGrid API module (or, for that matter the HTTP module which, I think, is just the SendGrid API module without the authentication aspects “built-in”).
Is it in the “Body” field of the module? Do I have to put the words “upload” and “file” somewhere?
I’ve been banging my head against the table for several weeks on this. Any help appreciated.