{ "opencollection": "1.0.0", "info": { "name": "TVmaze Premium User auth API", "version": "1.0" }, "request": { "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "items": [ { "info": { "name": "auth", "type": "folder" }, "items": [ { "info": { "name": "Poll Whether an Authentication Request Was Confirmed", "type": "http" }, "http": { "method": "POST", "url": "https://api.tvmaze.com/v1/auth/poll", "body": { "type": "json", "data": "{}" } }, "docs": "Using the token acquired in the `start` endpoint, you can start polling this endpoint once every 10 seconds.\n\nWhen the user has confirmed the authentication request on their end, this endpoint will return the user's API key that you can use in subsequent authenticated endpoints. Note that it'll do so only once, subsequent requests after the initial 200 response will return a 404.\n\nFor as long as the user did not yet confirm their authentication request, this endpoint will return a 403.\n" }, { "info": { "name": "Start an Authentication Request", "type": "http" }, "http": { "method": "POST", "url": "https://api.tvmaze.com/v1/auth/start", "body": { "type": "json", "data": "{}" } }, "docs": "If you want to access the TVmaze API on behalf of a user without querying them for their password, use this endpoint.\n\nTo get started, send a POST request containing the user's email address. The response will contain a `token`, which you can use as input to the `poll` endpoint. The user will receive an email prompting them to confirm the authentication request.\n\nAlternatively, if you expect the user to be logged in to TVmaze on the device they are currently interacting with, you can set `email_" }, { "info": { "name": "Validate Your Authentication Credentials", "type": "http" }, "http": { "method": "GET", "url": "https://api.tvmaze.com/v1/auth/validate" }, "docs": "If the credentials supplied as HTTP basic are valid, the user's level of premium - if any - is returned." } ] } ], "bundled": true }