Tweet.In_reply_to_status_id type is string and should be int64. #1

Merged
merged 1 commit into from Apr 14, 2012

2 participants

@saulhoward

This is defined in twittertypes.go

Other 'id' types are int64, so maybe this is an oversight?

This caused the error 'json: cannot unmarshal number into Go value of type string' when unmarshalling JSON returned by the Twitter REST API. The error was fixed by changing the type.

BTW, twitter also returns a 'in_reply_to_status_id_str' value if a string is needed, although this value is not set in this file.

@saulhoward saulhoward Tweet.In_reply_to_status_id type is string and should be int64.
This is defined in twittertypes.go

Other 'id' types are int64, so maybe this is an oversight?

This caused the error 'json: cannot unmarshal number into Go value of type string' when unmarshalling JSON returned by the Twitter REST API. The error was fixed by changing the type.

BTW, twitter also returns a 'in_reply_to_status_id_str' value if a string is needed, although this value is not set in this file.
aff87d3
@araddon araddon merged commit 3093966 into araddon:master Apr 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment