Suport de The Movie Database

Hi I'm trying to work out how to get jQuery JSON response back when you know the person or film id
I was expecting something like the example http://docs.themoviedb.apiary.io/#people

I found a search example for movie name that i'm using as a base but with the following I get an error

status_code 7

status_message "Invalid API key - You must be granted a valid key"

my key is working so i'm missing some thing

I'm also unsure what the "jsonpCallback: 'testing'," is for, in a live query should "Testing" be "live"?

Thanx

`// JavaScript Document
$(document).ready(function() {
    var url = 'http://api.themoviedb.org/3/person/287',

        key = '&api_key=PastedWorkingKey';
        $.ajax({
            type: 'GET',
            url: url + key,
            async: false,
            jsonpCallback: 'testing',
            contentType: 'application/json',
            dataType: 'jsonp',
            success: function(json) {
                console.dir(json);
            },
            error: function(e) {
                console.log(e.message);
            }
    });
});`

2 resposta (a les pàgines 1 de 1)

Jump to last post

I believe it's because you're not formatting your HTTP params properly. Try changing your key var to ?api_key=PastedWorkingKey.

There's an example script I put up here (not your exact use case, but a working jQuery example): http://dev.travisbell.com/play/tmdb.html

Just be sure to change line 11.

Thanx now I feel an idiot!! Query example also big help

No trobeu una pel·lícula o una sèrie? Inicieu la sessió per a crear-la.

Global

s centra la barra de cerca
p obre el menú del perfil
esc tanca una finestra oberta
? obre la finestra de dreceres de teclat

A les pàgines de materials

b torna enrere (o la superior quan sigui aplicable)
e ves a la pàgina d’edició

A les pàgines de temporades

(fletxa dreta) ves a la temporada següent
(fletxa esquerra) ves a la temporada anterior

A les pàgines d'episodis

(fletxa dreta) ves a l'episodi següent
(fletxa esquerra) ves a l'episodi anterior

A totes les pàgines d'imatges

a obre la finestra d'afegir imatges

A totes les pàgines d'edició

t obre el selector de traducció
ctrl+ s envia el formulari

A les pàgines de debat

n crea un debat nou
w canvia l'estat de visualització
p canvia públic/privat
c tanca o obre
a obre activitat
r resposta al debat
l ves a la darrera resposta
ctrl+ enter envieu el vostre missatge
(fletxa dreta) pàgina següent
(fletxa esquerra) pàgina anterior

Configuracions

Desitgeu valorar o afegir aquest element a una llista?

Inicieu la sessió