Skip to content

Instantly share code, notes, and snippets.

@mveytsman
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mveytsman/5e25443b939667860338 to your computer and use it in GitHub Desktop.
Save mveytsman/5e25443b939667860338 to your computer and use it in GitHub Desktop.

@corbanbrook can you give an example of this for twitter? I.e. here's a sample json blob i got with http://localhost:5331/twitter/search?q=soundcloud

{
   "hash_id":"d518910ce01b105fb4007b1dfb254b61",
   "short_url":"",
   "legacy":{
      "asset_type":"",
      "asset_label":"",
      "media_url":"",
      "width":0,
      "height":0,
      "format":""
   },
   "type":"post",
   "source":{
      "network":"twitter",
      "uid":"555137171384832001",
      "url":"https://twitter.com/axiomthewize/status/555137171384832001",
      "published_at":"2015-01-13T22:59:50Z",
      "num_shares":0,
      "num_likes":0
   },
   "author":{
      "uid":"1465045170",
      "username":"axiomthewize",
      "name":"Axiom",
      "profile_url":"https://twitter.com/axiomthewize",
      "avatar_url":"http://pbs.twimg.com/profile_images/471474421819912194/YUhEDIeN.jpeg",
      "num_followers":228,
      "num_following":367
   },
   "title":"",
   "description":"Latest track!!!! <a href=\"https://t.co/qxjFRkBx48\" target=\"_blank\">https://t.co/qxjFRkBx48</a>",
   "body":"Latest track!!!!<br/> <a href=\"https://t.co/qxjFRkBx48\" target=\"_blank\">https://t.co/qxjFRkBx48</a>",
   "title_image":{
      "url":"http://i1.sndcdn.com/artworks-000103231943-ywbo4m-t500x500.jpg",
      "width":500,
      "height":500,
      "format":"jpeg"
   },
   "etc":null,
   "oembed":null,
   "media":null,
   "children":[
      {
         "hash_id":"7349f5e63ac638f1f3c89411d99a9440",
         "short_url":"",
         "legacy":{
            "asset_type":"",
            "asset_label":"",
            "media_url":"",
            "width":0,
            "height":0,
            "format":""
         },
         "type":"audio",
         "source":{
            "network":"soundcloud",
            "uid":"url:c9823c9706ad2cb4c6167b57e26c1ee9",
            "url":"https://soundcloud.com/axiom_tha_wyze/fragile-remix-ft-zero-natalie-streight-axiom-tha-wyze",
            "num_shares":0,
            "num_likes":0
         },
         "author":{
            "name":"Axiom_Tha_Wyze",
            "profile_url":"http://soundcloud.com/axiom_tha_wyze"
         },
         "title":"Fragile (Remix) ft. Zero, Natalie Streight, Axiom Tha Wyze by Axiom_Tha_Wyze",
         "description":"Listen to Fragile (Remix) ft. Zero, Natalie Streight, Axiom Tha Wyze by Axiom_Tha_Wyze #np on #SoundCloud",
         "body":"Listen to Fragile (Remix) ft. Zero, Natalie Streight, Axiom Tha Wyze by Axiom_Tha_Wyze #np on #SoundCloud",
         "title_image":{
            "url":"http://i1.sndcdn.com/artworks-000103231943-ywbo4m-t500x500.jpg",
            "width":500,
            "height":500,
            "format":"jpeg"
         },
         "etc":null,
         "oembed":{
            "html":"<iframe class=\"embedly-embed\" src=\"//cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Fvisual%3Dtrue%26url%3Dhttp%253A%252F%252Fapi.soundcloud.com%252Ftracks%252F185875555%26show_artwork%3Dtrue&url=https%3A%2F%2Fsoundcloud.com%2Faxiom_tha_wyze%2Ffragile-remix-ft-zero-natalie-streight-axiom-tha-wyze&image=http%3A%2F%2Fi1.sndcdn.com%2Fartworks-000103231943-ywbo4m-t500x500.jpg&key=d3a87e67b3374c3ab9ccd354ba3aa677&type=text%2Fhtml&schema=soundcloud\" width=\"500\" height=\"500\" scrolling=\"no\" frameborder=\"0\" allowfullscreen></iframe>",
            "width":500,
            "height":500
         },
         "media":[
            {
               "type":"image",
               "url":"http://i1.sndcdn.com/artworks-000103231943-ywbo4m-t500x500.jpg",
               "width":500,
               "height":500,
               "format":"jpeg"
            }
         ],
         "children":null
      }
   ],
   "meta":{
      "published":false,
      "draft":false
   }
}

The type is audio and the network is soundcloud...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment