0

I'm building an app for a client who hosts private videos on Vimeo. The app needs to be able to do nothing more than play a specific video based on the Video ID.

I really don't want a full blown OAuth library bloating the app, but I simply can't figure out how to structure an HTTP(S) request to get video info (which will hopefully include a path to the MP4).

I've got the endpoint as

GET
https://api.vimeo.com/videos/:videoID

and I've got the Auth Header that Vimeo provides for my registered app.

Authorization: Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

But unfortunately I'm getting a 401 from fiddler when I try to hit it.

How do I request a video without a full blown OAuth implementation when the video is listed as Private?

At the end of the day, all I really need is the path to the MP4 so that I can stream it to the device's native media player (using an intent).

Chase Florell
  • 46,378
  • 57
  • 186
  • 376
  • Did it work for you http://stackoverflow.com/questions/35520783/vimeo-video-play-in-android-native/35543970#35543970 – Rao's Feb 22 '16 at 17:45

1 Answers1

0

That basic auth header only works for the oauth endpoints. If you want to make an API request you need to use the authenticated authorization header from your app page, or generate a new token

Dashron
  • 3,968
  • 2
  • 14
  • 21
  • Right, but when I use the same URL but add the `Bearer` header that's provided to me, I get a `406` exception. – Chase Florell Apr 24 '14 at 16:04
  • Are you providing any additional headers? That error (http://httpstatus.es/406) means that you are requesting a response format that we do not support. Check your accept header. – Dashron Apr 24 '14 at 17:29
  • 1
    Ah, that was it (and wasn't clear anywhere that I could find). `Accept: application/vnd.vimeo.*+json;version=3.0` – Chase Florell Apr 25 '14 at 14:56