Please help me translate this cURL command to my Make module

Hi all,

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.

-Paul

Show us your sendgrid make api call and we should be able to work it out. The make api call is authenticated for you which is good, otherwise you’ll need to set up http and authenticate with a connection and that can be a royal pain.

Can you take a camera-viewfinder-duotone screenshot of your make scenario for me, along with the relevant module configurations and share-all-duotoneshare the images here?

1 Like