George Botley Posted May 31, 2009 Share Posted May 31, 2009 It may sound a stupid question but I have no knowledge of API's using PHP. Could you guys perhaps explain to me how to do it? Sorry in advance. Basically the script is to implement Parcel2go.com into an E-commerce solution so stores can hire shipment in one click. They have provided the API but its not implemented into PHP. Quote Link to comment https://forums.phpfreaks.com/topic/160345-php-api/ Share on other sites More sharing options...
gergy008 Posted May 31, 2009 Share Posted May 31, 2009 You can always use dreamweaver, I'm sure that would work :/ Quote Link to comment https://forums.phpfreaks.com/topic/160345-php-api/#findComment-846146 Share on other sites More sharing options...
MadTechie Posted May 31, 2009 Share Posted May 31, 2009 Without seeing the API its hard to say how to implement it! Quote Link to comment https://forums.phpfreaks.com/topic/160345-php-api/#findComment-846151 Share on other sites More sharing options...
monkeytooth Posted May 31, 2009 Share Posted May 31, 2009 I would have to agree.. It all comes down to depending on the API and what its capable of so to speak Quote Link to comment https://forums.phpfreaks.com/topic/160345-php-api/#findComment-846153 Share on other sites More sharing options...
George Botley Posted May 31, 2009 Author Share Posted May 31, 2009 http://www.parcel2go.com/api/ There is the API directory. Ideally, it would be the place order and tracking service I will implement. Yours, George Quote Link to comment https://forums.phpfreaks.com/topic/160345-php-api/#findComment-846167 Share on other sites More sharing options...
anupamsaha Posted May 31, 2009 Share Posted May 31, 2009 http://www.parcel2go.com/api/ There is the API directory. Ideally, it would be the place order and tracking service I will implement. Yours, George Hi, The API referred here is a webservice. Try creating a webservice client and call the methods as described in it. Try SOAP extension in PHP. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/160345-php-api/#findComment-846191 Share on other sites More sharing options...
George Botley Posted May 31, 2009 Author Share Posted May 31, 2009 Ok... That is what I mean.. lol - I don't actually know how to do that or have no knowledge of doing so. Are there any tutorials you know of? Quote Link to comment https://forums.phpfreaks.com/topic/160345-php-api/#findComment-846193 Share on other sites More sharing options...
anupamsaha Posted May 31, 2009 Share Posted May 31, 2009 Ok... That is what I mean.. lol - I don't actually know how to do that or have no knowledge of doing so. Are there any tutorials you know of? Just for a basic heads up, <?php error_reporting(E_ALL); ini_set('display_errors', '1'); ini_set('log_errors', '0'); // Werservice URL $endpoint = "http://www.parcel2go.com/api/Parcel2GoApi.asmx?WSDL"; // Create SOAP Client Object $client = new SoapClient($endpoint); // Get all the methods from the webservice print('<pre>'); print_r($client->__getFunctions()); print('</pre>'); ?> Try reading these URLs: http://www.php.net/soap http://www.herongyang.com/PHP/php_soap.html http://www.phpbuilder.com/manual/en/function.soap-soapclient-construct.php You can always do Google for lot more tutorials. Hope this will help. Quote Link to comment https://forums.phpfreaks.com/topic/160345-php-api/#findComment-846195 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.