API3
malonehedges at June 16th, 2016 18:22 — #1
Hello again,
I came across this in the doucmentation:
PUT | contacts/{id}/assign_tag/{tag_id}.format | Add a tag to a contact by name or ID
This seems like an easy way to assign a tag to a user without sending redundant data, but I am unsure what to encrypt for the Auth signature. The documentation states that when a request is either PUT
or POST
, there must be a 5th element to the encrypted signature SHA1 hashed the body of the request. What should go in this?
Thanks in advance.
liam at June 17th, 2016 04:42 — #2
If you want to make a POST / PUT, you need to use whatever POST/PUT body you have to make a hash
If the data is empty, then you will need to hash the empty body.
If you are using JSON for sending the body, then you would need to hash the JSON String: "{}"
.
malonehedges at June 17th, 2016 19:54 — #3
Thanks again for the quick response. Sending that string worked!
Powered by Discourse, best viewed with JavaScript enabled