Skip to content
This repository has been archived by the owner on Oct 14, 2018. It is now read-only.

createComment return error #20

Closed
4 tasks done
FrancescoZ opened this issue Dec 25, 2017 · 3 comments
Closed
4 tasks done

createComment return error #20

FrancescoZ opened this issue Dec 25, 2017 · 3 comments

Comments

@FrancescoZ
Copy link

Checklist

Expected Behavior

Add a comment to a media

Actual Behavior

Return error "Missing "text" attribute"

Steps to Reproduce the Problem

  1. Login using the API with scope .comment .publicContent
  2. Call createComment

Specifications

  • iOS Version: 11.2
  • Device(s): iPhone X
@FrancescoZ
Copy link
Author

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
Copy link
Owner

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! 🤘

@AnderGoig
Copy link
Owner

Fixed in v1.1.0 👈

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants