You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ It's available via [Maven Central](https://central.sonatype.com/artifact/uk.co.c
14
14
## Usage
15
15
To register for a TMdB API key, click the [API link](https://www.themoviedb.org/settings/api) from within your account settings page. There are two types of API keys currently provided by TMdB, please ensure you are using the `API Read Access Token` key.
16
16
17
-
With this you can instantiate `info.movito.themoviedbapi.TmdbApi`, which has getters for all subcategories of the API, e.g.
17
+
With this you can instantiate `uk.co.conoregan.themoviedbapi.TmdbApi`, which has getters for all subcategories of the API, e.g.
18
18
```java
19
19
TmdbApi tmdbApi =newTmdbApi("<apikey>");
20
20
```
@@ -55,15 +55,15 @@ MovieDb movie = tmdbMovies.getDetails(5353, "en-US", MovieAppendToResponse.IMAGE
55
55
MovieDb movie = tmdbMovies.getDetails(5353, "en-US", MovieAppendToResponse.values());
56
56
```
57
57
58
-
To find all methods that use append to response, see the `info.movito.themoviedbapi.tools.appendtoresponse.AppendToResponse` interface
58
+
To find all methods that use append to response, see the `uk.co.conoregan.themoviedbapi.tools.appendtoresponse.AppendToResponse` interface
59
59
implementations.
60
60
61
61
### Exception handling
62
-
Every API method can throw a `info.movito.themoviedbapi.tools.TmdbException` if the request fails for any reason. You should catch this
62
+
Every API method can throw a `uk.co.conoregan.themoviedbapi.tools.TmdbException` if the request fails for any reason. You should catch this
63
63
exception and handle it appropriately.
64
64
65
65
Some exceptions are caused because the response status provided by the TMdB API is not successful. To see more details, see the
66
-
`info.movito.themoviedbapi.tools.TmdbResponseCode` and [TMdB Errors](https://developer.themoviedb.org/docs/errors).
66
+
`uk.co.conoregan.themoviedbapi.tools.TmdbResponseCode` and [TMdB Errors](https://developer.themoviedb.org/docs/errors).
67
67
68
68
In the example below, the response was successful, but response code returned by TMdB API was not successful due to an authentication
69
69
failure.
@@ -87,13 +87,13 @@ We chose to throw exceptions rather than returning `null`, so you have more cont
87
87
example above, you may want to display an error message to the user about failing authentication.
88
88
89
89
### Using your own HTTP client
90
-
By default, `TmdbApi` uses the built-in `info.movito.themoviedbapi.tools.TmdbHttpClient`, which is backed by the JDK's
90
+
By default, `TmdbApi` uses the built-in `uk.co.conoregan.themoviedbapi.tools.TmdbHttpClient`, which is backed by the JDK's
91
91
`java.net.http.HttpClient`. If you would rather use a different HTTP client, you can provide your own
92
-
implementation of the `info.movito.themoviedbapi.tools.TmdbRequestExecutor` interface.
92
+
implementation of the `uk.co.conoregan.themoviedbapi.tools.TmdbRequestExecutor` interface.
93
93
94
94
Your implementation only has to make the call and hand back the raw response. If the request fails (e.g. an `IOException`), wrap it in a
95
-
`info.movito.themoviedbapi.tools.TmdbException`. Interpreting TMdB status codes (e.g. mapping unsuccessful responses to exceptions) is handled by the library on top of your executor, so
96
-
you do not need to deal with that (see `info.movito.themoviedbapi.tools.TmdbApiClient` for more information).
95
+
`uk.co.conoregan.themoviedbapi.tools.TmdbException`. Interpreting TMdB status codes (e.g. mapping unsuccessful responses to exceptions) is handled by the library on top of your executor, so
96
+
you do not need to deal with that (see `uk.co.conoregan.themoviedbapi.tools.TmdbApiClient` for more information).
97
97
98
98
Then, simply pass your implementation to `TmdbApi` instead of the API key:
99
99
```java
@@ -106,10 +106,10 @@ This project uses [SLF4J](http://www.slf4j.org) to abstract the logging in the p
106
106
project you should add one of the provided [adapter bindings](http://www.slf4j.org/manual.html).
107
107
108
108
## Prooguard / R8 rules
109
-
Model classes are placed under `info.movito.themoviedbapi.model` package. Add this to `proguard-rules.pro` so that, these classes can
109
+
Model classes are placed under `uk.co.conoregan.themoviedbapi.model` package. Add this to `proguard-rules.pro` so that, these classes can
110
110
survive minification.
111
111
```
112
-
-keep class info.movito.themoviedbapi.model.** { *; }
112
+
-keep class uk.co.conoregan.themoviedbapi.model.** { *; }
0 commit comments