Panagiotis Triantafyllou

fixed get couponsets

......@@ -147,7 +147,7 @@ public interface ApiService {
@Header(WarpConstants.HEADER_AUTHORIZATION) String bearer);
@Headers("Content-Type: application/json")
@POST("/api/mobile/v2/{appUuid}/context/")
@POST("/oauth/{appUuid}/context")
Call<ResponseBody> getCouponsets(@Path("appUuid") String appUuid,
@Body RequestBody request,
@Header(WarpConstants.HEADER_DATE) String timeStamp,
......
......@@ -581,7 +581,7 @@ public class WarplyManager {
if (jobjCouponsetsResponse != null && jobjCouponsetsResponse.has("status") && jobjCouponsetsResponse.optString("status", "2").equals("1")) {
JSONArray jCouponsetsBody = null;
try {
jCouponsetsBody = jobjCouponsetsResponse.optJSONObject("context").optJSONArray("MAPP_COUPON");
jCouponsetsBody = jobjCouponsetsResponse.optJSONArray("result");
} catch (Exception e) {
e.printStackTrace();
}
......