Skip to content
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

failed to parse Contributor #22

Closed
glasserc opened this issue Feb 20, 2015 · 0 comments
Closed

failed to parse Contributor #22

glasserc opened this issue Feb 20, 2015 · 0 comments

Comments

@glasserc
Copy link
Contributor

I just got a failure to parse, and after making a change as described in #21, I was able to produce the error message:

FromJSONError "couldn't parse contributor from: Number 2.55883322e9"

Trying to find information about this field, I came upon the document Overview: Tweets, which provides the following example:

"contributors":
[
    {
        "id":819797,
        "id_str":"819797",
        "screen_name":"episod"
    }
]

I also found GET status/show/:id, which says:

If there are no contributors for a Tweet, then there will be an
empty or "contributors" : {}. This field will only be populated if
the user has contributors enabled on his or her account — this is
a beta feature that is not yet generally available to all.

This object contains an array of user IDs for users who have
contributed to this status (an example of a status that has been
contributed to is this one). In practice, there is usually only
one ID in this array. The JSON renders as such
"contributors":[8285392].

I tried to get the raw JSON output for the request I'm making, but it's for the retweets_of_me timeline so calling the API "manually" using the API tool that Twitter provides isn't possible.

This feature doesn't seem completely finished yet on Twitter's end, to the point that there are two different API specifications for how the field should look or what it does, and different endpoints seem to behave differently. Does it make sense to remove parsing for this attribute for now, until it's generally available?

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants