jublo / codebird-js

A Twitter library in JavaScript.
https://www.jublo.net/projects/codebird/js
GNU General Public License v3.0
384 stars 97 forks source link

Not all Rest Commands implemented? #35

Closed fxtrade closed 11 years ago

fxtrade commented 11 years ago

Hello and thank you for your work.

Trying to favorite a post does NOT work:

cb.__call("favorites_create", { "id": "362614359207329800" }, function (reply) { console.log('Favorite response') console.log(reply); });

Returns error message: https://api.jublo.net/codebird/1.1/favorites/create.json Object {errors: Array[1], httpstatus: 404} errors: Array[1] 0: Object code: 34 message: "Sorry, that page does not exist" proto: Object length: 1 proto: Array[0] httpstatus: 404

Am I missing something? or you will implement this later? Thanks and regards,

Walter

ZweiSteinSoft commented 11 years ago

You have found a bug in the Twitter API! I have forwarded your report to the API team and am waiting for their response.

https://dev.twitter.com/issues/1212

ZweiSteinSoft commented 11 years ago

This is not an API bug. You got HTTP 404 back not because the API method does not exist, but because the tweet that you are trying to favorite does not exist (anymore). It was probably deleted by the author.

fxtrade commented 11 years ago

A few tests show something different: API Doc is wrong. Twetter API doc asks to use ID, but it works with id_str... for the same tweet.

Anyway, thanks for your prompt answer and your time. Great library.

Walter

------ Original Message ------ From: "J.M." notifications@github.com To: "mynetx/codebird-js" codebird-js@noreply.github.com Cc: "fxtrade" walter@fxinter.net Sent: 8/1/2013 5:49:51 AM Subject: Re: [codebird-js] Not all Rest Commands implemented? (#35)

This is not an API bug. You got HTTP 404 back not because the API method does not exist, but because the tweet that you are trying to favorite does not exist (anymore). It was probably deleted by the author.

— Reply to this email directly or view it on GitHub.

ZweiSteinSoft commented 11 years ago

This is due to the high ids produced by Snowflake.