Hi guys,
I am the beginner of using bulk API, trying make a simple test to extract data from Eloqua
I install the Curl and write same code as shown in official PDF to create an Export (POST), it always said "serialization error"; but when I try to use any GET API, such as /accounts/fields, it could return the JSON or CSV results successfully
I suspect there may be something wrong in my JSON passed into POST method, however the strange thing is, when I copy the JSON string and paste it into Postman (Chrome plug-in used to test REST API), Export created without any problem
Could any body help me find out what wrong is in my code? I am sure that all the fields below are correct
curl -v --header "Authorization: Basic [My security token] --header "Accept: application/json" --header "Content-Type:application/json" https://secure.eloqua.com/API/Bulk/2.0/accounts/exports -d '{"name":"BearTest","fields":{"M_CompanyName":"{{Account.Field(M_CompanyName)}}","M_Country":"{{Account.Field(M_Country)}}","M_City":"{{Account.Field(M_City)}}"}}'
Thanks~