CodeIgniter Forums
Integration of Shipping API (RocketShipIt ) - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Model-View-Controller (https://forum.codeigniter.com/forumdisplay.php?fid=10)
+--- Thread: Integration of Shipping API (RocketShipIt ) (/showthread.php?tid=64967)



Integration of Shipping API (RocketShipIt ) - anjali - 04-14-2016

I am integrating RocketShipIt  API in my website for shipping purpose.

How to integrate it in CodeIgniter?

How to load the 3rd party files in CodeIgniter?

For eg;


$rate = new \RocketShipIt\Rate('fedex');

how can i load the above line in CodeIgniter ?


RE: Integration of Shipping API (RocketShipIt ) - amitpatel1849 - 04-15-2016

Hi Angeli,

Put your Class file in the Library Folder.
Lest say You have Fedex class
put file Fedex.php file in Library folder then call that library using $this->load->library('Fedex'); and use the object $this->fedex.

Contact me on skype: amitpatel727 if anything.

Regards,
Amit


RE: Integration of Shipping API (RocketShipIt ) - cartalot - 04-15-2016

another way to call a library - sometimes this is easier if you are working with demo code
same thing put the library in your application/libraries folder and then in the constructor or method:

require_once(APPPATH.'libraries/somelibrary/libraryhome.php');


RE: Integration of Shipping API (RocketShipIt ) - Tpojka - 04-16-2016

Official documentation points to CodeIgniter installation.
Only difference for you could be (if not using MY_Controller) extending your controller class(es) from CI_Controller.
Everything else is pretty straight forward.


RE: Integration of Shipping API (RocketShipIt ) - imman sanjay - 12-21-2018

(04-15-2016, 12:46 AM)amitpatel1849 Wrote: Hi Angeli,

Put your Class file in the Library Folder.
Lest say You have Fedex class
put file Fedex.php file in Library folder then call that library using $this->load->library('Fedex'); and use the object $this->fedex.

Contact me on skype: amitpatel727 if anything.

Regards,
Amit
Hi amitpatel,

 How to integrate fedEx create shipment api in codeigniter..please help me