Curl works, attempting it programmatical. thoughts?
using this (not as is, $parameters are filled in as it runs:
c:\day1\i386\curl.exe -i -F format=$format -F file=@$file -F access_token=$token $hostw/bulk/v1/leads.json -F listId=$list
I am able to upload lead data into Marketo via the CURL command above The $variables are populated during execution. Works fine.
below is WHAT i think it should be for powershell to upload the same file, or close to this.
Invoke-RestMethod -Uri "$hostw/bulk/v1/leads.json?access_token=$token" -Method Post -InFile $file -ContentType 'multipart/form-data'
is that even possible to reproduce ?