Utelly

FREEMIUM
Verified
Par utelly | Mise à jour il y a 10 mois | Entertainment
Popularité

9.7 / 10

Latence

517ms

Niveau de service

100%

Retour à toutes les discussions

API Info Export Not Showing Urls

avatar
rbrooks--vRi4boQp
il y a 9 mois

Reaching out because we’ve run into an issue with one of the api’s and need your assistance.

Based on the the description and code for Utelly, if a request is made to get the information for a piece of content, one of piece of information it is suppose to provide is to display the links where someone can find that content.

Based on the tests, it does do this as part of the end results , however, on the front user end of the information, these links are not displayed. Instead, it only shows the name and image of the show

Is this intentional, or is there something we are doing wrong?

If it intentional, can you advise how we can get access to test the api to ensure it is working correctly? If it was an error that we are doing, can you advise on what we need to do to correct this?

avatar
utelly commented il y a 7 mois

Hi,

Sorry for the slow reply, didn’t receive a notification.

For the links you should be looking on the following path:

collections.collection.locations.location.url

What is maybe confusing things is that in our terminology “locations” === “services”.

You can see that the locations array contains all the places you can watch the content with links.

Does this make sense?

Ben

avatar
rbrooks--vRi4boQp commented il y a 8 mois

Hello, following up to see if you have any feedback on this?

avatar
rbrooks--vRi4boQp commented il y a 8 mois

Ok sounds good. We still couldn’t get it to work.

Please see code and attachments

<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => “https://utelly-tv-shows-and-movies-availability-v1.p.rapidapi.com/lookup?term=bojack&country=uk”,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_ENCODING => “”,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => “GET”,
CURLOPT_HTTPHEADER => [
“X-RapidAPI-Host: utelly-tv-shows-and-movies-availability-v1.p.rapidapi.com”,
“X-RapidAPI-Key: 5cb1326abdmsh7d996eec570ab3ap1911e5jsn4ff7147ea9f2”
],
]);

response=curlexec(response = curl_exec(curl);
err=curlerror(err = curl_error(curl);

curl_close($curl);

if ($err) {
echo “cURL Error #:” . $err;
} else {
echo $response;
}
Test Endpoint:

Body

{5 items
"variant":“rapidapi_basic”
“results”:[1 item
0:{…}7 items
]
“updated”:"2022-04-21T05:09:14+0100"
“term”:“bojack”
“status_code”:200
}
Header

{
“access-control-allow-credentials”: “true”,
“access-control-allow-origin”: “*”,
“cache-control”: “max-age=3600”,
“connection”: “keep-alive”,
“content-type”: “application/json”,
“date”: “Thu, 21 Apr 2022 08:42:51 GMT”,
“expires”: “Thu, 21 Apr 2022 09:42:51 GMT”,
“server”: “RapidAPI-1.2.8”,
“transfer-encoding”: “chunked”,
“vary”: “Accept-Encoding”,
“via”: “1.1 c49128c626a54e52d9677041ba76a534.cloudfront.net (CloudFront), 1.1 17fb84bf4d70f7e6db47eb138f34fc8a.cloudfront.net (CloudFront)”,
“x-amz-apigw-id”: “Q7DZwHvpjoEFVzw=”,
“x-amz-cf-id”: “7J91h8SbnBTidMP4yR3Qs4JhhyQbTKX68cFuO8fjBtqLQd7ewGBtpw==”,
“x-amz-cf-pop”: “SIN52-C2, SIN2-C1”,
“x-amzn-remapped-content-length”: “1043”,
“x-amzn-requestid”: “a81e3b83-e26a-4893-a3c0-642c1b8f31e1”,
“x-amzn-trace-id”: “Root=1-6261190b-5bbd640c7a592fc80d257e25;Sampled=0”,
“x-cache”: “Miss from cloudfront”,
“x-phoenix-time”: “0.24624395370483398”,
“x-rapidapi-region”: “AWS - ap-southeast-1”,
“x-rapidapi-version”: “1.2.8”,
“x-ratelimit-requests-limit”: “1000”,
“x-ratelimit-requests-remaining”: “994”,
“x-ratelimit-requests-reset”: “992293”
}

Here’s the other code:

idlook up:
Code Snipate

<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => “https://utelly-tv-shows-and-movies-availability-v1.p.rapidapi.com/idlookup?source_id=tt3398228&source=imdb&country=us”,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_ENCODING => “”,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => “GET”,
CURLOPT_HTTPHEADER => [
“X-RapidAPI-Host: utelly-tv-shows-and-movies-availability-v1.p.rapidapi.com”,
“X-RapidAPI-Key: 5cb1326abdmsh7d996eec570ab3ap1911e5jsn4ff7147ea9f2”
],
]);

response=curlexec(response = curl_exec(curl);
err=curlerror(err = curl_error(curl);

curl_close($curl);

if ($err) {
echo “cURL Error #:” . $err;
} else {
echo $response;
}

Test Endpoint: Result

{5 items
"variant":“rapidapi_basic”
“id”:“tt3398228"
“collection”:{6 items
"locations”:[…]1 item
"source_ids":{…}1 item
"id":“5d914028302b840050acbe62"
“weight”:5635
"picture”:“https://utellyassets9-4.imgix.net/api/Images/4e4d50a0040fd4500193202edbafce6a/Redirect?fit=crop&auto=compress&crop=faces,top
“name”:“BoJack Horseman”
}
“status_code”:200
"type":“imdb”
}

{5 items
"collection":{7 items
"id":“5d914028302b840050acbe62"
“locations”:[…]1 item
"name”:“BoJack Horseman”
“picture”:“https://utellyassets9-1.imgix.net/api/Images/4e4d50a0040fd4500193202edbafce6a/Redirect
“provider”:“iva”
“source_ids”:{…}1 item
"weight":9919
}
“id”:“tt3398228"
“status_code”:200
"type”:“imdb”
“variant”:“ivafull”
}

avatar
utelly commented il y a 9 mois

Sounds like an issue with your Front End integration. The content contained in the response, including links, should not be any different between the tests you are running programmatically and those returned to the client application.

If you are still having issues pls share some example requests and I can try to help.

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

Connectez-vous / Inscrivez-vous pour publier de nouveaux commentaires
Note : 3.8 - Votes : 4