次のような foursquare API へのマルチ リクエストを呼び出しています。
https://api.foursquare.com/v2/multi?%2Fvenues%2Fsearch%3Fll%3D33.859868%2C-117.886133%26query%3DTarget,%2Fvenues%2Fsearch%3Fll%3D33.859868%2C-117.886133%26query%3DNordstrom&intent=browse&radius=16093&oauth_token=WS10PQFRUXACDDIJMN3JEEIHFOPA1UTMRZP0E41MWAF0HHJL&v=20130419
oAuth トークンは、公開されている一般的な使用トークンです。
次の Java コードを使用して URL を作成しています。
String baseUrl = "https://api.foursquare.com/v2";
String action = "/multi?";
String request1 = "/venues/search?ll=33.859868,-117.886133&query=Target";
String requestEnc1 = URLEncoder.encode(request1);
String request2 = "/venues/search?ll=33.859868,-117.886133&query=Nordstrom";
String requestEnc2 = URLEncoder.encode(request2);
String commonParams = "&intent=browse&radius=16093&oauth_token=WS10PQFRUXACDDIJMN3JEEIHFOPA1UTMRZP0E41MWAF0HHJL&v=20130419";
私は 400 の悪い要求を受けています。ただし、これは次のドキュメントの例に似ています。
https://developer.foursquare.com/docs/multi/multi
URL の作成方法に問題はありますか?