This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Supervisord auto-start | |
| # | |
| # description: Auto-starts supervisord | |
| # processname: supervisord | |
| # pidfile: /var/run/supervisord.pid | |
| PATH=/sbin:/usr/sbin:/bin:/usr/bin | |
| NAME=supervisord | |
| DESC="supervisod is a system for controlling process state" | |
| SUPERVISORD=/usr/local/bin/supervisord |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Author: Asaad Abdo | |
| * Date: 24/5/16 | |
| * Time: 3:11 PM | |
| */ | |
| // The below is a sample request to get report using shell | |
| // curl -X POST --data 'args={"username":"dummyksa","password":"dummyksa","data":"16101981015658","method":"get_status"}' http://menavip.com/api/getreport/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Author: Asaad Abdo | |
| * Date: 24/5/16 | |
| * Time: 3:11 PM | |
| */ | |
| // The below is a sample request to get report using shell | |
| // curl -X POST --data '{"username":"dummyksa", "password":"dummyksa","order_id":"66323", "method":"getOrderReport"}' http://menavip.com/api/getreport/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Author: Asaad Abdo | |
| * Date: 24/5/16 | |
| * Time: 3:11 PM | |
| */ | |
| // The below is a sample request to create orders using shell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Author : Asaad Abdo | |
| # Date : 29-07-2015 | |
| curl -X POST --data 'args={"data":"1512111177997", "method":"get_status", "username":"dummy", "password":"123456789"}' http://menavip.com/client/api/ | |
| # Response Sample | |
| # {"status":"Order Created"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Author : Asaad Abdo | |
| # Date : 29-07-2015 | |
| # One Shipment | |
| curl -X POST --data 'args={"username":"dummy", "password":"dummy@123","method":"create_orders", "pickup_location":"Dubai", "data":[{"order_reference":"Order_REF", "name":"First Customer", "email":"pratik_goel@live.com", "phone_number":"+987654321", "address":"3201 Golden tower, JLT", "city":"Dubai", "payment_type":"COD","amount":"122", "description":"Samsung mobile - S5 4g", "comments":"Dont call the customer after 400 Pm to schedule"}]}' http://menavip.com/client/api | |
| # Multiple Shipments in one order | |
| curl -X POST --data 'args={"username":"dummy", "password":"dummy@123","method":"create_orders", "pickup_location":"Dubai", "data":[{"order_reference":"Order_REF", "name":"First Customer", "email":"pratik_goel@live.com", "phone_number":"+987654321", "address":"3201 Golden tower, JLT", "city":"Dubai", "payment_type":"COD","amount":"122", "description":"Samsung mobile - S5 4g", "comments":"Dont call the customer after 400 Pm to schedule"},{"order_reference" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Created by PhpStorm. | |
| * User: asaadabdo | |
| * Date: 7/16/15 | |
| * Time: 5:12 PM | |
| */ | |
| $itemlist[] = array( | |
| 'client_ref' => 1000001, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Created by PhpStorm. | |
| * User: Asaad Abdo | |
| * Date: 7/8/15 | |
| * Time: 8:11 PM | |
| */ | |
| $data = array( | |
| 'username' => 'dummy', |