Skip to content

Commit 3ec1800

Browse files
committed
update api logic to follow kotlin style guides
1 parent f2e0143 commit 3ec1800

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

app/src/main/java/com/codepath/bestsellerlistapp/networking/NYTimesApiClient.kt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ import retrofit2.converter.gson.GsonConverterFactory
1919
* https://developer.nytimes.com/get-started to create your own developer account,
2020
* after copy and paste the API key under your Account -> Apps -> <Your App> -> API Keys
2121
</Your> */
22+
// TODO: Replace the below API key with your own generated key
23+
private const val API_KEY = "<YOUR-API-KEY-GOES-HERE>"
2224
class NYTimesApiClient {
2325
private val nyTimesService: NYTimesService
2426

@@ -50,10 +52,4 @@ class NYTimesApiClient {
5052
}
5153
})
5254
}
53-
54-
companion object {
55-
// TODO: Replace the below API key with your own generated key
56-
private const val API_KEY = "<YOUR-API-KEY-GOES-HERE>"
57-
}
58-
5955
}

0 commit comments

Comments
 (0)