|
-
Jun 13th, 2017, 12:23 PM
#1
Thread Starter
Member
Help using JSON API that requires Authentication with JWT token
A program I wrote years ago used theTVdb.com XML API to collect data of TV show episodes. They recently updated the API to JSON and will discontinue the XML API soon. I need to convert the program to use the new API, but I can’t figure out how to get anything to work. The old API required an API key which was passed directly in the WebRequest. The new API requires this same API key along with a userkey and username to be sent for authentication which returns a JWT token which needs to be used for all other requests. The GET requests return the response JSON data and HTTP status code. There is a test API website at https://api.thetvdb.com/swagger which I can work with, but I can’t figure out how to make requests in my program.
I have left many messages on TheTVdb forums, but I never get any responses there. Hopefully someone here can get me started since I don’t know where to begin. If I can have someone walk me through to the point where I can login and get a valid token I should be able move forward from there.
Authentication:
https://api.thetvdb.com/login
Schema:
{
"apikey":"XXXXXXXXXXXXXXXX",
"username":" XXXXXXXXXXXXXXXX ",
"userkey":" XXXXXXXXXXXXXXXX "
}
Thanks,
Jim
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|