Travelport / travelport-uapi-tutorial-php

The travelport-uapi-tutorial-php is a PHP project for Universal API that will help you connect and code a standard workflow including Air, Vehicle, and Hotel.
35 stars 47 forks source link

Hotelbooking how to get media links #44

Open iffy1988 opened 7 years ago

iffy1988 commented 7 years ago

i am trying to get media links for hotels but i am getting nothing in response.

here is request and response

<?xml version="1.0"?>

AV. DOS COMBATENTES here is resopnse AV. DOS COMBATENTES
vivekjyotipramanik commented 7 years ago

Hi iffy1988,

Thank you for your interest in Travelport Universal API. The response you have provided there is a link with the Media Item. Maybe the property you have chosen only have one image item which is showing in the response. Could you please try with a different Hotel Property. Please let me know how it goes. Thanks.

<common_v34_0:MediaItem caption="Virtual Tour" type="RichMedia" url="https://www.vfmii.com/exc/aspquery?command=invoke&amp;ipid=MCLISPT&amp;ids=42337&amp;RM=Y" icon="https://www.vfmii.com//medlib/static_load_images/galileo_richmedia_icon-film.png"/>

Thanks & Regards Vivekjyoti Pramanik

iffy1988 commented 7 years ago

i am getting a number of URLs for images but i think url is not correct, can you please check this response

<?xml version="1.0"?>

-

-

-

-

-

-

AVENIDA CONDE VALBOM
vivekjyotipramanik commented 7 years ago

Hi iffy1988,

Could you please confirm if you mean the URLs are not working for you. We just tried few of the URLs. like https://www.iceportal.com/brochures/Media/Show/photo.aspx?did=8412&brochureid=78299&mtype=11055&publicid=17205574&instanceid=2&resizing=default&height=350&width=350 and it is showing images as expected. Could you please explain the problem you are having. Please let me know how it goes. Thanks.

Thanks & Regards Vivekjyoti Pramanik

iffy1988 commented 7 years ago

it works ,,, thank you for you help

On Thu, Dec 8, 2016 at 10:04 PM, vivekjyotipramanik < notifications@github.com> wrote:

Hi iffy1988,

Could you please confirm if you mean the URLs are not working for you. We just tried few of the URLs. like https://www.iceportal.com/ brochures/Media/Show/photo.aspx?did=8412&brochureid= 78299&mtype=11055&publicid=17205574&instanceid=2& resizing=default&height=350&width=350 and it is showing images as expected. Could you please explain the problem you are having. Please let me know how it goes. Thanks.

Thanks & Regards Vivekjyoti Pramanik

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Travelport/travelport-uapi-tutorial-php/issues/44#issuecomment-265794821, or mute the thread https://github.com/notifications/unsubscribe-auth/AFDf8J3nJd12bn_PcV7SERKeCP4tq4MLks5rGDizgaJpZM4LH_jh .

iffy1988 commented 7 years ago

hi one more thing, can you please send me sample code to display media links in a gallery for hotels . i am trying to display images from the above xml thanks

vivekjyotipramanik commented 7 years ago

Hi iffy1988,

Could you please explain more about the question. Thanks.

Thanks & Regards Vivekjyoti Pramanik

iffy1988 commented 7 years ago

thanks for your response.

i am sending media request for hotels and i in response i am getting xml with image url.. how can i diplay these images in a photo gallery

On Fri, Dec 9, 2016 at 11:19 PM, vivekjyotipramanik < notifications@github.com> wrote:

Hi iffy1988,

Could you please explain more about the question. Thanks.

Thanks & Regards Vivekjyoti Pramanik

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Travelport/travelport-uapi-tutorial-php/issues/44#issuecomment-266083651, or mute the thread https://github.com/notifications/unsubscribe-auth/AFDf8Mgsjdfn5zA47FoipHN34uyVDrg1ks5rGZumgaJpZM4LH_jh .

vivekjyotipramanik commented 7 years ago

Hi iffy1988,

The photogallery depends on the the programming language you are using and is not dependent on the API. It completely depends on the programming language you are using to show the images. The API does not have any inbuilt functionality to show the images in a gallery. Thanks.

Thanks & Regards Vivekjyoti Pramanik

iffy1988 commented 7 years ago

can you please send me code samples for codeignitor/php . ?

On Fri, Dec 9, 2016 at 11:31 PM, vivekjyotipramanik < notifications@github.com> wrote:

Hi iffy1988,

The photogallery depends on the the programming language you are using and is not dependent on the API. It completely depends on the programming language you are using to show the images. The API does not have any inbuilt functionality to show the images in a gallery. Thanks.

Thanks & Regards Vivekjyoti Pramanik

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Travelport/travelport-uapi-tutorial-php/issues/44#issuecomment-266086551, or mute the thread https://github.com/notifications/unsubscribe-auth/AFDf8HYxxx3EJ2kRlc8b_cooF9RqaFUWks5rGZ6EgaJpZM4LH_jh .