API with CMS systems in Codeigniter project

Job ID: 32195118

Budget: €12 – €18 EUR

API In Codeigniter.

We first need 1 API, if we’re happy and your skills are good you can do appr 20-50 API’s.

We have our back-end. Here companies can login and set up their API with their existing webshop. They go to Integrations -> Webshop CMS.

With this API they can import all their products to our software, including all details and categories. Besides this the API also needs to be able to create a cart (if needed on posting an order) and post the order to the CMS.

Example scenario :
- Shop owner logs in to AdUp
- Connects his shopify shop using API Key & Secret via integrations
- Our custom Shopify library fetches the products & categories to the AdUp database
- Customer places an order via AdUp
- Our custom Shopify library posts the cart and order to Shopify
- Complete

Sample library : I will send you a sample library if we make an order.

Functions required in the library :
- Import products with all details
- Import categories
- Create cart
- Post order

Development notes :
- Always use PHP 7+ Syntax
- Always use CodeIgniter helpers & libraries over vanilla php
- Always use the official PHP SDK of the CMS (if available) (place it in third_party folder/dont use unofficial SDKs)
- Make sure library has no hard coded values (api key, secret or other values should be loaded as parameters when loading the library) check the sample library for reference
- Prevent duplicating the same code block multiple times (make a function and call it)
- Type hint in functions to make it easier for debugging
- Make sure your code is well formatted
- Use correct naming conventions when naming classes, functions, variables
- When making curl requests always use the given callAPI static function from Adupcomlib library (write your own curl method only if it's absolutely necessary (don’t modify the existing Adupcomlib code, but add any common methods you want in between libraries)
Related categories: PHP Codeigniter API RESTful API