New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using PATCH to like and unlike an item does not work using Swift #1931
Comments
Still can't get this to work? Has anyone else used chatter api to like/unlike items? Suspect this is some issue with the SDK using PATCH |
@helloniklas Could you try this with the latest from our |
@bhariharan ok, trying that branch. It still doesn't set the like. It's coming back with a response ok all the time, it's just that it never actually liked the post. The total likes is still 0 Here's the outputs.
|
Could you JSON parse |
@bhariharan here's the json coming back, total likes 0, so it's not giving an error. Just not liking it. If I like an item with same user on the web portal it likes it fine.
|
@helloniklas I'm not sure what's going on, but it sounds like unexpected behavior by the API endpoint itself. |
@bhariharan ok, as everything else is working fine for the chatter api, and this is the only one I use using PATCH, I thought it might be some issue with the SDK swift and PATCH. |
So using the current API and v39.0 I'm trying to like and unlike an item with
But it does not work, nothing is being liked or unliked.
I'm able to use POST to like an item correctly. But according to the latest API I should PATCH with isLikedByCurrentUser. If I use post I'm unable to unlike an item with DELETE anyway, so presumable PATCH is the way to go. Not sure if this is related to Swift bridging problems with SendRequest and method?
The text was updated successfully, but these errors were encountered: