Soporte 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 respuestas (en la página 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 encuentras una película o serie? Inicia sesión para crearla:

Global

s centrar la barra de búsqueda
p abrir menú de perfil
esc cierra una ventana abierta
? abrir la ventana de atajos del teclado

En las páginas multimedia

b retrocede (o a padre cuando sea aplicable)
e ir a la página de edición

En las páginas de temporada de televisión

(flecha derecha) ir a la temporada siguiente
(flecha izquierda) ir a la temporada anterior

En las páginas de episodio de televisión

(flecha derecha) ir al episodio siguiente
(flecha izquierda) ir al episodio anterior

En todas las páginas de imágenes

a abrir la ventana de añadir imagen

En todas las páginas de edición

t abrir la sección de traducción
ctrl+ s enviar formulario

En las páginas de debate

n crear nuevo debate
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder al debate
l ir a la última respuesta
ctrl+ enter enviar tu mensaje
(flecha derecha) página siguiente
(flecha izquierda) página anterior

Configuraciones

¿Quieres puntuar o añadir este elemento a una lista?

Iniciar sesión