この図書館のおかげで、YurtiçiKargoと統合された貨物を作成し、貨物の状況に疑問を呈し、貨物をキャンセルできます。
例コード»
レポートエラー・提案/リクエスト
この図書館のおかげで、YurtiçiKargoと統合された貨物を作成し、貨物の状況に疑問を呈し、貨物をキャンセルできます。
Webサービスのユーザー名と、国内の貨物統合に必要なWebサービスパスワードの統合を申請する必要があります。 YurtiçiKargoマーケティングマネージャーから統合ドキュメントを取得することにより、統合情報、パラメーター、および例にアクセスできます。
コードをスムーズに動作させるには、ソケット、openSSL、石鹸、カールなどのサーバーの番号80とプラグインを開いている必要があります。
wsUserName :webサービスユーザー名
wsPassword :Webサービスパスワード
wsLanguage :Webサービス言語オプション(例: 'TR')
cleanResult :結果の結果をよりシンプルにします。 (true/false)(デフォルト:true)
testMode :テストモード(true/false)
注:上記のパラメーターはすべての例に適用されます。
cargoKey :貨物キー(出荷ごとにユニークでなければなりません)
invoiceKey :Invoice Switch(投稿ごとに一意でなければなりません)
receiverCustName :受信者名(最小5文字に少なくとも4文字が含まれている必要があります。)
receiverAddress :レシーバーアドレス(Min 5 Max 200文字。地方および地区の情報は、CityNameとTownNameの畑に送信された場合、このエリアに送信しないでください。)
receiverPhone1 :Receiver Telephone-1(フィールドコードの10の数字で構成される必要があります)。
<?php
require_once " ../src/class.php " ;
$ yurtici = new yurticiKargo ( array (
' wsUserName ' => " {wsUserName} " ,
' wsPassword ' => " {wsPassword} " ,
' wsLanguage ' => " {wsLanguage} " , // Default: TR
' cleanResult ' => true , // Default: true [true/false]
' testMode ' => true // Default: false [true/false]
));
$ response = $ yurtici -> createShipment ( array (
" cargoKey " => " 123456 " ,
' invoiceKey ' => " 654321 " ,
' receiverCustName ' => " John Doe " ,
' receiverAddress ' => " Lorem Ipsum is simply dummy text of the printing and typesetting industry. " ,
' cityName ' => " City " ,
' townName ' => " Town " ,
' receiverPhone1 ' => " 05554443322 " ,
' emailAddress ' => " [email protected] " ,
' orgReceiverCustId ' => ' 9999 '
));
?> Array
(
[outFlag] => 0
[outResult] => Başarılı
[count] => 1
[jobId] => 2198077
[shippingOrderDetailVO] => Array
(
[cargoKey] => 123456
[invoiceKey] => 654321
)
)
keys :配送/請求書キー
keyType :キーパラメーターで指定されたキーのタイプを決定します。 0-配送キー / 1-請求書スイッチ
addHistoricalData :輸送の動きを報告するために指定する必要があります。
onlyTracking :Follow -Upリンクのみを報告できます。
<?php
require_once " ../src/class.php " ;
$ yurtici = new yurticiKargo ( array (
' wsUserName ' => " {wsUserName} " ,
' wsPassword ' => " {wsPassword} " ,
' wsLanguage ' => " {wsLanguage} " , // Default: TR
' cleanResult ' => true , // Default: true [true/false]
' testMode ' => true // Default: false [true/false]
));
$ response = $ yurtici -> queryShipment ( ' 123456 ' , 0 , false , true );
?> Array
(
[outFlag] => 0
[outResult] => Başarılı
[count] => 1
[senderCustId] => 1010954
[shippingDeliveryDetailVO] => Array
(
[cargoKey] => 123456
[invoiceKey] => 654321
[jobId] => 2198077
[operationCode] => 0
[operationMessage] => Kargo İşlem Görmemiş.
[operationStatus] => NOP
)
)
cargoKeys :配送キー
<?php
require_once " ../src/class.php " ;
$ yurtici = new yurticiKargo ( array (
' wsUserName ' => " {wsUserName} " ,
' wsPassword ' => " {wsPassword} " ,
' wsLanguage ' => " {wsLanguage} " , // Default: TR
' cleanResult ' => true , // Default: true [true/false]
' testMode ' => true // Default: false [true/false]
));
$ response = $ yurtici -> cancelShipment ( ' 123456 ' );
?> Array
(
[outFlag] => 0
[outResult] => Başarılı
[count] => 1
[senderCustId] => 1010954
[shippingCancelDetailVO] => Array
(
[cargoKey] => 123456
[docId] => 0
[invoiceKey] => 654321
[jobId] => 2198077
[operationCode] => 3
[operationMessage] => Verisi İptal Edilmiştir.Kargo Çıkışı Engellendi.
[operationStatus] => CNL
)
)
プロジェクト接続:https://github.com/beratkrdr/yurtizi-kargo-entegration-php