ListenNotes

FREEMIUM
Par Listen Notes | Mise ร  jour hace 2 meses | Media
Popularitรฉ

9.2 / 10

Latence

140ms

Niveau de service

100%

Health Check

N/A

Retour ร  toutes les discussions

Problem with batch fetch episodes

Rapid account: Shaandsingh
shaandsingh
hace 5 aรฑos

This endpoint was working, but now Iโ€™m getting: โ€œEndpoint/api/v1/episodes does not existโ€. To fetch one episode, I would execute the following request: request( โ€œhttps://api.listennotes.com/api/v1/episodes/โ€ + episodeID,
method: .get,
headers: [โ€œX-Mashape-Keyโ€ : API_KEY,
โ€œAcceptโ€ : โ€œapplication/jsonโ€])

This works fine. To batch fetch, I execute the following request:

request(โ€œhttps://api.listennotes.com/api/v1/episodesโ€,
method: .post,
parameters: [โ€œidsโ€ : โ€œid1,id2,id3,โ€ฆโ€],
headers: [โ€œX-Mashape-Keyโ€ : API_KEY,
โ€œContent-Typeโ€ : โ€œapplication/x-www-form-urlencodedโ€,
โ€œAcceptโ€ : โ€œapplication/jsonโ€])

I believe this is how it is set up in the documentation. Response is โ€œEndpoint/api/v1/episodes does not existโ€.

Rapid account: Listennotes
listennotes Commented hace 5 aรฑos

I just did some configuration tweaking. POST to api.listennotes.com works.

Could you try POST https://api.listennotes.com/api/v1/episodes/ again?

Rapid account: Listennotes
listennotes Commented hace 5 aรฑos

Ah, url redirect doesnโ€™t work well with POST requests.

Maybe I should change it to GET request, or make sure url redirect could work with POST requests. Let me think about that.

Rapid account: Shaandsingh
shaandsingh Commented hace 5 aรฑos

Using this URL works: https://listennotes.p.mashape.com/api/v1/episodes, so the problem is with api.listennotes.com

Participez ร  la discussion - ajoutez un commentaire ci-dessous:

Connectez-vous / Inscrivez-vous pour publier de nouveaux commentaires