Showing
3 changed files
with
6 additions
and
4 deletions
| ... | @@ -16,7 +16,7 @@ Debug=true | ... | @@ -16,7 +16,7 @@ Debug=true |
| 16 | # Development: https://engage-stage.warp.ly | 16 | # Development: https://engage-stage.warp.ly |
| 17 | # DEH Production: https://engage-prod.dei.gr | 17 | # DEH Production: https://engage-prod.dei.gr |
| 18 | # DEH Development: https://engage-uat.dei.gr | 18 | # DEH Development: https://engage-uat.dei.gr |
| 19 | -BaseURL=https://engage-prod.dei.gr | 19 | +BaseURL=https://engage-uat.dei.gr |
| 20 | 20 | ||
| 21 | # For Verify Ticket request | 21 | # For Verify Ticket request |
| 22 | VerifyURL=/partners/dei/verify | 22 | VerifyURL=/partners/dei/verify | ... | ... |
| ... | @@ -127,7 +127,8 @@ public interface ApiService { | ... | @@ -127,7 +127,8 @@ public interface ApiService { |
| 127 | @Header(WarpConstants.HEADER_UNIQUE_DEVICE_ID) String deviceId, | 127 | @Header(WarpConstants.HEADER_UNIQUE_DEVICE_ID) String deviceId, |
| 128 | @Header(WarpConstants.HEADER_CHANNEL) String channel, | 128 | @Header(WarpConstants.HEADER_CHANNEL) String channel, |
| 129 | @Header(WarpConstants.HEADER_WEB_ID) String webId, | 129 | @Header(WarpConstants.HEADER_WEB_ID) String webId, |
| 130 | - @Header(WarpConstants.HEADER_SIGNATURE) String signature); | 130 | + @Header(WarpConstants.HEADER_SIGNATURE) String signature, |
| 131 | + @Header(WarpConstants.HEADER_AUTHORIZATION) String bearer); | ||
| 131 | 132 | ||
| 132 | @Headers("Content-Type: application/json") | 133 | @Headers("Content-Type: application/json") |
| 133 | @POST("/api/mobile/v2/{appUuid}/context/") | 134 | @POST("/api/mobile/v2/{appUuid}/context/") | ... | ... |
| ... | @@ -428,7 +428,7 @@ public class WarplyManager { | ... | @@ -428,7 +428,7 @@ public class WarplyManager { |
| 428 | 428 | ||
| 429 | Map<String, Object> jsonParamsCouponsets = new ArrayMap<>(); | 429 | Map<String, Object> jsonParamsCouponsets = new ArrayMap<>(); |
| 430 | Map<String, Object> jsonParams = new ArrayMap<>(); | 430 | Map<String, Object> jsonParams = new ArrayMap<>(); |
| 431 | - jsonParams.put("action", "retrieve_multilingual"); | 431 | + jsonParams.put("action", "retrieve_couponsets"); |
| 432 | jsonParams.put("active", true); | 432 | jsonParams.put("active", true); |
| 433 | jsonParams.put("visible", true); | 433 | jsonParams.put("visible", true); |
| 434 | jsonParams.put("language", WarplyProperty.getLanguage(Warply.getWarplyContext())); | 434 | jsonParams.put("language", WarplyProperty.getLanguage(Warply.getWarplyContext())); |
| ... | @@ -443,7 +443,8 @@ public class WarplyManager { | ... | @@ -443,7 +443,8 @@ public class WarplyManager { |
| 443 | new WarplyDeviceInfoCollector(Warply.getWarplyContext()).getUniqueDeviceId(), | 443 | new WarplyDeviceInfoCollector(Warply.getWarplyContext()).getUniqueDeviceId(), |
| 444 | "mobile", | 444 | "mobile", |
| 445 | webId, | 445 | webId, |
| 446 | - WarpUtils.produceSignature(apiKey + timeStamp) | 446 | + WarpUtils.produceSignature(apiKey + timeStamp), |
| 447 | + "Bearer " + WarplyDBHelper.getInstance(Warply.getWarplyContext()).getAuthValue("access_token") | ||
| 447 | ); | 448 | ); |
| 448 | couponsetsCall.enqueue(new Callback<ResponseBody>() { | 449 | couponsetsCall.enqueue(new Callback<ResponseBody>() { |
| 449 | @Override | 450 | @Override | ... | ... |
-
Please register or login to post a comment