API3
lusaxxx at July 19th, 2016 05:12 — #1
Hi guys,
I have issue with Java client and client creation via API.
If i use special chars in fields (ľščťžýáíé...) API send response :
Body: {"status":400,"message":"Invalid auth token","error_name":"invalid_auth_token","error_message":"Authorization token is invalid","errors":{}}
If i removed those chars and use same fields, same method same code API create user without an issue and i got valid response.
P.S. hashes and all other fields in header are filled based on Java Client example.
Thanks for any suggestions
liam at July 19th, 2016 06:38 — #2
Hi lusaxxx,
I just tested creating a contact with the sample characters ľščťžýáíé
in their name, and it worked just fine. I did this via a JSON POST body, rather than passing the data as url parameters (as url parameters are escaped with percent symbols and limited to the ascii set). This could easily break your signature.
Please try sending the data via JSON. If you are already doing this, then something else may be wrong. If possible, could you send me on your code. Please make sure to strip out any confidential information. If you would rather not post it publicly, you can send it to me directly at liam@onepagecrm.com.
lusaxxx at July 19th, 2016 07:17 — #3
you are right...not only special chars contacts are not created....next communication via mail as you wrote.
P.S. If we found solution (for some kind of general type of error - not typings or so:) ) which can help to others i'll share
Powered by Discourse, best viewed with JavaScript enabled