createComment return error
FrancescoZ opened this issue · 3 comments
FrancescoZ commented
Checklist
- I've the latest update of Swiftinstagram.
- I've searched for existing GitHub issues.
- I've read the wiki pages.
- I've read the contibution guidelines.
Expected Behavior
Add a comment to a media
Actual Behavior
Return error "Missing "text" attribute"
Steps to Reproduce the Problem
- Login using the API with scope .comment .publicContent
- Call createComment
Specifications
- iOS Version: 11.2
- Device(s): iPhone X
FrancescoZ commented
I added this code every time I do a post request:
private func buildHTTPBody(withPatameters parameters: Parameters? = nil) -> Data? {
var postString = "access_token=" + retrieveAccessToken()!
parameters?.forEach({ (arg) in
let (key, val) = arg
postString.append("&" + key + "=" + String(describing: val))
})
return postString.data(using: .utf8)
}
AnderGoig commented
Hi @FrancescoZ, I'm sorry for the late response.
Huge thanks for letting me know that issue, I've also found more problems in the process of fixing it. I'm releasing a new version ASAP which should fix your problem.
Thanks again! 🤘