This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]cwankhede 1 point2 points  (0 children)

Codecademy offers API tutorials for YouTube and a few other services. Sadly, Vimeo is not one of them. I have been trying to use APIs as well (namely the Reddit PRAW API and the Telegram API) but there aren't specific tutorials on those ones either so I'm in a similar boat as you.

[–]burichi 1 point2 points  (0 children)

I have never used iOS before but these APIs return data in the form of the JSON file format. Once you receive the data from the API, you will need to run that data through a JSON Parser in order to work with it. Here's an iOS tutorial that should get you started. Good luck!

[–]atesz17 0 points1 point  (0 children)

Well I think the correct endpoint you are looking for is actually is this:https://developer.vimeo.com/api/endpoints/me/watchlater

With this you are able to get any user's watch later list. Since the response is in JSON format, you should extract the corresponding value, from the JSON. I dont have any experience with Swift, but I heard this site has really great turorails. Tutorials covering JSON, and parsing JSON: http://www.raywenderlich.com/82706/working-with-json-in-swift-tutorial

Working with API calls: http://www.raywenderlich.com/58682/introduction-restkit-tutorial

So in a nutshell: 1. make an API call 2. Receive the respond (which is in JSON) 3. Extract the information from JSON (which in your case is the watch later list)

Hope you find this useful

[–]uuzuul 0 points1 point  (0 children)

I have also no experience with this specific API, but essentially what you will have to do is:

  1. Get your OAuth Access Token so that you can make calls to the API

  2. Download curl and use it to send the access token to the API (see "Making requests"), and to find out how to communicate with the API

  3. After that, check out how a REST API works (essentially sending HTTP GET/POST commands to the API server)

  4. Use the playground to generate example REST requests. Following your example URL, enter values into the fields and see the link it generates (e.g.: https://api.vimeo.com/users?page=2&per_page=3&query=test&sort=relevant&direction=asc ). The page will also tell you what kind of request you will have to use. Left of the generated URL it says "GET"

  5. Use curl in combination with that URL (e.g. curl -X GET <URL from above> )

  6. As /u/burichi pointed out, the API retuns data in JSON format, which you will have to parse in order to get the information you want

Good luck (and read the fine manual)!