我正在嘗試使用亞馬遜MWS製作網絡應用程序。用戶可以添加,列出,刪除他們的產品在這個應用程序,並列出他們的訂單。如何解析此報表製表符分隔的響應?亞馬遜MWS
要列出他們的產品,我試圖使用Reports API與「_GET_MERCHANT_LISTINGS_DATA_」。但是這種方法返回時帶有非常差的製表符分隔的響應。另外,當我使用RequestReport方法提出請求時,它將商品清單報告發送給店主。
這是虛擬迴應例如:
b'item-name\titem-description\tlisting-id\tseller-sku\tprice\tquantity\topen-date\timage-url\titem-is-marketplace\tproduct-id-type\tzshop-shipping-fee\titem-note\titem-condition\tzshop-category1\tzshop-browse-path\tzshop-storefront-feature\tasin1\tasin2\tasin3\twill-ship-internationally\texpedited-shipping\tzshop-boldface\tproduct-id\tbid-for-featured-placement\tadd-delete\tpending-quantity\tfulfillment-channel\nPropars deneme urunu 2 CD-ROM CD-ROM\tThis is a development test product\t0119QL9BRT8\tPARS12344321\t0.5\t9\t2016-01-19 05:26:44 PST\t\ty\t4\t\t\t11\t\t\t\tB01ATBY2NA\t\t\t1\t\t\t8680925084020\t\t\t0\tDEFAULT\n'
有沒有人知道上市的產品在商店的另一種方法,或者你有什麼建議採取從「_GET_MERCHANT_LISTINGS_DATA_」報告更好的結果?
或者我該如何解析這個製表符分隔的字符串?
謝謝。