Closed tooms closed 8 years ago
I have solved the issue.
System.IO.StreamWriter does not write bytes, and therefor cannot be used.
Instead I used a BinaryWriter
Using writer As BinaryWriter = New BinaryWriter(request.GetRequestStream())
writer.Write(byteArray)
writer.Close()
End Using
I am disappointed there has been no response to this, and disappointed the provided code is not correct.
Hi Tooms,
Nice work solving the issue.
The provided code is automatically generated by Apiary and since we don't understand all of those programming languages we aren't able to manually debug them all. We provide them as a convenience for our clients but obviously having your program work is your responsibility. Our API works as it is documented.
Chris Sharkey.
I'm using the sample Visual Basic code for adding/updating a contact in Autopilot.
My function is as follows (API Key Removed).
The message returned is:
and I'm a bit stuck on where to go from here.
As an aside, the same VB code provided is incorrect, and I have had to make adjustments as below to get this far.
I can manually enter the JSON produced by this function into the Console on the documentation website and the method works, that Json sting is:
{ "contact": { "FirstName": "Michael", "LastName": "Field", "Email": "michael-field@live.co.uk","custom": {"string--Conv_call_notes": "TEST"}}}