Jump to content

vaCentral Rank on Site


MrAmsterdam

Recommended Posts

  • Administrators

Yes, I just added an XML feed, and to access it, get your VA central page, and add /xml to the end of the URL:

IE:

http://www.vacentral.net/airline/cva_canadianvirtualairlines/xml

Then you can call it in phpVMS:

<?php
$cws = new CodonWebService();
$xml = $cws->get('YOUR VACENTRAL XML URL');
$xml = simplexml_load_string($xml);

echo "Our airline's rank is {$xml->rank}";
?>

Moving this to code snippets...

  • Like 1
Link to comment
Share on other sites

Yes, I just added an XML feed, and to access it, get your VA central page, and add /xml to the end of the URL:

IE:

http://www.vacentral.net/airline/cva_canadianvirtualairlines/xml

Then you can call it in phpVMS:

<?php
$cws = new CodonWebService();
$xml = $cws->get('YOUR VACENTRAL XML URL');
$xml = simplexml_load_string($xml);

echo "Our airline's rank is {$xml->rank}";
?>

Moving this to code snippets...

wow... thanks!

Link to comment
Share on other sites

  • 4 weeks later...

Yes, I just added an XML feed, and to access it, get your VA central page, and add /xml to the end of the URL:

IE:

http://www.vacentral.net/airline/cva_canadianvirtualairlines/xml

Then you can call it in phpVMS:

<?php
$cws = new CodonWebService();
$xml = $cws->get('YOUR VACENTRAL XML URL');
$xml = simplexml_load_string($xml);

echo "Our airline's rank is {$xml->rank}";
?>

Moving this to code snippets...

where should I post this code to make it show up on site?

Best Regards

Thomas

Link to comment
Share on other sites

  • 3 weeks later...
  • 4 months later...
  • 2 months later...

I am a bit confused. How do you add a xml feed to you site? Silly question I am sure but it has been a while since I have done much it he way of coding. Well a few months anyways :lol:

Thanks

Lloyd

Got it fixed duh so simple

Thanks

Edited by llju1
Link to comment
Share on other sites

  • 6 months later...
  • 6 months later...

Yes, I just added an XML feed, and to access it, get your VA central page, and add /xml to the end of the URL:

IE:

http://www.vacentral.net/airline/cva_canadianvirtualairlines/xml

Then you can call it in phpVMS:

<?php
$cws = new CodonWebService();
$xml = $cws->get('YOUR VACENTRAL XML URL');
$xml = simplexml_load_string($xml);

echo "Our airline's rank is {$xml->rank}";
?>

Moving this to code snippets...

Where do I put the XML code at the end of the URL on VA Central ? if so I did this and it didn't work

Link to comment
Share on other sites

  • 7 months later...
  • 5 weeks later...
  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...