summaryrefslogtreecommitdiff
path: root/data/en_us/imagesearch/2021-05-01/api-docs.php
blob: 557543d025ffc2c8eeb2878aa6df1a1536707389 (plain)
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
<?php return [
    'version' => '1.0',
    'info' => ['style' => 'RPC', 'product' => 'ImageSearch', 'version' => '2021-05-01'],
    'directories' => ['GetProductInfoByIds', 'SearchByPic', 'SearchByUrl'],
    'components' => [
        'schemas' => [],
    ],
    'apis' => [
        'GetProductInfoByIds' => [
            'methods' => ['post'],
            'schemes' => ['http', 'https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => [],
            'parameters' => [
                [
                    'name' => 'ItemIds',
                    'in' => 'formData',
                    'schema' => ['description' => 'The product ID string. Separate multiple IDs with commas (,). A maximum of 40 IDs are supported.', 'type' => 'string', 'required' => true, 'example' => '111,22,33', 'title' => ''],
                ],
                [
                    'name' => 'Pid',
                    'in' => 'formData',
                    'schema' => ['description' => 'The PID. For more information, see [PID](https://mos.m.taobao.com/union/pub/site/help?spm=a219t.11817172.PortalLayout.d52e56935.27ac6a15wlAEHe).'."\n"
                        .'> This field is available when you use SDK V1.1.0 or later.', 'type' => 'string', 'required' => false, 'example' => 'mm_xxx_xxx_xxx', 'title' => ''],
                ],
                [
                    'name' => 'Fields',
                    'in' => 'formData',
                    'schema' => ['description' => 'The list of fields to return. Separate different fields with commas (,). By default, the PicUrl, ReservePrice, Title, Url, and ZkFinalPrice fields are always returned.', 'type' => 'string', 'required' => false, 'example' => 'Url,UserType', 'title' => ''],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                            'Code' => ['description' => 'The error code.'."\n"
                                ."\n"
                                .'- 0: success.'."\n"
                                .'- Non-0: failure.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
                            'Data' => [
                                'description' => 'The recognition result set.',
                                'type' => 'object',
                                'properties' => [
                                    'Auctions' => [
                                        'description' => 'The recognition results.',
                                        'type' => 'array',
                                        'items' => [
                                            'description' => 'The query result content.',
                                            'type' => 'object',
                                            'properties' => [
                                                'Result' => [
                                                    'description' => 'The query result.',
                                                    'type' => 'object',
                                                    'properties' => [
                                                        'InputItemId' => ['description' => 'The product ID.'."\n"
                                                            .'> Used with SDK 1.2.3. This value is the same as the ItemIds passed in the search request.', 'type' => 'string', 'example' => '123000123', 'title' => ''],
                                                        'ItemId' => ['description' => 'The product ID.'."\n"
                                                            .'> Used with SDK 1.2.3. This is a dynamic product ID.', 'type' => 'string', 'example' => 'Oqz93kougf9bkN7f4ACMtJ', 'title' => ''],
                                                        'Title' => ['description' => 'The product title.', 'type' => 'string', 'example' => 'xxx套装', 'title' => ''],
                                                        'ShortTitle' => ['description' => 'The short product title. This title is recommended for mobile devices.', 'type' => 'string', 'example' => 'xxx套装', 'title' => ''],
                                                        'SubTitle' => ['description' => 'The product subtitle.', 'type' => 'string', 'example' => 'xxx套装', 'title' => ''],
                                                        'PicUrl' => ['description' => 'The main product image URL.', 'type' => 'string', 'example' => '//img.alicdn.com/i1/FXXXXXXXXXX.jpg', 'title' => ''],
                                                        'ReservePrice' => ['description' => 'The fixed price, which is typically displayed as the strikethrough price.', 'type' => 'string', 'example' => '150', 'title' => ''],
                                                        'ZkFinalPrice' => ['description' => 'The online selling price in CNY. If the product is a pre-sale product and is within the deposit payment period, the online selling price equals the pre-sale price.', 'type' => 'string', 'example' => '98', 'title' => ''],
                                                        'PriceAfterCoupon' => ['description' => 'The price after coupon is applied.', 'type' => 'string', 'example' => '90', 'title' => ''],
                                                        'UserType' => ['description' => 'The seller type.'."\n"
                                                            ."\n"
                                                            .'- 1: Tmall.'."\n"
                                                            .'- 0: Taobao.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
                                                        'Provcity' => ['description' => 'The product location.', 'type' => 'string', 'example' => '广东 深圳', 'title' => ''],
                                                        'Nick' => ['description' => 'The seller nickname.', 'type' => 'string', 'example' => '衣服专卖店', 'title' => ''],
                                                        'SellerId' => ['description' => 'The seller ID.', 'type' => 'string', 'example' => '32590610', 'title' => ''],
                                                        'CategoryName' => ['description' => 'The first-level category name.', 'type' => 'string', 'example' => '连衣裙', 'title' => ''],
                                                        'Volume' => ['description' => 'The sales volume in the last 30 days.', 'type' => 'integer', 'format' => 'int32', 'example' => '500', 'title' => ''],
                                                        'LevelOneCategoryName' => ['description' => 'The leaf category name.', 'type' => 'string', 'example' => '童装/婴儿装/亲子装', 'title' => ''],
                                                        'CouponTotalCount' => ['description' => 'The total number of coupons.', 'type' => 'string', 'example' => '10000', 'title' => ''],
                                                        'CouponRemainCount' => ['description' => 'The number of remaining coupons.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
                                                        'CouponStartTime' => ['description' => 'The coupon start time.', 'type' => 'string', 'example' => '2021-05-01', 'title' => ''],
                                                        'CouponEndTime' => ['description' => 'The coupon end time.', 'type' => 'string', 'example' => '2021-06-01', 'title' => ''],
                                                        'CouponStartFee' => ['description' => 'The minimum spend threshold for the coupon. For example, spend CNY 299 to save CNY 20.', 'type' => 'string', 'example' => '98.000000', 'title' => ''],
                                                        'CouponAmount' => ['description' => 'The coupon amount in CNY. If the product is a pre-sale product, this coupon can be used for the final payment but not for the deposit.', 'type' => 'integer', 'format' => 'int32', 'example' => '8', 'title' => ''],
                                                        'CouponInfo' => ['description' => 'The coupon threshold-based discount information.', 'type' => 'string', 'example' => '满98.0元减5.0元', 'title' => ''],
                                                        'CommissionRate' => ['description' => 'The commission rate. For example, 1550 indicates 15.5%.', 'type' => 'string', 'example' => '180', 'title' => ''],
                                                        'CouponShareUrl' => ['description' => 'The combined product and coupon page URL.', 'type' => 'string', 'example' => 'tbopen://m.taobao.com/tbopen/index.html?', 'title' => ''],
                                                        'DeeplinkCouponShareUrl' => ['description' => 'The deep link for launching the Taobao app with the coupon.', 'type' => 'string', 'example' => 'tbopen://m.taobao.com/tbopen/index.html?', 'title' => ''],
                                                        'Url' => ['description' => 'The product promotion URL.', 'type' => 'string', 'example' => 'tbopen://m.taobao.com/tbopen/index.html?', 'title' => ''],
                                                        'DeeplinkUrl' => ['description' => 'The deep link for product promotion.', 'type' => 'string', 'example' => 'tbopen://m.taobao.com/tbopen/index.html?', 'title' => ''],
                                                        'ShopTitle' => ['description' => 'The shop name.', 'type' => 'string', 'example' => 'xx旗舰店', 'title' => ''],
                                                        'MaxCommission' => [
                                                            'description' => 'The highest commission information.',
                                                            'type' => 'object',
                                                            'properties' => [
                                                                'MaxCommissionRate' => ['description' => 'The optimal commission rate. For example, 20.4 indicates a commission rate of 20.4%.', 'type' => 'string', 'example' => '20.4', 'title' => ''],
                                                                'MaxCommissionClickUrl' => ['description' => 'The product promotion URL with the optimal commission rate.', 'type' => 'string', 'example' => 'https://s.click.taobao.com/t?e=xxxx', 'title' => ''],
                                                                'MaxCommissionCouponShareUrl' => ['description' => 'The combined product and coupon page URL with the optimal commission rate.', 'type' => 'string', 'example' => 'https://s.click.taobao.com/t?e=xxxx', 'title' => ''],
                                                            ],
                                                            'title' => '',
                                                            'example' => '',
                                                        ],
                                                    ],
                                                    'title' => '',
                                                    'example' => '',
                                                ],
                                                'RankScore' => ['description' => 'The ranking score for product similarity. Valid values: 0 to 1.', 'type' => 'number', 'format' => 'float', 'example' => '0.34', 'title' => ''],
                                            ],
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'title' => '',
                                        'example' => '',
                                    ],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'B3137727-7D6E-488C-BA21-0E034C38A879', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'PidNotExist', 'errorMessage' => 'The parameter specified Pid not exist', 'description' => ''],
                    ['errorCode' => 'InvalidPid', 'errorMessage' => 'The parameter Pid no specified', 'description' => ''],
                    ['errorCode' => 'BadRequest', 'errorMessage' => 'The request has invalid parameters.', 'description' => ''],
                    ['errorCode' => 'InstanceStatusError', 'errorMessage' => 'Your instance is unavailable.', 'description' => ''],
                    ['errorCode' => 'TimeoutForTransferImage', 'errorMessage' => 'Timeout after 5 seconds waiting for images transfer to complete.', 'description' => ''],
                    ['errorCode' => 'InvalidInstance', 'errorMessage' => 'The specified instance name is invalid.', 'description' => ''],
                    ['errorCode' => 'InvalidItemIds', 'errorMessage' => 'ItemIds parameter overflow number max 40.', 'description' => ''],
                    ['errorCode' => 'OverflowMaxResultNum', 'errorMessage' => 'The specified number of total results exceeds the maximum of 500.', 'description' => ''],
                    ['errorCode' => 'OverflowMaxReturnNum', 'errorMessage' => 'The specified number of results for each request exceeds the maximum of 100.', 'description' => ''],
                    ['errorCode' => 'InvalidStartParameter', 'errorMessage' => 'The specified parameter start is inavlid.', 'description' => ''],
                    ['errorCode' => 'InvalidNumParameter', 'errorMessage' => 'The specified parameter num is invalid.', 'description' => ''],
                    ['errorCode' => 'InvalidIntAttr', 'errorMessage' => 'The specified int_attr field is invalid.', 'description' => ''],
                    ['errorCode' => 'UnsupportedPicFormat', 'errorMessage' => 'The specified image format is invalid.', 'description' => ''],
                    ['errorCode' => 'InvalidFilterClause', 'errorMessage' => 'The specified filtering condition is invalid.', 'description' => ''],
                    ['errorCode' => 'IncorrectOrientation', 'errorMessage' => 'The image contains incorrect rotation flags in the meta data.', 'description' => ''],
                    ['errorCode' => 'UnsupportedPicPixels', 'errorMessage' => 'The specified pixels is not supported.', 'description' => ''],
                    ['errorCode' => 'SearchTimeout', 'errorMessage' => 'The request is timed out.', 'description' => ''],
                    ['errorCode' => 'NoSpecifiedPicContent', 'errorMessage' => 'The parameter PicContent no specified.', 'description' => ''],
                    ['errorCode' => 'InvalidCustomContent', 'errorMessage' => 'The specified parameter CustomContent is not valid.', 'description' => ''],
                    ['errorCode' => 'InvalidPicContent', 'errorMessage' => 'The specified parameter PicContent length greater than 4 * 1024 * 1024.', 'description' => ''],
                    ['errorCode' => 'InvalidPicUrl', 'errorMessage' => 'The specified parameter PicUrl is not valid.', 'description' => ''],
                    ['errorCode' => 'NotRegisterBeforeInvoke', 'errorMessage' => 'Need register token: pid before invoke.', 'description' => ''],
                ],
                403 => [
                    ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to perform this operation.', 'description' => ''],
                    ['errorCode' => 'DeniedRequest', 'errorMessage' => 'Your request was denied due to instance flow control.', 'description' => ''],
                ],
                500 => [
                    ['errorCode' => 'InternalError', 'errorMessage' => 'An internal server error occurred.', 'description' => ''],
                    ['errorCode' => 'NetworkException', 'errorMessage' => 'A network error occurred.', 'description' => ''],
                    ['errorCode' => 'RequestTimeout', 'errorMessage' => '​The request is timeout.', 'description' => ''],
                ],
            ],
            'title' => 'Query products by ID',
            'summary' => 'This topic describes the syntax and examples of the GetProductInfoByIds operation for online calls to the Taobao Alliance edition.',
            'description' => '## Operation description'."\n"
                .'This operation is used for online calls to the Taobao Alliance edition.'."\n"
                .'> We recommend that you use SDK 1.2.3 or later, which returns dynamic product IDs.'."\n"
                ."\n"
                .'## QPS limit'."\n"
                .'The default QPS limit for query operations is 5.',
            'extraInfo' => '## Error codes'."\n"
                .'For more information, see [Error codes](~~66619~~).',
            'changeSet' => [],
            'ramActions' => [
                [
                    'operationType' => '',
                    'ramAction' => [
                        'action' => 'imagesearch:GetProductInfoByIds',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'ImageSearch', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Success\\": true,\\n  \\"Code\\": 0,\\n  \\"Message\\": \\"success\\",\\n  \\"Data\\": {\\n    \\"Auctions\\": [\\n      {\\n        \\"Result\\": {\\n          \\"InputItemId\\": \\"123000123\\",\\n          \\"ItemId\\": \\"Oqz93kougf9bkN7f4ACMtJ\\",\\n          \\"Title\\": \\"xxx套装\\",\\n          \\"ShortTitle\\": \\"xxx套装\\",\\n          \\"SubTitle\\": \\"xxx套装\\",\\n          \\"PicUrl\\": \\"//img.alicdn.com/i1/FXXXXXXXXXX.jpg\\",\\n          \\"ReservePrice\\": \\"150\\",\\n          \\"ZkFinalPrice\\": \\"98\\",\\n          \\"PriceAfterCoupon\\": \\"90\\",\\n          \\"UserType\\": 0,\\n          \\"Provcity\\": \\"广东 深圳\\",\\n          \\"Nick\\": \\"衣服专卖店\\",\\n          \\"SellerId\\": \\"32590610\\",\\n          \\"CategoryName\\": \\"连衣裙\\",\\n          \\"Volume\\": 500,\\n          \\"LevelOneCategoryName\\": \\"童装/婴儿装/亲子装\\",\\n          \\"CouponTotalCount\\": \\"10000\\",\\n          \\"CouponRemainCount\\": 0,\\n          \\"CouponStartTime\\": \\"2021-05-01\\",\\n          \\"CouponEndTime\\": \\"2021-06-01\\",\\n          \\"CouponStartFee\\": \\"98.000000\\",\\n          \\"CouponAmount\\": 8,\\n          \\"CouponInfo\\": \\"满98.0元减5.0元\\",\\n          \\"CommissionRate\\": \\"180\\",\\n          \\"CouponShareUrl\\": \\"tbopen://m.taobao.com/tbopen/index.html?\\",\\n          \\"DeeplinkCouponShareUrl\\": \\"tbopen://m.taobao.com/tbopen/index.html?\\",\\n          \\"Url\\": \\"tbopen://m.taobao.com/tbopen/index.html?\\",\\n          \\"DeeplinkUrl\\": \\"tbopen://m.taobao.com/tbopen/index.html?\\",\\n          \\"ShopTitle\\": \\"xx旗舰店\\",\\n          \\"MaxCommission\\": {\\n            \\"MaxCommissionRate\\": \\"20.4\\",\\n            \\"MaxCommissionClickUrl\\": \\"https://s.click.taobao.com/t?e=xxxx\\",\\n            \\"MaxCommissionCouponShareUrl\\": \\"https://s.click.taobao.com/t?e=xxxx\\"\\n          }\\n        },\\n        \\"RankScore\\": 0.34\\n      }\\n    ]\\n  },\\n  \\"RequestId\\": \\"B3137727-7D6E-488C-BA21-0E034C38A879\\"\\n}","type":"json"}]',
        ],
        'SearchByPic' => [
            'summary' => 'This topic describes the syntax and examples of the SearchByPic operation for online calls to the Taobao Alliance Edition.',
            'methods' => ['post'],
            'schemes' => ['http', 'https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => [],
            'parameters' => [
                [
                    'name' => 'PicContent',
                    'in' => 'formData',
                    'schema' => ['description' => 'The image content.'."\n"
                        .' - The image size cannot exceed 4 MB.'."\n"
                        .' - Image formats: PNG, JPG, JPEG, BMP, GIF, WEBP, TIFF, and PPM.'."\n"
                        .' - The transmission wait time cannot exceed 5 seconds.'."\n"
                        .' - The image cannot contain rotation information.'."\n"
                        .'> - If you use an SDK, you do not need to set the PicContent field. The SDK encapsulates this field as the PicContentObject field.', 'type' => 'string', 'required' => true, 'isFileTransferUrl' => true, 'example' => 'xxx', 'title' => ''],
                ],
                [
                    'name' => 'CategoryId',
                    'in' => 'formData',
                    'schema' => [
                        'description' => 'The image category. For more information, see [Category reference](~~179184~~).'."\n"
                            .'> If you specify a category, the specified category is used. If you do not specify a category, the system predicts the category. You can obtain the predicted category result from the response.',
                        'type' => 'integer',
                        'format' => 'int32',
                        'required' => false,
                        'maximum' => '88888888',
                        'minimum' => '0',
                        'enum' => ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '20', '21', '22', '88888888'],
                        'example' => '88888888',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'Pid',
                    'in' => 'formData',
                    'schema' => ['description' => 'The PID. For more information, see [PID](https://mos.m.taobao.com/union/pub/site/help?spm=a219t.11817172.PortalLayout.d52e56935.27ac6a15wlAEHe).'."\n"
                        .'> This field is available when you use SDK V1.1.0 or later.', 'type' => 'string', 'required' => false, 'example' => 'mm_xxx_xxx_xxx', 'title' => ''],
                ],
                [
                    'name' => 'UserType',
                    'in' => 'query',
                    'schema' => [
                        'description' => 'The seller type.'."\n"
                            ."\n"
                            .'- 1: Tmall.'."\n"
                            ."\n"
                            .'- 0: Taobao.',
                        'type' => 'integer',
                        'format' => 'int64',
                        'maximum' => '1',
                        'minimum' => '0',
                        'enum' => ['0', '1'],
                        'required' => false,
                        'example' => '0',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'Crop',
                    'in' => 'formData',
                    'schema' => ['description' => 'Specifies whether to perform subject identification. Default value: true.'."\n"
                        .' - If this parameter is set to true, the system performs subject identification. We recommend that you use this method.'."\n"
                        .'- If this parameter is set to false, subject identification is not performed, and the entire image is used for the search.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
                ],
                [
                    'name' => 'Region',
                    'in' => 'formData',
                    'schema' => ['description' => 'The subject region of the image, in the format of `x1,x2,y1,y2`, where `x1,y1` is the upper-left point and `x2,y2` is the lower-right point.'."\n"
                        .'> If you specify Region, the system uses the specified Region for the search regardless of the value of the Crop parameter.', 'type' => 'string', 'required' => false, 'example' => '280,486,232,351', 'title' => ''],
                ],
                [
                    'name' => 'Start',
                    'in' => 'formData',
                    'schema' => ['description' => 'The start position of the returned results. Valid values: 0 to 499. Default value: 0.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '499', 'minimum' => '0', 'default' => '0', 'example' => '0', 'title' => ''],
                ],
                [
                    'name' => 'Num',
                    'in' => 'formData',
                    'schema' => ['description' => 'The number of returned results. Valid values: 1 to 20. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '20', 'minimum' => '1', 'default' => '10', 'example' => '10', 'title' => ''],
                ],
                [
                    'name' => 'Fields',
                    'in' => 'formData',
                    'schema' => ['description' => 'The list of fields to return. Separate multiple fields with commas. The PicUrl, ReservePrice, Title, Url, and ZkFinalPrice fields are always returned by default.', 'type' => 'string', 'required' => false, 'example' => 'Url,UserType', 'title' => ''],
                ],
                [
                    'name' => 'RelationId',
                    'in' => 'formData',
                    'schema' => ['description' => 'The channel ID. This parameter is used to distinguish channels in Taobao Alliance.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1125526', 'title' => ''],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'Success' => ['description' => 'Indicates whether the request is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                            'Code' => ['description' => 'The error code.'."\n"
                                ."\n"
                                .'- 0: success.'."\n"
                                ."\n"
                                .'- Non-zero: failure.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'sucess', 'title' => ''],
                            'Data' => [
                                'description' => 'The collection of recognition results.',
                                'type' => 'object',
                                'properties' => [
                                    'Auctions' => [
                                        'description' => 'The recognition results.',
                                        'type' => 'array',
                                        'items' => [
                                            'description' => 'The query result content.',
                                            'type' => 'object',
                                            'properties' => [
                                                'Result' => [
                                                    'description' => 'The query result.',
                                                    'type' => 'object',
                                                    'properties' => [
                                                        'ItemId' => ['description' => 'The product ID.', 'type' => 'string', 'example' => 'casdcascascasc-dsasdasdasdasdas', 'title' => ''],
                                                        'Title' => ['description' => 'The product title.', 'type' => 'string', 'example' => 'xxx套装', 'title' => ''],
                                                        'ShortTitle' => ['description' => 'The short product title. We recommend that you use this title on mobile devices.', 'type' => 'string', 'example' => 'yyy套装', 'title' => ''],
                                                        'SubTitle' => ['description' => 'The product subtitle.', 'type' => 'string', 'example' => 'xxx套装', 'title' => ''],
                                                        'PicUrl' => ['description' => 'The main product image URL.', 'type' => 'string', 'example' => '//img.alicdn.com/i1/FXXXXXXXXXX.jpg', 'title' => ''],
                                                        'ReservePrice' => ['description' => 'The fixed price, which is usually displayed as the original price with a strikethrough.', 'type' => 'string', 'example' => '158', 'title' => ''],
                                                        'ZkFinalPrice' => ['description' => 'The online selling price in CNY. If the product is a pre-sale product, the online selling price equals the pre-sale price during the deposit payment period.', 'type' => 'string', 'example' => '98', 'title' => ''],
                                                        'PriceAfterCoupon' => ['description' => 'The price after the coupon is applied.', 'type' => 'string', 'example' => '90', 'title' => ''],
                                                        'UserType' => ['description' => 'The seller type.'."\n"
                                                            ."\n"
                                                            .'- 1: Tmall.'."\n"
                                                            ."\n"
                                                            .'- 0: Taobao.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
                                                        'Provcity' => ['description' => 'The location of the product.', 'type' => 'string', 'example' => '广东 深圳', 'title' => ''],
                                                        'Nick' => ['description' => 'The seller nickname.', 'type' => 'string', 'example' => '衣服专卖店', 'title' => ''],
                                                        'SellerId' => ['description' => 'The seller ID.', 'type' => 'string', 'example' => '32590610', 'title' => ''],
                                                        'Volume' => ['description' => 'The sales volume in the last 30 days.', 'type' => 'integer', 'format' => 'int32', 'example' => '500', 'title' => ''],
                                                        'LevelOneCategoryName' => ['description' => 'The leaf category name.', 'type' => 'string', 'example' => '童装/婴儿装/亲子装', 'title' => ''],
                                                        'CategoryName' => ['description' => 'The level-1 category name.', 'type' => 'string', 'example' => '连衣裙', 'title' => ''],
                                                        'CouponTotalCount' => ['description' => 'The total number of coupons.', 'type' => 'string', 'example' => '100000', 'title' => ''],
                                                        'CouponRemainCount' => ['description' => 'The remaining number of coupons.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
                                                        'CouponStartTime' => ['description' => 'The start time of the coupon.', 'type' => 'string', 'example' => '2021-05-01', 'title' => ''],
                                                        'CouponEndTime' => ['description' => 'The end time of the coupon.', 'type' => 'string', 'example' => '2021-06-01', 'title' => ''],
                                                        'CouponStartFee' => ['description' => 'The minimum spend threshold for the coupon. For example, a coupon that provides a CNY 20 discount on purchases of CNY 299 or more.', 'type' => 'string', 'example' => '98.000000', 'title' => ''],
                                                        'CouponAmount' => ['description' => 'The coupon amount in CNY. If the product is a pre-sale product, the coupon can be used for the final payment but not for the deposit.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''],
                                                        'CouponInfo' => ['description' => 'The coupon discount information.', 'type' => 'string', 'example' => '满98.0元减5.0元', 'title' => ''],
                                                        'CommissionRate' => ['description' => 'The commission rate. For example, 1550 indicates 15.5%.', 'type' => 'string', 'example' => '180', 'title' => ''],
                                                        'CouponShareUrl' => ['description' => 'The combined product and coupon page URL.', 'type' => 'string', 'example' => '//uland.taobao.com/xxxxxxx', 'title' => ''],
                                                        'DeeplinkCouponShareUrl' => ['description' => 'The deep link for launching the Taobao app with the coupon.', 'type' => 'string', 'example' => 'tbopen://m.taobao.com/tbopen/index.html?', 'title' => ''],
                                                        'Url' => ['description' => 'The product promotion URL.', 'type' => 'string', 'example' => '//s.click.taobao.com/t?xxxxxx', 'title' => ''],
                                                        'DeeplinkUrl' => ['description' => 'The deep link for product promotion.', 'type' => 'string', 'example' => 'tbopen://m.taobao.com/tbopen/index.html?', 'title' => ''],
                                                        'ShopTitle' => ['description' => 'The shop name.', 'type' => 'string', 'example' => 'xx旗舰店', 'title' => ''],
                                                        'MaxCommission' => [
                                                            'description' => 'The highest commission information.',
                                                            'type' => 'object',
                                                            'properties' => [
                                                                'MaxCommissionRate' => ['description' => 'The highest commission rate. For example, 20.4 indicates a commission rate of 20.4%.', 'type' => 'string', 'example' => '20.4', 'title' => ''],
                                                                'MaxCommissionClickUrl' => ['description' => 'The product promotion URL with the highest commission rate.', 'type' => 'string', 'example' => 'https://s.click.taobao.com/t?e=xxxx', 'title' => ''],
                                                                'MaxCommissionCouponShareUrl' => ['description' => 'The combined product and coupon page URL with the highest commission rate.', 'type' => 'string', 'example' => 'https://uland.taobao.com/coupon/xxxx', 'title' => ''],
                                                            ],
                                                            'title' => '',
                                                            'example' => '',
                                                        ],
                                                    ],
                                                    'title' => '',
                                                    'example' => '',
                                                ],
                                                'RankScore' => ['description' => 'The ranking score of product similarity. Valid values: 0 to 1.', 'type' => 'number', 'format' => 'float', 'example' => '0.337', 'title' => ''],
                                            ],
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'title' => '',
                                        'example' => '',
                                    ],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'B3137727-7D6E-488C-BA21-0E034C38A879', 'title' => ''],
                            'PicInfo' => [
                                'description' => 'The information such as category prediction and subject identification results.',
                                'type' => 'object',
                                'properties' => [
                                    'MainRegion' => [
                                        'description' => 'The multi-category information of the subject.',
                                        'type' => 'object',
                                        'properties' => [
                                            'Region' => ['description' => 'The subject identification result. The subject region of the image, in the format of x1,x2,y1,y2, where x1,y1 is the upper-left point and x2,y2 is the lower-right point. If you specify the subject region in the request, the specified region is used.', 'type' => 'string', 'example' => '280,486,232,351', 'title' => ''],
                                            'MultiCategoryId' => [
                                                'description' => 'The collection of category prediction results for the subject prediction region.',
                                                'type' => 'array',
                                                'items' => [
                                                    'description' => 'The category prediction result for the subject prediction region.',
                                                    'type' => 'object',
                                                    'properties' => [
                                                        'CategoryId' => ['description' => 'The image category. For more information, see [Category reference](~~179184~~).', 'type' => 'integer', 'format' => 'int32', 'example' => '88888888', 'title' => ''],
                                                        'Score' => ['description' => 'The predicted category score. Valid values: 0 to 1.', 'type' => 'number', 'format' => 'float', 'example' => '0.34', 'title' => ''],
                                                    ],
                                                    'title' => '',
                                                    'example' => '',
                                                ],
                                                'title' => '',
                                                'example' => '',
                                            ],
                                        ],
                                        'title' => '',
                                        'example' => '',
                                    ],
                                    'MultiRegion' => [
                                        'description' => 'The collection of subject identification results.',
                                        'type' => 'array',
                                        'items' => [
                                            'description' => 'The subject identification result.',
                                            'type' => 'object',
                                            'properties' => [
                                                'Region' => ['description' => 'The subject identification result. The subject region of the image, in the format of x1,x2,y1,y2, where x1,y1 is the upper-left point and x2,y2 is the lower-right point. If you specify the subject region in the request, the specified region is used.', 'type' => 'string', 'example' => '280,486,232,351', 'title' => ''],
                                            ],
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'title' => '',
                                        'example' => '',
                                    ],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'InvalidPicContent', 'errorMessage' => 'The specified parameter PicContent length greater than 4 * 1024 * 1024.', 'description' => ''],
                    ['errorCode' => 'InvalidPid', 'errorMessage' => 'The parameter Pid no specified', 'description' => ''],
                    ['errorCode' => 'BadRequest', 'errorMessage' => 'The request has invalid parameters.', 'description' => ''],
                    ['errorCode' => 'NoSpecifiedSearchPic', 'errorMessage' => 'The search image is not specified.', 'description' => ''],
                    ['errorCode' => 'InvalidCategory', 'errorMessage' => 'The specified category is invalid.', 'description' => ''],
                    ['errorCode' => 'OverflowMaxResultNum', 'errorMessage' => 'The specified number of total results exceeds the maximum of 500.', 'description' => ''],
                    ['errorCode' => 'OverflowMaxReturnNum', 'errorMessage' => 'The specified number of results for each request exceeds the maximum of 100.', 'description' => ''],
                    ['errorCode' => 'InvalidStartParameter', 'errorMessage' => 'The specified parameter start is inavlid.', 'description' => ''],
                    ['errorCode' => 'InvalidNumParameter', 'errorMessage' => 'The specified parameter num is invalid.', 'description' => ''],
                    ['errorCode' => 'InvalidIntAttr', 'errorMessage' => 'The specified int_attr field is invalid.', 'description' => ''],
                    ['errorCode' => 'UnsupportedPicFormat', 'errorMessage' => 'The specified image format is invalid.', 'description' => ''],
                    ['errorCode' => 'InvalidFilterClause', 'errorMessage' => 'The specified filtering condition is invalid.', 'description' => ''],
                    ['errorCode' => 'IncorrectOrientation', 'errorMessage' => 'The image contains incorrect rotation flags in the meta data.', 'description' => ''],
                    ['errorCode' => 'UnsupportedPicPixels', 'errorMessage' => 'The specified pixels is not supported.', 'description' => ''],
                    ['errorCode' => 'SearchTimeout', 'errorMessage' => 'The request is timed out.', 'description' => ''],
                    ['errorCode' => 'NoSpecifiedPicContent', 'errorMessage' => 'The parameter PicContent no specified.', 'description' => ''],
                    ['errorCode' => 'InvalidCustomContent', 'errorMessage' => 'The specified parameter CustomContent is not valid.', 'description' => ''],
                    ['errorCode' => 'NotRegisterBeforeInvoke', 'errorMessage' => 'Need register token: pid before invoke.', 'description' => ''],
                ],
                403 => [
                    ['errorCode' => 'DeniedRequest', 'errorMessage' => 'Your request was denied due to instance flow control.', 'description' => ''],
                    ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to perform this operation.', 'description' => ''],
                ],
                500 => [
                    ['errorCode' => 'UnknownException', 'errorMessage' => 'An internal server error occurred.', 'description' => ''],
                    ['errorCode' => 'NetworkException', 'errorMessage' => 'A network error occurred.', 'description' => ''],
                    ['errorCode' => 'InternalException', 'errorMessage' => 'An internal server error occurred.', 'description' => ''],
                    ['errorCode' => 'RequestTimeout', 'errorMessage' => '​The request is timeout.', 'description' => ''],
                ],
            ],
            'title' => 'Search by image',
            'description' => '## Usage notes'."\n"
                .'This operation is used for online calls to the Taobao Alliance Edition.'."\n"
                ."\n"
                .'## QPS limit'."\n"
                .'The default QPS limit for query operations is 5.',
            'extraInfo' => '## Error codes'."\n"
                .'For more information, see [Error codes](~~66619~~).',
            'changeSet' => [],
            'ramActions' => [
                [
                    'operationType' => '',
                    'ramAction' => [
                        'action' => 'imagesearch:SearchByPic',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'ImageSearch', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Success\\": true,\\n  \\"Code\\": 0,\\n  \\"Message\\": \\"sucess\\",\\n  \\"Data\\": {\\n    \\"Auctions\\": [\\n      {\\n        \\"Result\\": {\\n          \\"ItemId\\": \\"casdcascascasc-dsasdasdasdasdas\\",\\n          \\"Title\\": \\"xxx套装\\",\\n          \\"ShortTitle\\": \\"yyy套装\\",\\n          \\"SubTitle\\": \\"xxx套装\\",\\n          \\"PicUrl\\": \\"//img.alicdn.com/i1/FXXXXXXXXXX.jpg\\",\\n          \\"ReservePrice\\": \\"158\\",\\n          \\"ZkFinalPrice\\": \\"98\\",\\n          \\"PriceAfterCoupon\\": \\"90\\",\\n          \\"UserType\\": 0,\\n          \\"Provcity\\": \\"广东 深圳\\",\\n          \\"Nick\\": \\"衣服专卖店\\",\\n          \\"SellerId\\": \\"32590610\\",\\n          \\"Volume\\": 500,\\n          \\"LevelOneCategoryName\\": \\"童装/婴儿装/亲子装\\",\\n          \\"CategoryName\\": \\"连衣裙\\",\\n          \\"CouponTotalCount\\": \\"100000\\",\\n          \\"CouponRemainCount\\": 0,\\n          \\"CouponStartTime\\": \\"2021-05-01\\",\\n          \\"CouponEndTime\\": \\"2021-06-01\\",\\n          \\"CouponStartFee\\": \\"98.000000\\",\\n          \\"CouponAmount\\": 5,\\n          \\"CouponInfo\\": \\"满98.0元减5.0元\\",\\n          \\"CommissionRate\\": \\"180\\",\\n          \\"CouponShareUrl\\": \\"//uland.taobao.com/xxxxxxx\\",\\n          \\"DeeplinkCouponShareUrl\\": \\"tbopen://m.taobao.com/tbopen/index.html?\\",\\n          \\"Url\\": \\"//s.click.taobao.com/t?xxxxxx\\",\\n          \\"DeeplinkUrl\\": \\"tbopen://m.taobao.com/tbopen/index.html?\\",\\n          \\"ShopTitle\\": \\"xx旗舰店\\",\\n          \\"MaxCommission\\": {\\n            \\"MaxCommissionRate\\": \\"20.4\\",\\n            \\"MaxCommissionClickUrl\\": \\"https://s.click.taobao.com/t?e=xxxx\\",\\n            \\"MaxCommissionCouponShareUrl\\": \\"https://uland.taobao.com/coupon/xxxx\\"\\n          }\\n        },\\n        \\"RankScore\\": 0.337\\n      }\\n    ]\\n  },\\n  \\"RequestId\\": \\"B3137727-7D6E-488C-BA21-0E034C38A879\\",\\n  \\"PicInfo\\": {\\n    \\"MainRegion\\": {\\n      \\"Region\\": \\"280,486,232,351\\",\\n      \\"MultiCategoryId\\": [\\n        {\\n          \\"CategoryId\\": 88888888,\\n          \\"Score\\": 0.34\\n        }\\n      ]\\n    },\\n    \\"MultiRegion\\": [\\n      {\\n        \\"Region\\": \\"280,486,232,351\\"\\n      }\\n    ]\\n  }\\n}","type":"json"}]',
        ],
        'SearchByUrl' => [
            'summary' => 'This topic describes the syntax and provides examples of the SearchByUrl operation, which is used for online calls to the Taobao Affiliate edition.',
            'methods' => ['post'],
            'schemes' => ['http', 'https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => [],
            'parameters' => [
                [
                    'name' => 'PicUrl',
                    'in' => 'formData',
                    'schema' => ['description' => 'The image URL. The URL must start with HTTP or HTTPS.', 'type' => 'string', 'required' => true, 'example' => 'https://oss-test.oss-cn-shanghai.aliyuncs.com/xxxx.jpg', 'title' => ''],
                ],
                [
                    'name' => 'CategoryId',
                    'in' => 'formData',
                    'schema' => [
                        'description' => 'The image category. For more information, see [Category reference](~~179184~~).'."\n"
                            .'> If you specify a category, the specified category is used. If you do not specify a category, the system predicts the category. You can obtain the predicted category result from the response.',
                        'type' => 'integer',
                        'format' => 'int32',
                        'required' => false,
                        'maximum' => '88888888',
                        'minimum' => '0',
                        'enum' => ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '20', '21', '22', '88888888'],
                        'example' => '88888888',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'Pid',
                    'in' => 'formData',
                    'schema' => ['description' => 'The PID. For more information, see [PID](https://help.alimama.com/?spm=a219t.23786078.0.0.290575a55P1LBx#!/search/index?spm=&keyWord=PID&knowledgeId=5625118&categoryId=1000040170).'."\n"
                        .'> This field is available when you use SDK V1.1.0 or later.', 'type' => 'string', 'required' => false, 'example' => 'mm_xxx_xxx_xxx', 'title' => ''],
                ],
                [
                    'name' => 'UserType',
                    'in' => 'query',
                    'schema' => [
                        'description' => 'The seller type.'."\n"
                            ."\n"
                            .'- 1: Tmall.'."\n"
                            ."\n"
                            .'- 0: Taobao.',
                        'type' => 'integer',
                        'format' => 'int64',
                        'maximum' => '1',
                        'minimum' => '0',
                        'enum' => ['0', '1'],
                        'required' => false,
                        'example' => '0',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'Crop',
                    'in' => 'formData',
                    'schema' => ['description' => 'Specifies whether to perform subject identification. Default value: true.'."\n"
                        .' - true: The system performs subject identification. We recommend that you use this option.'."\n"
                        .'- false: Subject identification is not performed, and the entire image is used for the search.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
                ],
                [
                    'name' => 'Region',
                    'in' => 'formData',
                    'schema' => ['description' => 'The subject region of the image, in the format of `x1,x2,y1,y2`, where `x1,y1` is the upper-left point and `x2,y2` is the lower-right point.'."\n"
                        .'> If you specify Region, the system uses the specified Region for the search regardless of the value of the Crop parameter.', 'type' => 'string', 'required' => false, 'example' => '280,486,232,351', 'title' => ''],
                ],
                [
                    'name' => 'Start',
                    'in' => 'formData',
                    'schema' => ['description' => 'The start position of the returned results. Valid values: 0 to 499. Default value: 0.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '499', 'minimum' => '0', 'default' => '0', 'example' => '0', 'title' => ''],
                ],
                [
                    'name' => 'Num',
                    'in' => 'formData',
                    'schema' => ['description' => 'The number of returned results. Valid values: 1 to 20. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '20', 'minimum' => '1', 'default' => '10', 'example' => '10', 'title' => ''],
                ],
                [
                    'name' => 'Fields',
                    'in' => 'formData',
                    'schema' => ['description' => 'The list of fields to return. Separate multiple fields with commas. The PicUrl, ReservePrice, Title, Url, and ZkFinalPrice fields are always returned by default. You can select from the following values: ItemId, Title, PicUrl, ReservePrice, ZkFinalPrice, UserType, Provcity, Nick, SellerId, Volume, LevelOneCategoryName, CategoryName, CouponTotalCount, CouponRemainCount, CouponStartTime, CouponEndTime, CouponStartFee, CouponAmount, CouponInfo, CommissionRate, CouponShareUrl, Url, ShopTitle.', 'type' => 'string', 'required' => false, 'example' => 'Url,UserType', 'title' => ''],
                ],
                [
                    'name' => 'RelationId',
                    'in' => 'formData',
                    'schema' => ['description' => 'The channel ID. This parameter is used to distinguish channels in Taobao Affiliate.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1125526', 'title' => ''],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'Success' => ['description' => 'Indicates whether the request is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                            'Code' => ['description' => 'The error code.'."\n"
                                ."\n"
                                .'- 0: success.'."\n"
                                ."\n"
                                .'- Non-zero: failure.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
                            'Data' => [
                                'description' => 'The collection of recognition results.',
                                'type' => 'object',
                                'properties' => [
                                    'Auctions' => [
                                        'description' => 'The recognition results.',
                                        'type' => 'array',
                                        'items' => [
                                            'description' => 'The query result content.',
                                            'type' => 'object',
                                            'properties' => [
                                                'Result' => [
                                                    'description' => 'The query result.',
                                                    'type' => 'object',
                                                    'properties' => [
                                                        'ItemId' => ['description' => 'The product ID.', 'type' => 'string', 'example' => '0gkRpWudf8Qk6G0AqU6NZH2t6-4asdasdaszxczxpz', 'title' => ''],
                                                        'Title' => ['description' => 'The product title.', 'type' => 'string', 'example' => 'xxx套装', 'title' => ''],
                                                        'ShortTitle' => ['description' => 'The short title of the product. We recommend that you use this field on mobile devices.', 'type' => 'string', 'example' => 'yyy套装', 'title' => ''],
                                                        'SubTitle' => ['description' => 'The subtitle of the product.', 'type' => 'string', 'example' => 'xxx套装', 'title' => ''],
                                                        'PicUrl' => ['description' => 'The main image URL of the product.', 'type' => 'string', 'example' => '//img.alicdn.com/i1/FXXXXXXXXXX.jpg', 'title' => ''],
                                                        'ReservePrice' => ['description' => 'The fixed price, which is usually displayed as the original price with a strikethrough.', 'type' => 'string', 'example' => '158', 'title' => ''],
                                                        'ZkFinalPrice' => ['description' => 'The online selling price in CNY. For pre-sale products, the online selling price equals the pre-sale price during the deposit payment period.', 'type' => 'string', 'example' => '98', 'title' => ''],
                                                        'PriceAfterCoupon' => ['description' => 'The price after the coupon is applied.', 'type' => 'string', 'example' => '90', 'title' => ''],
                                                        'UserType' => ['description' => 'The seller type.'."\n"
                                                            ."\n"
                                                            .'- 1: Tmall.'."\n"
                                                            ."\n"
                                                            .'- 0: Taobao.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
                                                        'Provcity' => ['description' => 'The location of the product.', 'type' => 'string', 'example' => '广东 深圳', 'title' => ''],
                                                        'Nick' => ['description' => 'The nickname of the seller.', 'type' => 'string', 'example' => '衣服专卖店', 'title' => ''],
                                                        'SellerId' => ['description' => 'The seller ID.', 'type' => 'string', 'example' => '32590610', 'title' => ''],
                                                        'Volume' => ['description' => 'The sales volume in the last 30 days.', 'type' => 'integer', 'format' => 'int32', 'example' => '500', 'title' => ''],
                                                        'LevelOneCategoryName' => ['description' => 'The name of the leaf category.', 'type' => 'string', 'example' => '童装/婴儿装/亲子装', 'title' => ''],
                                                        'CategoryName' => ['description' => 'The name of the level-1 category.', 'type' => 'string', 'example' => '连衣裙', 'title' => ''],
                                                        'CouponTotalCount' => ['description' => 'The total number of coupons.', 'type' => 'string', 'example' => '100000', 'title' => ''],
                                                        'CouponRemainCount' => ['description' => 'The number of remaining coupons.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
                                                        'CouponStartTime' => ['description' => 'The start time of the coupon.', 'type' => 'string', 'example' => '2021-05-01', 'title' => ''],
                                                        'CouponEndTime' => ['description' => 'The end time of the coupon.', 'type' => 'string', 'example' => '2021-06-01', 'title' => ''],
                                                        'CouponStartFee' => ['description' => 'The minimum spend required to use the coupon. For example, spend CNY 299 to save CNY 20.', 'type' => 'string', 'example' => '98.000000', 'title' => ''],
                                                        'CouponAmount' => ['description' => 'The coupon amount in CNY. For pre-sale products, the coupon can be used for the final payment but not for the deposit.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''],
                                                        'CouponInfo' => ['description' => 'The coupon discount information.', 'type' => 'string', 'example' => '满98.0元减5.0元', 'title' => ''],
                                                        'CommissionRate' => ['description' => 'The commission rate. For example, 1550 indicates 15.5%.', 'type' => 'string', 'example' => '180', 'title' => ''],
                                                        'CouponShareUrl' => ['description' => 'The combined product and coupon page URL.', 'type' => 'string', 'example' => '//uland.taobao.com/cxxxxxx', 'title' => ''],
                                                        'DeeplinkCouponShareUrl' => ['description' => 'The deep link for launching the Taobao mobile app with the coupon.', 'type' => 'string', 'example' => 'tbopen://m.taobao.com/tbopen/index.html?', 'title' => ''],
                                                        'Url' => ['description' => 'The product promotion URL.', 'type' => 'string', 'example' => '//s.click.taobao.com/t?xxxxxx', 'title' => ''],
                                                        'DeeplinkUrl' => ['description' => 'The deep link for product promotion.', 'type' => 'string', 'example' => 'tbopen://m.taobao.com/tbopen/index.html?', 'title' => ''],
                                                        'ShopTitle' => ['description' => 'The shop name.', 'type' => 'string', 'example' => 'xx旗舰店', 'title' => ''],
                                                        'MaxCommission' => [
                                                            'description' => 'The high commission information.',
                                                            'type' => 'object',
                                                            'properties' => [
                                                                'MaxCommissionRate' => ['description' => 'The optimal commission rate. For example, 20.4 indicates a commission rate of 20.4%.', 'type' => 'string', 'example' => '20.4', 'title' => ''],
                                                                'MaxCommissionClickUrl' => ['description' => 'The product promotion URL with the optimal commission rate.', 'type' => 'string', 'example' => 'https://s.click.taobao.com/t?e=xxxx', 'title' => ''],
                                                                'MaxCommissionCouponShareUrl' => ['description' => 'The combined product and coupon page URL with the optimal commission rate.', 'type' => 'string', 'example' => 'https://s.click.taobao.com/t?e=xxxx', 'title' => ''],
                                                            ],
                                                            'title' => '',
                                                            'example' => '',
                                                        ],
                                                    ],
                                                    'title' => '',
                                                    'example' => '',
                                                ],
                                                'RankScore' => ['description' => 'The ranking score of product similarity. Valid values: 0 to 1.', 'type' => 'number', 'format' => 'float', 'example' => '0.337', 'title' => ''],
                                            ],
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'title' => '',
                                        'example' => '',
                                    ],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'B3137727-7D6E-488C-BA21-0E034C38A879', 'title' => ''],
                            'PicInfo' => [
                                'description' => 'The information such as category prediction and subject identification results.',
                                'type' => 'object',
                                'properties' => [
                                    'MainRegion' => [
                                        'description' => 'The multi-category information of the subject.',
                                        'type' => 'object',
                                        'properties' => [
                                            'Region' => ['description' => 'The subject identification result. The subject region of the image, in the format of x1,x2,y1,y2, where x1,y1 is the upper-left point and x2,y2 is the lower-right point. If you specify the subject region in the request, the specified region is used.', 'type' => 'string', 'example' => '280,486,232,351', 'title' => ''],
                                            'MultiCategoryId' => [
                                                'description' => 'The collection of category prediction results for the subject prediction region.',
                                                'type' => 'array',
                                                'items' => [
                                                    'description' => 'The category prediction result for the subject prediction region.',
                                                    'type' => 'object',
                                                    'properties' => [
                                                        'CategoryId' => ['description' => 'The image category. For more information, see [Category reference](~~179184~~).', 'type' => 'integer', 'format' => 'int32', 'example' => '88888888', 'title' => ''],
                                                        'Score' => ['description' => 'The predicted category score. Valid values: 0 to 1.', 'type' => 'number', 'format' => 'float', 'example' => '0.34', 'title' => ''],
                                                    ],
                                                    'title' => '',
                                                    'example' => '',
                                                ],
                                                'title' => '',
                                                'example' => '',
                                            ],
                                        ],
                                        'title' => '',
                                        'example' => '',
                                    ],
                                    'MultiRegion' => [
                                        'description' => 'The collection of subject identification results.',
                                        'type' => 'array',
                                        'items' => [
                                            'description' => 'The subject identification result.',
                                            'type' => 'object',
                                            'properties' => [
                                                'Region' => ['description' => 'The subject identification result. The subject region of the image, in the format of x1,x2,y1,y2, where x1,y1 is the upper-left point and x2,y2 is the lower-right point. If you specify the subject region in the request, the specified region is used.', 'type' => 'string', 'example' => '280,486,232,351', 'title' => ''],
                                            ],
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'title' => '',
                                        'example' => '',
                                    ],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'PidNotExist', 'errorMessage' => 'The parameter specified Pid not exist', 'description' => ''],
                    ['errorCode' => 'InvalidPid', 'errorMessage' => 'The parameter Pid no specified', 'description' => ''],
                    ['errorCode' => 'BadRequest', 'errorMessage' => 'The request has invalid parameters.', 'description' => ''],
                    ['errorCode' => 'InstanceStatusError', 'errorMessage' => 'Your instance is unavailable.', 'description' => ''],
                    ['errorCode' => 'TimeoutForTransferImage', 'errorMessage' => 'Timeout after 5 seconds waiting for images transfer to complete.', 'description' => ''],
                    ['errorCode' => 'NoSpecifiedSearchPic', 'errorMessage' => 'The search image is not specified.', 'description' => ''],
                    ['errorCode' => 'InvalidCategory', 'errorMessage' => 'The specified category is invalid.', 'description' => ''],
                    ['errorCode' => 'OverflowMaxResultNum', 'errorMessage' => 'The specified number of total results exceeds the maximum of 500.', 'description' => ''],
                    ['errorCode' => 'OverflowMaxReturnNum', 'errorMessage' => 'The specified number of results for each request exceeds the maximum of 100.', 'description' => ''],
                    ['errorCode' => 'InvalidStartParameter', 'errorMessage' => 'The specified parameter start is inavlid.', 'description' => ''],
                    ['errorCode' => 'InvalidNumParameter', 'errorMessage' => 'The specified parameter num is invalid.', 'description' => ''],
                    ['errorCode' => 'InvalidIntAttr', 'errorMessage' => 'The specified int_attr field is invalid.', 'description' => ''],
                    ['errorCode' => 'UnsupportedPicFormat', 'errorMessage' => 'The specified image format is invalid.', 'description' => ''],
                    ['errorCode' => 'InvalidFilterClause', 'errorMessage' => 'The specified filtering condition is invalid.', 'description' => ''],
                    ['errorCode' => 'IncorrectOrientation', 'errorMessage' => 'The image contains incorrect rotation flags in the meta data.', 'description' => ''],
                    ['errorCode' => 'UnsupportedPicPixels', 'errorMessage' => 'The specified pixels is not supported.', 'description' => ''],
                    ['errorCode' => 'SearchTimeout', 'errorMessage' => 'The request is timed out.', 'description' => ''],
                    ['errorCode' => 'NoSpecifiedPicContent', 'errorMessage' => 'The parameter PicContent no specified.', 'description' => ''],
                    ['errorCode' => 'InvalidCustomContent', 'errorMessage' => 'The specified parameter CustomContent is not valid.', 'description' => ''],
                    ['errorCode' => 'InvalidPicContent', 'errorMessage' => 'The specified parameter PicContent length greater than 4 * 1024 * 1024.', 'description' => ''],
                    ['errorCode' => 'InvalidPicUrl', 'errorMessage' => 'The specified parameter PicUrl is not valid.', 'description' => ''],
                    ['errorCode' => 'NotRegisterBeforeInvoke', 'errorMessage' => 'Need register token: pid before invoke.', 'description' => ''],
                ],
                403 => [
                    ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to perform this operation.', 'description' => ''],
                    ['errorCode' => 'DeniedRequest', 'errorMessage' => 'Your request was denied due to instance flow control.', 'description' => ''],
                ],
                500 => [
                    ['errorCode' => 'UnknownException', 'errorMessage' => 'An internal server error occurred.', 'description' => ''],
                    ['errorCode' => 'NetworkException', 'errorMessage' => 'A network error occurred.', 'description' => ''],
                    ['errorCode' => 'RequestTimeout', 'errorMessage' => '​The request is timeout.', 'description' => ''],
                ],
            ],
            'title' => 'Search by image URL',
            'description' => '## Usage notes'."\n"
                .'This operation is used for online calls to the Taobao Affiliate edition.'."\n"
                ."\n"
                .'## QPS limit'."\n"
                .'The default QPS limit for query operations is 5.',
            'extraInfo' => '## Error codes'."\n"
                .'For more information, see [Error codes](~~66619~~).',
            'changeSet' => [],
            'ramActions' => [
                [
                    'operationType' => '',
                    'ramAction' => [
                        'action' => 'imagesearch:SearchByUrl',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'ImageSearch', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Success\\": true,\\n  \\"Code\\": 0,\\n  \\"Message\\": \\"success\\",\\n  \\"Data\\": {\\n    \\"Auctions\\": [\\n      {\\n        \\"Result\\": {\\n          \\"ItemId\\": \\"0gkRpWudf8Qk6G0AqU6NZH2t6-4asdasdaszxczxpz\\",\\n          \\"Title\\": \\"xxx套装\\",\\n          \\"ShortTitle\\": \\"yyy套装\\",\\n          \\"SubTitle\\": \\"xxx套装\\",\\n          \\"PicUrl\\": \\"//img.alicdn.com/i1/FXXXXXXXXXX.jpg\\",\\n          \\"ReservePrice\\": \\"158\\",\\n          \\"ZkFinalPrice\\": \\"98\\",\\n          \\"PriceAfterCoupon\\": \\"90\\",\\n          \\"UserType\\": 0,\\n          \\"Provcity\\": \\"广东 深圳\\",\\n          \\"Nick\\": \\"衣服专卖店\\",\\n          \\"SellerId\\": \\"32590610\\",\\n          \\"Volume\\": 500,\\n          \\"LevelOneCategoryName\\": \\"童装/婴儿装/亲子装\\",\\n          \\"CategoryName\\": \\"连衣裙\\",\\n          \\"CouponTotalCount\\": \\"100000\\",\\n          \\"CouponRemainCount\\": 0,\\n          \\"CouponStartTime\\": \\"2021-05-01\\",\\n          \\"CouponEndTime\\": \\"2021-06-01\\",\\n          \\"CouponStartFee\\": \\"98.000000\\",\\n          \\"CouponAmount\\": 5,\\n          \\"CouponInfo\\": \\"满98.0元减5.0元\\",\\n          \\"CommissionRate\\": \\"180\\",\\n          \\"CouponShareUrl\\": \\"//uland.taobao.com/cxxxxxx\\",\\n          \\"DeeplinkCouponShareUrl\\": \\"tbopen://m.taobao.com/tbopen/index.html?\\",\\n          \\"Url\\": \\"//s.click.taobao.com/t?xxxxxx\\",\\n          \\"DeeplinkUrl\\": \\"tbopen://m.taobao.com/tbopen/index.html?\\",\\n          \\"ShopTitle\\": \\"xx旗舰店\\",\\n          \\"MaxCommission\\": {\\n            \\"MaxCommissionRate\\": \\"20.4\\",\\n            \\"MaxCommissionClickUrl\\": \\"https://s.click.taobao.com/t?e=xxxx\\",\\n            \\"MaxCommissionCouponShareUrl\\": \\"https://s.click.taobao.com/t?e=xxxx\\"\\n          }\\n        },\\n        \\"RankScore\\": 0.337\\n      }\\n    ]\\n  },\\n  \\"RequestId\\": \\"B3137727-7D6E-488C-BA21-0E034C38A879\\",\\n  \\"PicInfo\\": {\\n    \\"MainRegion\\": {\\n      \\"Region\\": \\"280,486,232,351\\",\\n      \\"MultiCategoryId\\": [\\n        {\\n          \\"CategoryId\\": 88888888,\\n          \\"Score\\": 0.34\\n        }\\n      ]\\n    },\\n    \\"MultiRegion\\": [\\n      {\\n        \\"Region\\": \\"280,486,232,351\\"\\n      }\\n    ]\\n  }\\n}","type":"json"}]',
        ],
    ],
    'endpoints' => [
        ['regionId' => 'ap-northeast-1', 'regionName' => 'Japan (Tokyo)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'imagesearch.ap-northeast-1.aliyuncs.com', 'endpoint' => 'imagesearch.ap-northeast-1.aliyuncs.com', 'vpc' => 'imagesearch-vpc.ap-northeast-1.aliyuncs.com'],
        ['regionId' => 'ap-southeast-1', 'regionName' => 'Singapore', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'imagesearch.ap-southeast-1.aliyuncs.com', 'endpoint' => 'imagesearch.ap-southeast-1.aliyuncs.com', 'vpc' => 'imagesearch-vpc.ap-southeast-1.aliyuncs.com'],
        ['regionId' => 'ap-southeast-2', 'regionName' => 'Australia (Sydney) Closed', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'imagesearch.ap-southeast-2.aliyuncs.com', 'endpoint' => 'imagesearch.ap-southeast-2.aliyuncs.com', 'vpc' => 'imagesearch-vpc.ap-southeast-2.aliyuncs.com'],
        ['regionId' => 'cn-beijing', 'regionName' => 'China (Beijing)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'imagesearch.cn-beijing.aliyuncs.com', 'endpoint' => 'imagesearch.cn-beijing.aliyuncs.com', 'vpc' => 'imagesearch-vpc.cn-beijing.aliyuncs.com'],
        ['regionId' => 'cn-hangzhou', 'regionName' => 'China (Hangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'imagesearch.cn-hangzhou.aliyuncs.com', 'endpoint' => 'imagesearch.cn-hangzhou.aliyuncs.com', 'vpc' => 'imagesearch-vpc.cn-hangzhou.aliyuncs.com'],
        ['regionId' => 'cn-hongkong', 'regionName' => 'China (Hong Kong)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'imagesearch.cn-hongkong.aliyuncs.com', 'endpoint' => 'imagesearch.cn-hongkong.aliyuncs.com', 'vpc' => 'imagesearch-vpc.cn-hongkong.aliyuncs.com'],
        ['regionId' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'imagesearch.cn-shanghai.aliyuncs.com', 'endpoint' => 'imagesearch.cn-shanghai.aliyuncs.com', 'vpc' => 'imagesearch-vpc.cn-shanghai.aliyuncs.com'],
        ['regionId' => 'cn-shenzhen', 'regionName' => 'China (Shenzhen)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'imagesearch.cn-shenzhen.aliyuncs.com', 'endpoint' => 'imagesearch.cn-shenzhen.aliyuncs.com', 'vpc' => 'imagesearch-vpc.cn-shenzhen.aliyuncs.com'],
        ['regionId' => 'eu-central-1', 'regionName' => 'Germany (Frankfurt)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'imagesearch.eu-central-1.aliyuncs.com', 'endpoint' => 'imagesearch.eu-central-1.aliyuncs.com', 'vpc' => 'imagesearch-vpc.eu-central-1.aliyuncs.com'],
        ['regionId' => 'ap-south-1', 'regionName' => 'India (Mumbai) Closed', 'areaId' => 'middleEast', 'areaName' => 'Middle East', 'public' => 'imagesearch.ap-south-1.aliyuncs.com', 'endpoint' => 'imagesearch.ap-south-1.aliyuncs.com', 'vpc' => 'imagesearch-vpc.ap-south-1.aliyuncs.com'],
    ],
    'errorCodes' => [
        ['code' => 'AccessEngineFailed', 'message' => 'An error occurred while accessing the search engine.', 'http_code' => 400, 'description' => ''],
        ['code' => 'ConnectionDVException', 'message' => 'Failed to obtain collection.', 'http_code' => 500, 'description' => 'internalError'],
        ['code' => 'Console.BadRequest', 'message' => 'The request has invalid parameters.', 'http_code' => 400, 'description' => 'Invalid request. Check the request parameters.'],
        ['code' => 'Console.CallServiceError', 'message' => 'An internal service error occurred.', 'http_code' => 500, 'description' => ''],
        ['code' => 'Console.InstanceNotFound', 'message' => 'The specified ImageSearch instance is not found.', 'http_code' => 400, 'description' => 'The specified instance ID does not exist. Check the instance ID and try again.'],
        ['code' => 'Console.InstanceStatusError', 'message' => 'The current instance status does not support this operation.', 'http_code' => 409, 'description' => 'Instance status error, please check the instance status'],
        ['code' => 'Console.InternalError', 'message' => 'The request processing has failed due to some unknown error.', 'http_code' => 500, 'description' => 'The server has an internal error. Log on to the Alibaba Cloud console to submit a ticket.'],
        ['code' => 'Console.LoginError', 'message' => 'Check login failed.', 'http_code' => 401, 'description' => 'Login failed, please check whether the user name, password and email address are entered incorrectly.'],
        ['code' => 'Console.MigrateCapacityError', 'message' => 'Migration instance specification error.', 'http_code' => 400, 'description' => 'The specification of the target instance to be migrated is incorrect. The specification of the target instance must be greater than or equal to the specification of the source instance.'],
        ['code' => 'Console.MigrateDocNumError', 'message' => 'Migration target instance doc quantity error.', 'http_code' => 400, 'description' => 'The number of docs for the target instance must be 0.'],
        ['code' => 'Console.MigrateError', 'message' => 'An instance can only have one migration task.', 'http_code' => 400, 'description' => 'An instance can only have one migration task.'],
        ['code' => 'Console.MigrateExistError', 'message' => 'Only one migration task can exist in an instance.', 'http_code' => 400, 'description' => 'Only one migration task can exist in the current instance.'],
        ['code' => 'Console.MigrateTypeError', 'message' => 'Migration instance type error.', 'http_code' => 400, 'description' => 'Both instances must be of the same type.'],
        ['code' => 'Console.ModifyTokenTimesExceed', 'message' => 'You can only modify the token once every day.', 'http_code' => 400, 'description' => ''],
        ['code' => 'Console.NoPermissionError', 'message' => 'You are not authorized to perform this operation.', 'http_code' => 403, 'description' => ''],
        ['code' => 'Console.NotAllowedModifyToken', 'message' => 'You are not allowed to modify token today.', 'http_code' => 403, 'description' => ''],
        ['code' => 'Console.OrderStatusError', 'message' => 'Current Order status not supported this opreate.', 'http_code' => 409, 'description' => 'User order error, please confirm that the order is valid'],
        ['code' => 'Console.PidDescError', 'message' => 'The maximum character length of this PidDesc parameter is 32.', 'http_code' => 400, 'description' => ''],
        ['code' => 'Console.PidError', 'message' => 'The number of PID bindings of the current instance exceeds 50.', 'http_code' => 400, 'description' => ''],
        ['code' => 'Console.TaskAlreadyExist', 'message' => 'A task that is in progress already exists.', 'http_code' => 409, 'description' => ''],
        ['code' => 'DeniedRequest', 'message' => 'Your request was denied due to instance flow control.', 'http_code' => 403, 'description' => ''],
        ['code' => 'EmptyMeta', 'message' => 'The body content has an empty meta field.', 'http_code' => 400, 'description' => ''],
        ['code' => 'ExtractFeatureTimeout', 'message' => 'The request timed out while extracting features.', 'http_code' => 500, 'description' => ''],
        ['code' => 'IncorrectOrientation', 'message' => 'The image contains incorrect rotation flags in the meta data.', 'http_code' => 400, 'description' => ''],
        ['code' => 'InstanceOverQuota', 'message' => 'The number of items exceeds the limit.', 'http_code' => 400, 'description' => ''],
        ['code' => 'InstanceStatusError', 'message' => 'The current instance status does not support this operation.', 'http_code' => 400, 'description' => ''],
        ['code' => 'InternalOssError', 'message' => 'An internal OAS error occurred.', 'http_code' => 500, 'description' => ''],
        ['code' => 'InternalSwiftError', 'message' => 'An internal SWIFT error occurred.', 'http_code' => 500, 'description' => ''],
        ['code' => 'InternalTableStoreError', 'message' => 'An internal Table Store error occurred.', 'http_code' => 500, 'description' => ''],
        ['code' => 'InvalidCategory', 'message' => 'The specified category is invalid.', 'http_code' => 400, 'description' => ''],
        ['code' => 'InvalidCategoryId', 'message' => 'The specified CategoryId parameter is invalid.', 'http_code' => 400, 'description' => ''],
        ['code' => 'InvalidCrop', 'message' => 'The specified Crop parameter is invalid.', 'http_code' => 400, 'description' => ''],
        ['code' => 'InvalidCustomContent', 'message' => 'The specified CustomContent is invalid.', 'http_code' => 400, 'description' => ''],
        ['code' => 'InvalidFilterClause', 'message' => 'The specified filtering condition is invalid.', 'http_code' => 400, 'description' => ''],
        ['code' => 'InvalidInstance', 'message' => 'The specified instance name is invalid.', 'http_code' => 400, 'description' => ''],
        ['code' => 'InvalidIntAttr', 'message' => 'The specified int_attr field is invalid.', 'http_code' => 400, 'description' => ''],
        ['code' => 'InvalidIntAttr', 'message' => 'The specified parameter IntAttr is not valid.', 'http_code' => 400, 'description' => 'Invalid IntAttr'],
        ['code' => 'InvalidIntAttr2', 'message' => 'The specified parameter IntAttr2 is not valid.', 'http_code' => 400, 'description' => 'Invalid IntAttr2'],
        ['code' => 'InvalidIntAttr3', 'message' => 'The specified parameter IntAttr3 is not valid.', 'http_code' => 400, 'description' => 'Invalid IntAttr3'],
        ['code' => 'InvalidIntAttr4', 'message' => 'The specified parameter IntAttr4 is not valid.', 'http_code' => 400, 'description' => 'Invalid'],
        ['code' => 'InvalidMetaItem', 'message' => 'The meta field is invalid.', 'http_code' => 400, 'description' => ''],
        ['code' => 'InvalidNum', 'message' => 'The specified Num parameter is invalid.', 'http_code' => 400, 'description' => ''],
        ['code' => 'InvalidNumParameter', 'message' => 'The specified parameter num is invalid.', 'http_code' => 400, 'description' => ''],
        ['code' => 'InvalidParameterReturnPicFormat', 'message' => 'The specified parameter returnPicFormat is invalid', 'http_code' => 400, 'description' => ''],
        ['code' => 'InvalidParameterReturnPicType', 'message' => 'The specified parameter returnPicType is invalid', 'http_code' => 400, 'description' => ''],
        ['code' => 'InvalidParameterTitleIndex', 'message' => 'The specified parameter titleIndex is invalid.', 'http_code' => 400, 'description' => ''],
        ['code' => 'InvalidPicContent', 'message' => 'The image size exceeds 4 MB.', 'http_code' => 400, 'description' => ''],
        ['code' => 'InvalidPicList', 'message' => 'The specified pic_list parameter is invalid.', 'http_code' => 400, 'description' => ''],
        ['code' => 'InvalidPicName', 'message' => 'The specified PicName is invalid.', 'http_code' => 400, 'description' => ''],
        ['code' => 'InvalidPicUrl', 'message' => 'The specified parameter PicUrl is not valid.', 'http_code' => 400, 'description' => ''],
        ['code' => 'InvalidPrimaryPicContent', 'message' => 'The specified parameter PrimaryPicContent is not valid.', 'http_code' => 400, 'description' => 'Invalid PrimaryPicContent parameter'],
        ['code' => 'InvalidProductId', 'message' => 'The specified ProductId is invalid.', 'http_code' => 400, 'description' => ''],
        ['code' => 'InvalidProductId', 'message' => 'The parameter ProductId no specified.', 'http_code' => 400, 'description' => 'Invalid ProductId'],
        ['code' => 'InvalidSecondaryPicContent', 'message' => 'The specified parameter SecondaryPicContent is not valid.', 'http_code' => 400, 'description' => 'Invalid SecondaryPicContent parameter'],
        ['code' => 'InvalidStart', 'message' => 'The specified Start parameter is invalid.', 'http_code' => 400, 'description' => ''],
        ['code' => 'InvalidStartParameter', 'message' => 'The specified parameter start is invalid.', 'http_code' => 400, 'description' => ''],
        ['code' => 'InvalidStrAttr', 'message' => 'The specified StrAttr is invalid.', 'http_code' => 400, 'description' => ''],
        ['code' => 'InvalidStrAttr', 'message' => 'The specified parameter StrAttr is not valid.', 'http_code' => 400, 'description' => 'Invalid StrAttr'],
        ['code' => 'InvalidStrAttr2', 'message' => 'The specified parameter StrAttr2 is not valid.', 'http_code' => 400, 'description' => 'Invalid'],
        ['code' => 'InvalidStrAttr3', 'message' => 'The specified parameter StrAttr3 is not valid.', 'http_code' => 400, 'description' => 'Invalid StrAttr3'],
        ['code' => 'InvalidStrAttr4', 'message' => 'The specified parameter StrAttr4 is not valid.', 'http_code' => 400, 'description' => 'Invalid StrAttr4'],
        ['code' => 'InvalidText', 'message' => 'The specified parameter Text is not valid.', 'http_code' => 400, 'description' => 'Description Text cannot be null'],
        ['code' => 'InvalidTextLength', 'message' => 'Invalid text clause.', 'http_code' => 400, 'description' => 'The text field length must be within 512.'],
        ['code' => 'InvalidType', 'message' => 'The specified Type is invalid.', 'http_code' => 400, 'description' => ''],
        ['code' => 'InvalidUserType', 'message' => 'The specified UserType parameter is invalid.', 'http_code' => 400, 'description' => ''],
        ['code' => 'NeedRegisterBeforeInvoke', 'message' => 'Register for PID before invoking the service.', 'http_code' => 400, 'description' => ''],
        ['code' => 'NetworkException', 'message' => 'A network error occurred.', 'http_code' => 500, 'description' => ''],
        ['code' => 'NoCaretSeperator', 'message' => 'The body content is missing the ^ separator.', 'http_code' => 400, 'description' => ''],
        ['code' => 'NoPermission', 'message' => 'You are not authorized to perform this operation.', 'http_code' => 403, 'description' => ''],
        ['code' => 'NoPicList', 'message' => 'The body content is missing the pic_list parameter.', 'http_code' => 400, 'description' => ''],
        ['code' => 'NoSpecifiedAddPic', 'message' => 'You must specify an image.', 'http_code' => 400, 'description' => ''],
        ['code' => 'NoSpecifiedItemId', 'message' => 'You must specify item_id.', 'http_code' => 400, 'description' => ''],
        ['code' => 'NoSpecifiedPic', 'message' => 'The content of an image is not specified in the HTTP POST body.', 'http_code' => 400, 'description' => ''],
        ['code' => 'NoSpecifiedPicContent', 'message' => 'You must specify PicContent.', 'http_code' => 400, 'description' => ''],
        ['code' => 'NoSpecifiedPicName', 'message' => 'You must specify PicName.', 'http_code' => 400, 'description' => ''],
        ['code' => 'NoSpecifiedProductId', 'message' => 'You must specify ProductId.', 'http_code' => 400, 'description' => ''],
        ['code' => 'NoSpecifiedSearchPic', 'message' => 'You must specify a search image.', 'http_code' => 400, 'description' => ''],
        ['code' => 'OverflowMaxResultNum', 'message' => 'The specified number of total results exceeds the maximum of 500.', 'http_code' => 400, 'description' => ''],
        ['code' => 'OverflowMaxReturnNum', 'message' => 'The specified number of results for each request exceeds the maximum of 100.', 'http_code' => 400, 'description' => ''],
        ['code' => 'PicNotExist', 'message' => 'The specified image does not exist.', 'http_code' => 400, 'description' => ''],
        ['code' => 'PictureError', 'message' => '[download] Img Download Failed.', 'http_code' => 500, 'description' => 'Picture download failed, please check the picture'],
        ['code' => 'PidNotExist', 'message' => 'The specified Pid parameter does not exist.', 'http_code' => 400, 'description' => ''],
        ['code' => 'RequestTimeout', 'message' => 'The request timed out.', 'http_code' => 500, 'description' => ''],
        ['code' => 'SearchTimeout', 'message' => 'The request timed out.', 'http_code' => 400, 'description' => ''],
        ['code' => 'ServerInternalError', 'message' => 'An internal error occurred.', 'http_code' => 500, 'description' => ''],
        ['code' => 'TimeoutForTransferImage', 'message' => 'Image transfer timed out.', 'http_code' => 400, 'description' => ''],
        ['code' => 'UnknownException', 'message' => 'An internal server error occurred.', 'http_code' => 500, 'description' => ''],
        ['code' => 'UnsupportedInstanceType', 'message' => 'The instance type is not supported.', 'http_code' => 500, 'description' => ''],
        ['code' => 'UnsupportedOperationType', 'message' => 'The specified action is not supported.', 'http_code' => 500, 'description' => ''],
        ['code' => 'UnsupportedPicCategory', 'message' => 'The picture category is not supported.', 'http_code' => 400, 'description' => ''],
        ['code' => 'UnsupportedPicFormat', 'message' => 'The specified image format is invalid.', 'http_code' => 400, 'description' => ''],
        ['code' => 'UnsupportedPicPixels', 'message' => 'The specified pixels is not supported.', 'http_code' => 400, 'description' => ''],
        ['code' => 'UnsupportedPictureFormat', 'message' => 'The format of the specified picture is not supported.', 'http_code' => 400, 'description' => ''],
        ['code' => 'UnsupportedInstanceType', 'message' => 'The instance type is not supported.', 'http_code' => 400, 'description' => ''],
        ['code' => 'UnsupportedOperationType', 'message' => 'The specified action is not supported.', 'http_code' => 400, 'description' => ''],
        ['code' => 'PictureError', 'message' => '[download] Img Download Failed.', 'http_code' => 400, 'description' => 'Picture download failed, please check the picture'],
        ['code' => 'Console.OssError', 'message' => 'OSS information error.', 'http_code' => 400, 'description' => 'oss information error'],
    ],
    'changeSet' => [],
    'ram' => [
        'productCode' => 'ImageSearch',
        'productName' => 'Image Search',
        'ramCodes' => ['imagesearch'],
        'ramLevel' => 'RESOURCE',
        'ramConditions' => [],
        'ramActions' => [
            [
                'apiName' => 'SearchByPic',
                'description' => '',
                'operationType' => '',
                'ramAction' => [
                    'action' => 'imagesearch:SearchByPic',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'ImageSearch', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'SearchByUrl',
                'description' => '',
                'operationType' => '',
                'ramAction' => [
                    'action' => 'imagesearch:SearchByUrl',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'ImageSearch', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'GetProductInfoByIds',
                'description' => '',
                'operationType' => '',
                'ramAction' => [
                    'action' => 'imagesearch:GetProductInfoByIds',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'ImageSearch', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
        ],
        'resourceTypes' => [],
    ],
];