The Movie Database 지원

Hello how do I get lists of movies that people have created? "Seen Movies a list by ghos64" I would like to get the list on the website if possible. Thank you in advance.

Hi jrichardson,

You can currently get list IDs 3 different ways:

First, by searching by name:

http://api.themoviedb.org/3/search/list?api_key=###&query=oscars

Second, from a movie:

http://api.themoviedb.org/3/movie/278/lists?api_key=###

Third, from a authorized account (you need to have created a session id):

http://api.themoviedb.org/3/account/{USER_ID}/lists?api_key=###&session_id=###

Once you have an id, you can then make a call to the list method:

http://api.themoviedb.org/3/list/509ec17b19c2950a0600050d?api_key=###

Cheers.

If I have an array of Dictionaries in my app how do I make a /list to my account? What are the limits on making our own lists?

  • Joey Richardson

Will we get email notification when issue is resolved?

Has bug been fixed? Lighthouse account?

Hey guys,

Lists should be create able again. Can you let me know how you make out?

Will do thank you.

I am trying to get a valid session ID to be able to write a list but the link:

https://api.themoviedb.org/3/authentication/session/new?api_key=XXXXXXXXXXXXXXXXXXXX

is giving me the response:

{"status_code":6,"status_message":"Invalid id: The pre-requisite id is invalid or not found."}

If I do not need a new session ID then the link I am using to create a list:

http://api.themoviedb.org/3/list?api_key=XXXXXXXXXXXXXXXXXXX

Is returning the data:

{"status_code":34,"status_message":"The resource you requested could be found."}

I have tried multiple variations of both links with no success. Thank you in advance I look forward to hearing from you soon.

Depending where you are in the auth process… If you're on step #1 for sessions, you'll want to create a token first by calling:

https://api.themoviedb.org/3/authentication/token/new?api_key=###

Once you have that token verified by a user (steps 2a or 2b) you can then request the session:

https://api.themoviedb.org/3/authentication/session/new?api_key=###&request_token=###

Cheers.

The link:

https://api.themoviedb.org/3/authentication/token/new?api_key=####

returns:

{"success":true,"expires_at":"2014-09-26 19:52:32 UTC","request_token":"21c343a3732a5494faf1b010da42db9625586d99"}

Then the link:

https://api.themoviedb.org/3/authentication/session/new?api_key=####&request_token=21c343a3732a5494faf1b010da42db9625586d99

returns:

{"status_code":17,"status_message":"Session denied."}

I have tried for multiple tokens now and each one gives same message. Thank you in advance I look forward to hearing from you soon.

Yes, you need to complete steps 2a or 2b. You're currently going from step 1 to 3, skipping 2.

Thank you..

Now that I have a valid session_id I am using the link:

http://api.themoviedb.org/3/list?api_key=5ead2d91df5ac13c8c16ce4af41bff6b&session_id=561e17e485cc35676eaf31b9b91862fcfa3ca90c

returns:

{"status_code":5,"status_message":"Invalid parameters: Your request parameters are incorrect."}

I was validating the session id by putting the queries in the web url instead of the swift project I am using. I would make the urls open a new tab and hit enter to get those values. Since I didn't do it within the app could that be causing the problem or just a slight error within the link above?

If you are trying to create a list, make sure you're issuing a POST call. And that the content you're posting contains a name and description. You must post this as a JSON payload.

There are examples in Apiary of what this looks like in Swift.

My code:

    var url : String = "http://api.themoviedb.org/3/list?api_key=XXXXXXXXXXXX&session_id=60f777f1cbdcef6df62cbd38eb8d173df471d740"

    let URL = NSURL(string:url)

    var request = NSMutableURLRequest(URL: URL)

    request.HTTPMethod = "POST"

    request.addValue("application/json", forHTTPHeaderField: "Accept")
    request.addValue("application/json", forHTTPHeaderField: "Content-Type")

    request.HTTPBody = "{\"name\": \"Joey Joe Joe\",\"description\": \"This list was created to share all of the totally awesome movies I've seen.\"}".dataUsingEncoding(NSUTF8StringEncoding);

    var session = NSURLSession.sharedSession()
    var task = session.dataTaskWithRequest(request)
    {
        (data: NSData!, response: NSURLResponse!, error: NSError!) in

        if (error != nil)
        {
            println(error)
            // Handle error...
            return
        }

        println(error)
        println(response)
        println(NSString(data: data, encoding: NSUTF8StringEncoding))
    }

    task.resume()

prints out:

{"status_code":5,"status_message":"Invalid parameters: Your request parameters are incorrect."}

I'm not sure, something seems to not be getting parsed out as valid JSON (name or description) presumably, by Swift.

This cURL request is working properly (I just tested it):

curl -H "Accept: application/json" -H "Content-Type: application/json" -d \
"{\"name\": \"My Awesome List Test\", \"description\": \"Cool List\!\"}" "http://api.themoviedb.org/3/list?api_key=###&session_id=###"

So my Swift code does not look incorrect at all? Could it be my request or still a bug?

찾으시는 영화나 TV 프로그램이 없나요? 로그인 하셔서 직접 만들어주세요.

전체

s 검색 바 띄우기
p 프로필 메뉴 열기
esc 열린 창 닫기
? 키보드 단축키 창 열기

미디어 페이지

b 돌아가기
e 편집 페이지로 이동

TV 시즌 페이지

(우 화살표) 다음 시즌으로 가기
(좌 화살표) 이전 시즌으로 가기

TV 에피소드 페이지

(우 화살표) 다음 에피소드로 가기
(좌 화살표) 이전 에피소드로 가기

모든 이미지 페이지

a 이미지 추가 창 열기

모든 편집 페이지

t 번역 선택 열기
ctrl+ s 항목 저장

토론 페이지

n 새 토론 만들기
w 보기 상태
p 공개/비공개 전환
c 열기/닫기 전환
a 활동 열기
r 댓글에 글쓰기
l 마지막 댓글로 가기
ctrl+ enter 회원님의 메세지 제출
(우 화살표) 다음 페이지
(좌 화살표) 이전 페이지

설정

Want to rate or add this item to a list?

로그인