c# - Get status ID's using Twitterizer2 -
i writing application posting tweets twitter timeline using twitterizer.
however have option delete multiple tweets.
i have managed delete individual tweets manually retrieving statusid's of site hard coding them method, shown below.
int statusid = 12345; //retrieved individual tweet online twitterresponse<twitterstatus> tweetresponse = twitterstatus.delete(tokens, statusid); if (tweetresponse.result == requestresult.success) { messagebox.show(tweetresponse.result.tostring()); } is possible retrive list of statusid's method loop on , each exisiting id, delete comment?
also, possible add geo coordinates when updating status using twitterizer?
i have code allows loop through id's. in case using twitterfriendship class, should same using other tweet classes:
friendcol = twitterfriendship.friendsids(tokens, options); cursor = friendcol.responseobject.nextcursor; foreach (int usuario in friendcol.responseobject) { usuarios newuser = new usuarios(); newuser.userid = usuario; followinglist.add(newuser); } (int = 0; < followinglist.count -1; i++) { //delete userid twitterresponse<twitteruser> ans= twitterfriendship.delete(tokens, followinglist[i].userid); } try this, tweets in timeline , delete them using id;
edit:
twitterstatuscollection stacol = twittertimeline.usertimeline(tokens).responseobject; foreach (twitterstatus status in stacol) { status.delete(tokens); } note: twitterstatus class has id , stringid properties
Comments
Post a Comment