Either via its own api or via the twitter api?
There are a couple of apps: http://www.vineroulette.com/ and http://vinepeek.com/ has anyone got an idea of how they get the vine feeds?
Well, not for the moment according to some requests inside the twitter support: https://dev.twitter.com/discussions/14721
The only things I can find right now is the card used inside a tweet. For example: http://vine.co/v/bwBYItOUKrw/card
I took some times so see what kind of request does Vine on iOS, using Charles.
First, I checked Tweetbot to see how it retrieve the Vine preview image for its feed. A simple GET
on the Vine video to retrieve header metas and get the preview:
<meta property="twitter:image" content="https://vines.s3.amazonaws.com/thumbs/8800194F-D323-40F2-8AD2-7C19EA2505A3-3974-000000D33D0303AB_1.0.6.mp4.jpg?versionId=PZAXllJkKvo4FGk47Mb4JfM7yADdF5eC">
Which is:
In same meta, you can retrieve the video stream:
<meta property="twitter:player:stream" content="https://vines.s3.amazonaws.com/videos/8800194F-D323-40F2-8AD2-7C19EA2505A3-3974-000000D33D0303AB_1.0.6.mp4?versionId=gqt.N2z3cdss2nzFam5zam4QR9sje_vC">
Then I opened Vine app. And it makes a request to https://api.vineapp.com/
. Since everything is send though https
, I can only see the request / response encrypted.
With the api url, I searched on Google and find interesting stuff ! One guy dig better inside Vine request by acting as a man in a middle to see the real request url. There are 3 articles. At the end, the guy successfully posted a video on Vine using its own client.
After that, I checked on Github and found one non-official Vine API using Python. People seems to use the work from the previous guy to determine API full url.
And here is a built-in interface in PHP of this non-official API.
I think you have enough stuff to start your own VineRoulette :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With