-
Notifications
You must be signed in to change notification settings - Fork 0
/
tutorial.php
1265 lines (1265 loc) · 37.6 KB
/
tutorial.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
/**
* This file aims to show you how to use this generated package.
* In addition, the goal is to show which methods are available and the fist needed parameter(s)
* You have to use an associative array such as:
* - the key must be a constant beginning with WSDL_ from AbstractSoapClientbase class each generated ServiceType class extends this class
* - the value must be the corresponding key value (each option matches a {@link http://www.php.net/manual/en/soapclient.soapclient.php} option)
* $options = array(
* \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => 'http://developer.ebay.com/webservices/latest/ebaysvc.wsdl',
* \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_TRACE => true,
* \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_LOGIN => 'you_secret_login',
* \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_PASSWORD => 'you_secret_password',
* );
* etc....
*/
require_once __DIR__ . '/vendor/autoload.php';
/**
* Minimal options
*/
$options = array(
\WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => 'http://developer.ebay.com/webservices/latest/ebaysvc.wsdl',
\WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => ClassMap::get(),
);
/**
* Samples for Add ServiceType
*/
$add = new \ServiceType\Add($options);
$add->setSoapHeaderRequesterCredentials($RequesterCredentials);
/**
* Sample call for AddDispute operation/method
*/
if ($add->AddDispute(new \StructType\AddDisputeRequestType()) !== false) {
print_r($add->getResult());
} else {
print_r($add->getLastError());
}
/**
* Sample call for AddDisputeResponse operation/method
*/
if ($add->AddDisputeResponse(new \StructType\AddDisputeResponseRequestType()) !== false) {
print_r($add->getResult());
} else {
print_r($add->getLastError());
}
/**
* Sample call for AddFixedPriceItem operation/method
*/
if ($add->AddFixedPriceItem(new \StructType\AddFixedPriceItemRequestType()) !== false) {
print_r($add->getResult());
} else {
print_r($add->getLastError());
}
/**
* Sample call for AddItem operation/method
*/
if ($add->AddItem(new \StructType\AddItemRequestType()) !== false) {
print_r($add->getResult());
} else {
print_r($add->getLastError());
}
/**
* Sample call for AddItemFromSellingManagerTemplate operation/method
*/
if ($add->AddItemFromSellingManagerTemplate(new \StructType\AddItemFromSellingManagerTemplateRequestType()) !== false) {
print_r($add->getResult());
} else {
print_r($add->getLastError());
}
/**
* Sample call for AddItems operation/method
*/
if ($add->AddItems(new \StructType\AddItemsRequestType()) !== false) {
print_r($add->getResult());
} else {
print_r($add->getLastError());
}
/**
* Sample call for AddMemberMessageAAQToPartner operation/method
*/
if ($add->AddMemberMessageAAQToPartner(new \StructType\AddMemberMessageAAQToPartnerRequestType()) !== false) {
print_r($add->getResult());
} else {
print_r($add->getLastError());
}
/**
* Sample call for AddMemberMessageRTQ operation/method
*/
if ($add->AddMemberMessageRTQ(new \StructType\AddMemberMessageRTQRequestType()) !== false) {
print_r($add->getResult());
} else {
print_r($add->getLastError());
}
/**
* Sample call for AddMemberMessagesAAQToBidder operation/method
*/
if ($add->AddMemberMessagesAAQToBidder(new \StructType\AddMemberMessagesAAQToBidderRequestType()) !== false) {
print_r($add->getResult());
} else {
print_r($add->getLastError());
}
/**
* Sample call for AddOrder operation/method
*/
if ($add->AddOrder(new \StructType\AddOrderRequestType()) !== false) {
print_r($add->getResult());
} else {
print_r($add->getLastError());
}
/**
* Sample call for AddSecondChanceItem operation/method
*/
if ($add->AddSecondChanceItem(new \StructType\AddSecondChanceItemRequestType()) !== false) {
print_r($add->getResult());
} else {
print_r($add->getLastError());
}
/**
* Sample call for AddSellingManagerInventoryFolder operation/method
*/
if ($add->AddSellingManagerInventoryFolder(new \StructType\AddSellingManagerInventoryFolderRequestType()) !== false) {
print_r($add->getResult());
} else {
print_r($add->getLastError());
}
/**
* Sample call for AddSellingManagerProduct operation/method
*/
if ($add->AddSellingManagerProduct(new \StructType\AddSellingManagerProductRequestType()) !== false) {
print_r($add->getResult());
} else {
print_r($add->getLastError());
}
/**
* Sample call for AddSellingManagerTemplate operation/method
*/
if ($add->AddSellingManagerTemplate(new \StructType\AddSellingManagerTemplateRequestType()) !== false) {
print_r($add->getResult());
} else {
print_r($add->getLastError());
}
/**
* Sample call for AddToItemDescription operation/method
*/
if ($add->AddToItemDescription(new \StructType\AddToItemDescriptionRequestType()) !== false) {
print_r($add->getResult());
} else {
print_r($add->getLastError());
}
/**
* Sample call for AddToWatchList operation/method
*/
if ($add->AddToWatchList(new \StructType\AddToWatchListRequestType()) !== false) {
print_r($add->getResult());
} else {
print_r($add->getLastError());
}
/**
* Sample call for AddTransactionConfirmationItem operation/method
*/
if ($add->AddTransactionConfirmationItem(new \StructType\AddTransactionConfirmationItemRequestType()) !== false) {
print_r($add->getResult());
} else {
print_r($add->getLastError());
}
/**
* Samples for Complete ServiceType
*/
$complete = new \ServiceType\Complete($options);
$complete->setSoapHeaderRequesterCredentials($RequesterCredentials);
/**
* Sample call for CompleteSale operation/method
*/
if ($complete->CompleteSale(new \StructType\CompleteSaleRequestType()) !== false) {
print_r($complete->getResult());
} else {
print_r($complete->getLastError());
}
/**
* Samples for Confirm ServiceType
*/
$confirm = new \ServiceType\Confirm($options);
$confirm->setSoapHeaderRequesterCredentials($RequesterCredentials);
/**
* Sample call for ConfirmIdentity operation/method
*/
if ($confirm->ConfirmIdentity(new \StructType\ConfirmIdentityRequestType()) !== false) {
print_r($confirm->getResult());
} else {
print_r($confirm->getLastError());
}
/**
* Samples for Delete ServiceType
*/
$delete = new \ServiceType\Delete($options);
$delete->setSoapHeaderRequesterCredentials($RequesterCredentials);
/**
* Sample call for DeleteMyMessages operation/method
*/
if ($delete->DeleteMyMessages(new \StructType\DeleteMyMessagesRequestType()) !== false) {
print_r($delete->getResult());
} else {
print_r($delete->getLastError());
}
/**
* Sample call for DeleteSellingManagerInventoryFolder operation/method
*/
if ($delete->DeleteSellingManagerInventoryFolder(new \StructType\DeleteSellingManagerInventoryFolderRequestType()) !== false) {
print_r($delete->getResult());
} else {
print_r($delete->getLastError());
}
/**
* Sample call for DeleteSellingManagerItemAutomationRule operation/method
*/
if ($delete->DeleteSellingManagerItemAutomationRule(new \StructType\DeleteSellingManagerItemAutomationRuleRequestType()) !== false) {
print_r($delete->getResult());
} else {
print_r($delete->getLastError());
}
/**
* Sample call for DeleteSellingManagerProduct operation/method
*/
if ($delete->DeleteSellingManagerProduct(new \StructType\DeleteSellingManagerProductRequestType()) !== false) {
print_r($delete->getResult());
} else {
print_r($delete->getLastError());
}
/**
* Sample call for DeleteSellingManagerTemplate operation/method
*/
if ($delete->DeleteSellingManagerTemplate(new \StructType\DeleteSellingManagerTemplateRequestType()) !== false) {
print_r($delete->getResult());
} else {
print_r($delete->getLastError());
}
/**
* Sample call for DeleteSellingManagerTemplateAutomationRule operation/method
*/
if ($delete->DeleteSellingManagerTemplateAutomationRule(new \StructType\DeleteSellingManagerTemplateAutomationRuleRequestType()) !== false) {
print_r($delete->getResult());
} else {
print_r($delete->getLastError());
}
/**
* Samples for Disable ServiceType
*/
$disable = new \ServiceType\Disable($options);
$disable->setSoapHeaderRequesterCredentials($RequesterCredentials);
/**
* Sample call for DisableUnpaidItemAssistance operation/method
*/
if ($disable->DisableUnpaidItemAssistance(new \StructType\DisableUnpaidItemAssistanceRequestType()) !== false) {
print_r($disable->getResult());
} else {
print_r($disable->getLastError());
}
/**
* Samples for End ServiceType
*/
$end = new \ServiceType\End($options);
$end->setSoapHeaderRequesterCredentials($RequesterCredentials);
/**
* Sample call for EndFixedPriceItem operation/method
*/
if ($end->EndFixedPriceItem(new \StructType\EndFixedPriceItemRequestType()) !== false) {
print_r($end->getResult());
} else {
print_r($end->getLastError());
}
/**
* Sample call for EndItem operation/method
*/
if ($end->EndItem(new \StructType\EndItemRequestType()) !== false) {
print_r($end->getResult());
} else {
print_r($end->getLastError());
}
/**
* Sample call for EndItems operation/method
*/
if ($end->EndItems(new \StructType\EndItemsRequestType()) !== false) {
print_r($end->getResult());
} else {
print_r($end->getLastError());
}
/**
* Samples for Extend ServiceType
*/
$extend = new \ServiceType\Extend($options);
$extend->setSoapHeaderRequesterCredentials($RequesterCredentials);
/**
* Sample call for ExtendSiteHostedPictures operation/method
*/
if ($extend->ExtendSiteHostedPictures(new \StructType\ExtendSiteHostedPicturesRequestType()) !== false) {
print_r($extend->getResult());
} else {
print_r($extend->getLastError());
}
/**
* Samples for Fetch ServiceType
*/
$fetch = new \ServiceType\Fetch($options);
$fetch->setSoapHeaderRequesterCredentials($RequesterCredentials);
/**
* Sample call for FetchToken operation/method
*/
if ($fetch->FetchToken(new \StructType\FetchTokenRequestType()) !== false) {
print_r($fetch->getResult());
} else {
print_r($fetch->getLastError());
}
/**
* Samples for Get ServiceType
*/
$get = new \ServiceType\Get($options);
$get->setSoapHeaderRequesterCredentials($RequesterCredentials);
/**
* Sample call for GetAccount operation/method
*/
if ($get->GetAccount(new \StructType\GetAccountRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetAdFormatLeads operation/method
*/
if ($get->GetAdFormatLeads(new \StructType\GetAdFormatLeadsRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetAllBidders operation/method
*/
if ($get->GetAllBidders(new \StructType\GetAllBiddersRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetApiAccessRules operation/method
*/
if ($get->GetApiAccessRules(new \StructType\GetApiAccessRulesRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetBestOffers operation/method
*/
if ($get->GetBestOffers(new \StructType\GetBestOffersRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetBidderList operation/method
*/
if ($get->GetBidderList(new \StructType\GetBidderListRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetCategories operation/method
*/
if ($get->GetCategories(new \StructType\GetCategoriesRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetCategoryFeatures operation/method
*/
if ($get->GetCategoryFeatures(new \StructType\GetCategoryFeaturesRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetCategoryMappings operation/method
*/
if ($get->GetCategoryMappings(new \StructType\GetCategoryMappingsRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetCategorySpecifics operation/method
*/
if ($get->GetCategorySpecifics(new \StructType\GetCategorySpecificsRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetChallengeToken operation/method
*/
if ($get->GetChallengeToken(new \StructType\GetChallengeTokenRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetCharities operation/method
*/
if ($get->GetCharities(new \StructType\GetCharitiesRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetClientAlertsAuthToken operation/method
*/
if ($get->GetClientAlertsAuthToken(new \StructType\GetClientAlertsAuthTokenRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetContextualKeywords operation/method
*/
if ($get->GetContextualKeywords(new \StructType\GetContextualKeywordsRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetDescriptionTemplates operation/method
*/
if ($get->GetDescriptionTemplates(new \StructType\GetDescriptionTemplatesRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetDispute operation/method
*/
if ($get->GetDispute(new \StructType\GetDisputeRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetFeedback operation/method
*/
if ($get->GetFeedback(new \StructType\GetFeedbackRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetItem operation/method
*/
if ($get->GetItem(new \StructType\GetItemRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetItemShipping operation/method
*/
if ($get->GetItemShipping(new \StructType\GetItemShippingRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetItemTransactions operation/method
*/
if ($get->GetItemTransactions(new \StructType\GetItemTransactionsRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetItemsAwaitingFeedback operation/method
*/
if ($get->GetItemsAwaitingFeedback(new \StructType\GetItemsAwaitingFeedbackRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetMemberMessages operation/method
*/
if ($get->GetMemberMessages(new \StructType\GetMemberMessagesRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetMessagePreferences operation/method
*/
if ($get->GetMessagePreferences(new \StructType\GetMessagePreferencesRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetMyMessages operation/method
*/
if ($get->GetMyMessages(new \StructType\GetMyMessagesRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetMyeBayBuying operation/method
*/
if ($get->GetMyeBayBuying(new \StructType\GetMyeBayBuyingRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetMyeBayReminders operation/method
*/
if ($get->GetMyeBayReminders(new \StructType\GetMyeBayRemindersRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetMyeBaySelling operation/method
*/
if ($get->GetMyeBaySelling(new \StructType\GetMyeBaySellingRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetNotificationPreferences operation/method
*/
if ($get->GetNotificationPreferences(new \StructType\GetNotificationPreferencesRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetNotificationsUsage operation/method
*/
if ($get->GetNotificationsUsage(new \StructType\GetNotificationsUsageRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetOrderTransactions operation/method
*/
if ($get->GetOrderTransactions(new \StructType\GetOrderTransactionsRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetOrders operation/method
*/
if ($get->GetOrders(new \StructType\GetOrdersRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetPromotionalSaleDetails operation/method
*/
if ($get->GetPromotionalSaleDetails(new \StructType\GetPromotionalSaleDetailsRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSellerDashboard operation/method
*/
if ($get->GetSellerDashboard(new \StructType\GetSellerDashboardRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSellerEvents operation/method
*/
if ($get->GetSellerEvents(new \StructType\GetSellerEventsRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSellerList operation/method
*/
if ($get->GetSellerList(new \StructType\GetSellerListRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSellerTransactions operation/method
*/
if ($get->GetSellerTransactions(new \StructType\GetSellerTransactionsRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSellingManagerAlerts operation/method
*/
if ($get->GetSellingManagerAlerts(new \StructType\GetSellingManagerAlertsRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSellingManagerEmailLog operation/method
*/
if ($get->GetSellingManagerEmailLog(new \StructType\GetSellingManagerEmailLogRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSellingManagerInventory operation/method
*/
if ($get->GetSellingManagerInventory(new \StructType\GetSellingManagerInventoryRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSellingManagerInventoryFolder operation/method
*/
if ($get->GetSellingManagerInventoryFolder(new \StructType\GetSellingManagerInventoryFolderRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSellingManagerItemAutomationRule operation/method
*/
if ($get->GetSellingManagerItemAutomationRule(new \StructType\GetSellingManagerItemAutomationRuleRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSellingManagerSaleRecord operation/method
*/
if ($get->GetSellingManagerSaleRecord(new \StructType\GetSellingManagerSaleRecordRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSellingManagerSoldListings operation/method
*/
if ($get->GetSellingManagerSoldListings(new \StructType\GetSellingManagerSoldListingsRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSellingManagerTemplateAutomationRule operation/method
*/
if ($get->GetSellingManagerTemplateAutomationRule(new \StructType\GetSellingManagerTemplateAutomationRuleRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSellingManagerTemplates operation/method
*/
if ($get->GetSellingManagerTemplates(new \StructType\GetSellingManagerTemplatesRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSessionID operation/method
*/
if ($get->GetSessionID(new \StructType\GetSessionIDRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetShippingDiscountProfiles operation/method
*/
if ($get->GetShippingDiscountProfiles(new \StructType\GetShippingDiscountProfilesRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetStore operation/method
*/
if ($get->GetStore(new \StructType\GetStoreRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetStoreCategoryUpdateStatus operation/method
*/
if ($get->GetStoreCategoryUpdateStatus(new \StructType\GetStoreCategoryUpdateStatusRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetStoreCustomPage operation/method
*/
if ($get->GetStoreCustomPage(new \StructType\GetStoreCustomPageRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetStoreOptions operation/method
*/
if ($get->GetStoreOptions(new \StructType\GetStoreOptionsRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetStorePreferences operation/method
*/
if ($get->GetStorePreferences(new \StructType\GetStorePreferencesRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSuggestedCategories operation/method
*/
if ($get->GetSuggestedCategories(new \StructType\GetSuggestedCategoriesRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetTaxTable operation/method
*/
if ($get->GetTaxTable(new \StructType\GetTaxTableRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetTokenStatus operation/method
*/
if ($get->GetTokenStatus(new \StructType\GetTokenStatusRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetUser operation/method
*/
if ($get->GetUser(new \StructType\GetUserRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetUserContactDetails operation/method
*/
if ($get->GetUserContactDetails(new \StructType\GetUserContactDetailsRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetUserDisputes operation/method
*/
if ($get->GetUserDisputes(new \StructType\GetUserDisputesRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetUserPreferences operation/method
*/
if ($get->GetUserPreferences(new \StructType\GetUserPreferencesRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetVeROReasonCodeDetails operation/method
*/
if ($get->GetVeROReasonCodeDetails(new \StructType\GetVeROReasonCodeDetailsRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetVeROReportStatus operation/method
*/
if ($get->GetVeROReportStatus(new \StructType\GetVeROReportStatusRequestType()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Samples for Gete ServiceType
*/
$gete = new \ServiceType\Gete($options);
$gete->setSoapHeaderRequesterCredentials($RequesterCredentials);
/**
* Sample call for GeteBayDetails operation/method
*/
if ($gete->GeteBayDetails(new \StructType\GeteBayDetailsRequestType()) !== false) {
print_r($gete->getResult());
} else {
print_r($gete->getLastError());
}
/**
* Sample call for GeteBayOfficialTime operation/method
*/
if ($gete->GeteBayOfficialTime(new \StructType\GeteBayOfficialTimeRequestType()) !== false) {
print_r($gete->getResult());
} else {
print_r($gete->getLastError());
}
/**
* Samples for Leave ServiceType
*/
$leave = new \ServiceType\Leave($options);
$leave->setSoapHeaderRequesterCredentials($RequesterCredentials);
/**
* Sample call for LeaveFeedback operation/method
*/
if ($leave->LeaveFeedback(new \StructType\LeaveFeedbackRequestType()) !== false) {
print_r($leave->getResult());
} else {
print_r($leave->getLastError());
}
/**
* Samples for Move ServiceType
*/
$move = new \ServiceType\Move($options);
$move->setSoapHeaderRequesterCredentials($RequesterCredentials);
/**
* Sample call for MoveSellingManagerInventoryFolder operation/method
*/
if ($move->MoveSellingManagerInventoryFolder(new \StructType\MoveSellingManagerInventoryFolderRequestType()) !== false) {
print_r($move->getResult());
} else {
print_r($move->getLastError());
}
/**
* Samples for Place ServiceType
*/
$place = new \ServiceType\Place($options);
$place->setSoapHeaderRequesterCredentials($RequesterCredentials);
/**
* Sample call for PlaceOffer operation/method
*/
if ($place->PlaceOffer(new \StructType\PlaceOfferRequestType()) !== false) {
print_r($place->getResult());
} else {
print_r($place->getLastError());
}
/**
* Samples for Relist ServiceType
*/
$relist = new \ServiceType\Relist($options);
$relist->setSoapHeaderRequesterCredentials($RequesterCredentials);
/**
* Sample call for RelistFixedPriceItem operation/method
*/
if ($relist->RelistFixedPriceItem(new \StructType\RelistFixedPriceItemRequestType()) !== false) {
print_r($relist->getResult());
} else {
print_r($relist->getLastError());
}
/**
* Sample call for RelistItem operation/method
*/
if ($relist->RelistItem(new \StructType\RelistItemRequestType()) !== false) {
print_r($relist->getResult());
} else {
print_r($relist->getLastError());
}
/**
* Samples for Remove ServiceType
*/
$remove = new \ServiceType\Remove($options);
$remove->setSoapHeaderRequesterCredentials($RequesterCredentials);
/**
* Sample call for RemoveFromWatchList operation/method
*/
if ($remove->RemoveFromWatchList(new \StructType\RemoveFromWatchListRequestType()) !== false) {
print_r($remove->getResult());
} else {
print_r($remove->getLastError());
}
/**
* Samples for Respond ServiceType
*/
$respond = new \ServiceType\Respond($options);
$respond->setSoapHeaderRequesterCredentials($RequesterCredentials);
/**
* Sample call for RespondToBestOffer operation/method
*/
if ($respond->RespondToBestOffer(new \StructType\RespondToBestOfferRequestType()) !== false) {
print_r($respond->getResult());
} else {
print_r($respond->getLastError());
}
/**
* Sample call for RespondToFeedback operation/method
*/
if ($respond->RespondToFeedback(new \StructType\RespondToFeedbackRequestType()) !== false) {
print_r($respond->getResult());
} else {
print_r($respond->getLastError());
}
/**
* Samples for Revise ServiceType
*/
$revise = new \ServiceType\Revise($options);
$revise->setSoapHeaderRequesterCredentials($RequesterCredentials);
/**
* Sample call for ReviseCheckoutStatus operation/method
*/
if ($revise->ReviseCheckoutStatus(new \StructType\ReviseCheckoutStatusRequestType()) !== false) {
print_r($revise->getResult());
} else {
print_r($revise->getLastError());
}
/**
* Sample call for ReviseFixedPriceItem operation/method
*/
if ($revise->ReviseFixedPriceItem(new \StructType\ReviseFixedPriceItemRequestType()) !== false) {
print_r($revise->getResult());
} else {
print_r($revise->getLastError());
}
/**
* Sample call for ReviseInventoryStatus operation/method
*/
if ($revise->ReviseInventoryStatus(new \StructType\ReviseInventoryStatusRequestType()) !== false) {
print_r($revise->getResult());
} else {
print_r($revise->getLastError());
}
/**
* Sample call for ReviseItem operation/method
*/
if ($revise->ReviseItem(new \StructType\ReviseItemRequestType()) !== false) {
print_r($revise->getResult());
} else {
print_r($revise->getLastError());
}
/**
* Sample call for ReviseMyMessages operation/method
*/
if ($revise->ReviseMyMessages(new \StructType\ReviseMyMessagesRequestType()) !== false) {
print_r($revise->getResult());
} else {
print_r($revise->getLastError());
}
/**
* Sample call for ReviseMyMessagesFolders operation/method
*/
if ($revise->ReviseMyMessagesFolders(new \StructType\ReviseMyMessagesFoldersRequestType()) !== false) {
print_r($revise->getResult());
} else {
print_r($revise->getLastError());
}
/**
* Sample call for ReviseSellingManagerInventoryFolder operation/method
*/
if ($revise->ReviseSellingManagerInventoryFolder(new \StructType\ReviseSellingManagerInventoryFolderRequestType()) !== false) {
print_r($revise->getResult());
} else {
print_r($revise->getLastError());
}
/**
* Sample call for ReviseSellingManagerProduct operation/method
*/
if ($revise->ReviseSellingManagerProduct(new \StructType\ReviseSellingManagerProductRequestType()) !== false) {
print_r($revise->getResult());
} else {
print_r($revise->getLastError());
}
/**
* Sample call for ReviseSellingManagerSaleRecord operation/method
*/
if ($revise->ReviseSellingManagerSaleRecord(new \StructType\ReviseSellingManagerSaleRecordRequestType()) !== false) {
print_r($revise->getResult());
} else {
print_r($revise->getLastError());
}
/**
* Sample call for ReviseSellingManagerTemplate operation/method
*/
if ($revise->ReviseSellingManagerTemplate(new \StructType\ReviseSellingManagerTemplateRequestType()) !== false) {