-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from faghani/analysis-qJWnoa
Apply fixes from StyleCI
- Loading branch information
Showing
14 changed files
with
124 additions
and
92 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?php | ||
|
||
require_once '../vendor/autoload.php'; | ||
|
||
$apiKey = 'YOUR_API_KEY'; | ||
|
@@ -7,22 +8,22 @@ | |
// Your order array | ||
$fakeOrder = [ | ||
'customerPhone' => '09125076324', | ||
'reference' => '123456', | ||
'state' => 1, | ||
'city' => 1, | ||
'names' => 'عروسک خرس مهربون', | ||
'weight' => 250, | ||
'price' => 15000, | ||
'shipment' => 0, // Sefareshi | ||
'payment' => 0, // COD | ||
'customerName' => 'علیرضا فغانی', | ||
'address' => 'پاسداران گلستان اول در قهوه ای پلاک 0', | ||
'postalCode' => 1234567890, | ||
'reference' => '123456', | ||
'state' => 1, | ||
'city' => 1, | ||
'names' => 'عروسک خرس مهربون', | ||
'weight' => 250, | ||
'price' => 15000, | ||
'shipment' => 0, // Sefareshi | ||
'payment' => 0, // COD | ||
'customerName' => 'علیرضا فغانی', | ||
'address' => 'پاسداران گلستان اول در قهوه ای پلاک 0', | ||
'postalCode' => 1234567890, | ||
'customerEmail' => '[email protected]', | ||
]; | ||
|
||
// Submit order | ||
$res = $client->newOrder($fakeOrder); | ||
|
||
// An array, $res[1] => Post tracking number | ||
var_dump($res); | ||
var_dump($res); |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ public function __construct($message) | |
{ | ||
parent::__construct($message); | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ public function __construct($message) | |
{ | ||
parent::__construct($message); | ||
} | ||
} | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,4 +34,4 @@ public function getOutput() | |
{ | ||
return $this->output; | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,4 +34,4 @@ public function errors() | |
{ | ||
return $this->errors; | ||
} | ||
} | ||
} |
This file contains 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
Oops, something went wrong.