fatsecret / fatsecret4j

Java/Android Client for using Fatsecret REST API
http://fatsecret4j.com
Apache License 2.0
12 stars 17 forks source link

requests should be https #21

Open Normalizable opened 2 years ago

Normalizable commented 2 years ago

The test cases in Java work if RequestBuilder.APP_URL is changed from "http://platform.fatsecret.com/rest/server.api" to "https://platform.fatsecret.com/rest/server.api".

Running the test cases with JUnit, I cannot get them to pass unless I change the request builder to create https requests rather than http. I am a relatively new developer, so this may not be a necessary "fix," but it solved my issue of most requests giving null responses.

Khadijaaimen commented 2 years ago

The test cases in Java work if RequestBuilder.APP_URL is changed from "http://platform.fatsecret.com/rest/server.api" to "https://platform.fatsecret.com/rest/server.api".

Running the test cases with JUnit, I cannot get them to pass unless I change the request builder to create https requests rather than http. I am a relatively new developer, so this may not be a necessary "fix," but it solved my issue of most requests giving null responses.

How did you change it to https?

Normalizable commented 2 years ago

We just changed the variable APP_URL in com.fatsecret.platform.services (line 47) from http://platform.fatsecret.com/rest/server.api to https://platform.fatsecret.com/rest/server.api

Best,

William Marquardt

Sent from my phone. Please pardon my typos.

On Sep 28, 2022, at 07:35, Khadija zeb @.***> wrote:

 The test cases in Java work if RequestBuilder.APP_URL is changed from "http://platform.fatsecret.com/rest/server.api" to "https://platform.fatsecret.com/rest/server.api".

Running the test cases with JUnit, I cannot get them to pass unless I change the request builder to create https requests rather than http. I am a relatively new developer, so this may not be a necessary "fix," but it solved my issue of most requests giving null responses.

How did you change it to https?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.