{"error":"invalid app", "vcode":8004}

54 views
Skip to first unread message

Michael Ernst

unread,
Jan 3, 2017, 5:07:31 PM1/3/17
to viki-p...@googlegroups.com
Hi there,
I am currently implementing a small client in golang for viki. So I created a minimum client that is so far only doing the signing part. I used the example provided in the api documentation to test my code:

crypto = require('crypto');
hmac = crypto.createHmac('sha1', 'orange');
hmac.update('/v4/movies.json?sort=views&app=9001&t=1356482778');
sig = hmac.digest('hex');


Using the same values for app, timestamp and provided signature in the example, I get exactly the same output as seen in the example.

Now I substituted it with my real app id and secret and when I send the request to the movies endpoint I just get back the json: 

{"error":"invalid app", "vcode":8004}

I am not sure what I am doing wrong? Does the app need any kind of approval from someone first? Or do I need to wait before I can use it? 

I would appreciate any kind of help! 
Thanks, 
Michael

Michael Ernst

unread,
Jan 3, 2017, 5:42:54 PM1/3/17
to Viki Platform
So I just created a new app with another account and then used the new credentials and then everything worked perfectly well. So there must be something wrong with the other account? Well I can just use that app as for now, I am still curious why it wouldn't work with the other app id that I use to play viki content. 
Reply all
Reply to author
Forward
0 new messages