home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
General
fanart.tv api v3
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Kode" data-source="post: 1095642" data-attributes="member: 112816"><p>A quick note, if anyone implements this the results returned from the API differ depending on what you send to it:</p><p></p><p>v2 API - Images approved more than 2 weeks</p><p>v3 API - Images approved more than 1 week</p><p>v3 API + Personal API key - Images approved more than around 48 hours</p><p>v3 API + Personal API key + VIP member - Images approved more than around 10 minutes</p><p></p><p>Personal API keys are new, they can be created at <a href="https://fanart.tv/get-an-api-key/" target="_blank">https://fanart.tv/get-an-api-key/</a> but obviously they need developer support to use.</p><p></p><p>VIP member isn't something that gets sent, it will automatically be identified from the Personal API key.</p><p></p><p>The personal key can be sent as a query var or a header (as can the api_key)</p><p></p><p>As a query var the url might look like <a href="https://webservice.fanart.tv/v3/movies/120?api_key=6fa42b0ef3b5f3aab6a7edaa78675ac2&client_key=52c813aa7b8c8b3bb87f4797532a2f8c" target="_blank">https://webservice.fanart.tv/v3/movies/120?api_key=6fa42b0ef3b5f3aab6a7edaa78675ac2&client_key=52c813aa7b8c8b3bb87f4797532a2f8c</a></p><p></p><p>As a header the underscore becomes a hyphen so something like:</p><p></p><p>$ch = curl_init();</p><p>curl_setopt($ch, CURLOPT_URL, '<a href="http://webservice.fanart.tv/v3/movies/17645" target="_blank">http://webservice.fanart.tv/v3/movies/17645</a>');</p><p>curl_setopt($ch, CURLOPT_HTTPHEADER, array('api-key: 6fa22b0ef3b5f3bba6a7edaa76675ac2', 'client-key: 52c813aa7b8c8b3bb87f4797532a2f8c'));</p><p>curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);</p><p>$result = curl_exec($ch);</p><p>curl_close($ch);</p><p>echo $result;</p></blockquote><p></p>
[QUOTE="Kode, post: 1095642, member: 112816"] A quick note, if anyone implements this the results returned from the API differ depending on what you send to it: v2 API - Images approved more than 2 weeks v3 API - Images approved more than 1 week v3 API + Personal API key - Images approved more than around 48 hours v3 API + Personal API key + VIP member - Images approved more than around 10 minutes Personal API keys are new, they can be created at [url]https://fanart.tv/get-an-api-key/[/url] but obviously they need developer support to use. VIP member isn't something that gets sent, it will automatically be identified from the Personal API key. The personal key can be sent as a query var or a header (as can the api_key) As a query var the url might look like [url]https://webservice.fanart.tv/v3/movies/120?api_key=6fa42b0ef3b5f3aab6a7edaa78675ac2&client_key=52c813aa7b8c8b3bb87f4797532a2f8c[/url] As a header the underscore becomes a hyphen so something like: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, '[url]http://webservice.fanart.tv/v3/movies/17645[/url]'); curl_setopt($ch, CURLOPT_HTTPHEADER, array('api-key: 6fa22b0ef3b5f3bba6a7edaa76675ac2', 'client-key: 52c813aa7b8c8b3bb87f4797532a2f8c')); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $result = curl_exec($ch); curl_close($ch); echo $result; [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
General
fanart.tv api v3
Contact us
RSS
Top
Bottom