Pilfer / PyVine

A simple Vine library written in Python using Requests.
1 stars 0 forks source link

posting succeed,but it cannot be shown. #1

Open Kein-Sung opened 10 years ago

Kein-Sung commented 10 years ago

Hi Pilfer, I'm Kein.

I was wrote the code like this

1 from vine import Vine 2 3 vine = Vine(); 4 if vine.login("MYID","PASSWD")==True: 5 6 cid = vine.genCID() 7 8 videourl = vine.uploadVideo("IMG_0949.mp4",cid); 9 10 thumburl = vine.uploadVideoThumb("IMG_0451.jpg",cid); 11 12 payload = { 13 "videoUrl" : videourl, 14 "thumbnailUrl" : thumburl, 15 "description" : "test pyVine", 16 "entities" : [], 17 } 18 ret = vine.configureVine(payload) 19 print "result : %d" %ret 20 else:
21 print "Failed"

and the response is here:

{u'code': u'', u'data': {u'postId': 1094227719635734528, u'created': u'2014-06-27T08:40:32.000000'}, u'success': True, u'error': u''}

but it cannot be shown. Am I missed something?

Please help me.

Best, Kein

Pilfer commented 10 years ago

Sorry for the delayed response. Chances are your video is not encoded correctly, or you're not posting "prettified" JSON - take a look at PHPVine (another repo of mine) for an example.