2016-10-04 7 views
2

私はwalmart APIを使用してインベントリチェッカーアプリケーションを構築しようとしています。 XMLウォルマートは、郵便番号とIDを入力して在庫/数量とローカルストアを取得します。

誰かが私には郵便番号とIDを提供することにより、株式/数量とローカルストアを取得する方法を理解する助けてください= http://api.walmartlabs.com/v1/items/12417832?apiKey= {MYKEY} &フォーマット:私はhttps://developer.walmartlabs.com/docs/read/Home

などで提供されるオープンソースAPIので遊んで開始しました。

brickseekとbmsteekなどのような既存のWebアプリケーションは、私は同じことをやろうとしてきた、と私の知る限り、することはできません

+0

私が使用したことがないウォルマートのAPIの前に私はあなたが[店舗検索API](https://developer.walmartlabs.com/docsを使用しなければならないと思うのドキュメントを見て/ read/Store_Locator_API) – Arti

+0

私はこれを見ましたが、私はどのように店舗ロケータAPIアイテムAPIを結合するのか分かりません。見ていただきありがとうございます – MarcoP

答えて

0

...があります。

ので、ウォルトン(ウォルマート在庫検索アプリ)の開発者は、我々が交差しなければならないだけでなく、彼らの公式ウェブサイトからそれを参照するように彼のコード

this.walmart.dotcom.query.URL1 = 'http://mobile.walmart.com/m/j?e=1&version=2&service=Browse&method=searchByDepartmentFiltered&p1='; 
this.walmart.dotcom.query.URL2 = '&p2=ENTIRESITE&p3=All&p4=RELEVANCE&p5='; 
this.walmart.dotcom.query.URL3 = '&p6=50&p7=%5B%5D'; 
this.walmart.dotcom.upcq = 'http://www.walmart.com/product/mobile/api/upc/'; 
this.walmart.dotcom.item = 'http://www.walmart.com/product/mobile/api/'; 
this.walmart.store.query = 'http://search.mobile.walmart.com/search?query='; 
this.walmart.store.items = 'http://search.mobile.walmart.com/items'; 

getWalmartDotcomQuery(query){ 
    return this.http.get(this.walmart.dotcom.query.URL1 + query + this.walmart.dotcom.query.URL2 + '0' + this.walmart.dotcom.query.URL3).map(res => res.json()); } getWalmartDotcomQueryMore(query, more){ 
    return this.http.get(this.walmart.dotcom.query.URL1 + query + this.walmart.dotcom.query.URL2 + more + this.walmart.dotcom.query.URL3).map(res => res.json()); } getWalmartDotcomUPC(upc){ 
    return this.http.get(this.walmart.dotcom.upcq + upc).map(res => res.json()); } getWalmartDotcomID(id){ 
    return this.http.get(this.walmart.dotcom.item + id).map(res => res.json()); }getWalmartStoreQuery(query, offset){ 
    return this.http.get('http://search.mobile.walmart.com/search?query='+query+'&store='+this.storeid+'&size=20&offset='+ offset).map(res => res.json()); } 

のビットが見える共有しました。

出典:

https://www.reddit.com/r/walmart/comments/4hsq7s/questions_about_walmart_api/d2ste4f/

関連する問題