Login   Register  
PHP Classes
elePHPant
Icontem

File: ebay_example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Claudio Fior  >  Ebay TurbolisterShipping Service Options  >  ebay_example.php  >  Download  
File: ebay_example.php
Role: Example script
Content type: text/plain
Description: Example of class usage
Class: Ebay TurbolisterShipping Service Options
Encode and decode Ebay Turbolister options data
Author: By
Last change:
Date: 3 years ago
Size: 661 bytes
 

Contents

Class file image Download
<?php
/**
 * Example of encoding an XML file and decoding
 */
$shopserviceoptions ='<ShippingServiceOptions><ShippingServiceOption><ShippingService>10102</ShippingService><ShippingServicePriority>1</ShippingServicePriority><FreeShipping>0</FreeShipping><ShippingServiceCost>5,00</ShippingServiceCost><ShippingServiceAdditionalCost>5,00</ShippingServiceAdditionalCost><ShippingServiceAddSurcharge></ShippingServiceAddSurcharge><ShippingServiceSurchargeVal></ShippingServiceSurchargeVal></ShippingServiceOption></ShippingServiceOptions>';
$ebay = new Ebay();
$code $ebay->encode($shopserviceoptions);
echo 
$code;
$xml $ebay->decode($code);
echo 
$xml;