Membedakan Tweet dan Retweeted

Menggunakan Tweeter API  (https://dev.twitter.com/), bisa mendapatkan data public status (tweet).

Bagaimana membedakan Tweet dengan Retweeted ?

Retweeted mempunyai data/field: “retweeted_status”, sementara tweet tidak.

Contoh data  Retweeted daro Tweeter API:

    “place” : null,
    “contributors” : null,
    “retweeted_status” : {
        “created_at” : “Tue Apr 05 09:27:05 +0000 2016”,
        “id” : NumberLong(717282399114170369),
        “id_str” : “717282399114170369”,
        “text” : “Businessman Yusuf Abdi Aden wins first round of multi billion case against other Bluebird Aviation directors. https://t.co/jz4UBd2oy1”,
        “source” : “<a href=\”http://twitter.com/download/android\” rel=\”nofollow\”>Twitter for Android</a>”,
        “truncated” : false,

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *