How should I use this code they sent me? (phpS and SOAP, unknown terms to me)

Hi :slight_smile:

I was hoping I could get some guidance on this forum regarding this code my courier company sent me. I asked them if there was a way I could use some sort of backend automation to book collections with them instead of using their website, so they sent me this code example:

http://adpdemo.pperfect.com/ecomService/v15/downloads/submitCollectionExample_JSON.phps

I only know about PHP and JSON, and after seeing that I downloaded something called Zend Framework, JSON module (there are millions of them so i have no idea if it’s the correct one: https://github.com/zendframework/zend-json).

So now I have the Zend framework that that code requires, but it’s an autoload document and I’m not sure if I can just use

// Zend Framework Json module 
require_once('vendor/autoload.php'); 

instead of the code example.

Also, that function looks pretty self explanatory, but those $params part is confusing. How do I call the function? All the details, addresses, parcel dimensions etc are dynamic and certainly not static, each parcel will have its own details, so how do I pass dynamic parameters (an array?) to the function when making a call?

If this is something that I should ask them directly, let me know. I just hope not to sound too silly in case they think I’m not a serious client.

Thank you for reading.

Sponsor our Newsletter | Privacy Policy | Terms of Service