Hi guys,
I'm finally taking the plunge and trying to learn the user API. I've been through the documentation and tried out some of the API calls. I just have one question... How do I obtain the authorisation code?
In the curl commands returned by the documentation page, there a bit that says, "--header 'Authorization: Basic", followed by a long string of letters and numbers, which I'm assuming is the authorisation code returned by sending your user name and API key to the appropriate URL. I'm trying to figure out how to get that code from within my app.
I've tried sending my user name and password using the curl --user lycanthrope7:myAPIkey to the url http://api.tvmaze.com/ as well as http://api.tvmaze.com/v1/user/ but I just got back "{"name":"Not Found","message":"Page not found.","code":0,"status":404,"previous":{"name":"Invalid Route","message":"Unable to resolve the request \"v1/user/\".","code":0}}"
I must be doing something wrong, but there's not enough info in the documentation for me to figure it out. Please help!
Technical info: I'm using a FileMaker Pro database to retrieve info about shows that I watch and keep track of episodes I've downloaded, watched etc. It does a bunch of other stuff too, but that's irrelevant. For information about how FileMaker retrieves info from API's go here. For info about the curl options it supports, go here.