I am getting this error while trying to create a new account:
Array ( [url] => https://secure.eloqua.com/API/rest/2.0//data/account [content_type] => application/json [http_code] => 401 [header_size] => 263 [request_size] => 502 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 0.442929 [namelookup_time] => 0.001292 [connect_time] => 0.095684 [pretransfer_time] => 0.301428 [size_upload] => 291 [size_download] => 0 [speed_download] => 0 [speed_upload] => 656 [download_content_length] => 0 [upload_content_length] => 291 [starttransfer_time] => 0.442885 [redirect_time] => 0 [certinfo] => Array ( ) [redirect_url] => ) Import data response: Import desponse:
The Account object looks like this:
Account Object ( [name] => CreationJunkies [address1] => [address2] => [address3] => [businessPhone] => [city] => [country] => [postalCode] => [province] => [fieldValues] => Array ( [0] => fieldValues Object ( [type] => FieldValue [id] => 100085 [value] => CreationJunkies ) [1] => fieldValues Object ( [type] => FieldValue [id] => 100089 [value] => Old Palasia ) [2] => fieldValues Object ( [type] => FieldValue [id] => 100100 [value] => 00340077302P7HafK ) ) )
I have checked the login creds and everything is good; but this [http_code] is showing 401 error (Unauthorized)
Any help is highly appreciated!