Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
iltoningui authored Sep 5, 2019
1 parent f9ea975 commit b875f96
Showing 1 changed file with 85 additions and 2 deletions.
87 changes: 85 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,85 @@
# tmdbv3Api
api to interact with the movie database v3 api
# The Movie DB Java API


[![](https://img.shields.io/badge/nextbss-opensource-blue.svg)](https://www.nextbss.co.ao)

Usage
---------------


### Download
To get a Git project into your build:


Step 1. Add the JitPack repository to your build file


maven
```xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
```

gradle
```
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```


Step 2. Add the dependency


maven
```xml
<dependency>
<groupId>com.github.nextbss</groupId>
<artifactId>tmdbv3-api</artifactId>
<version>1.0</version>
</dependency>
```


gradle
```
dependencies {
implementation 'com.github.nextbss:tmdbv3-api:1.0'
}
```


### Configuring api key
Set api key

Get an instance
```java
public class SomeClass{
TmdbApi tmdbApi = TmdbApi.getInstance("API_KEY");
}
```

### get movies
```java
public class SomeClass{
TmdbApi tmdbApi = TmdbApi.getInstance("API_KEY");
Movie movie = tmdbApi.movies().getDetailsRequestBuilder()
.movieId(458156)
.language(Languages.EN)
.appendToResponse(AppendToResponse.ACCOUNT_STATES, AppendToResponse.ALTERNATIVE_TITLES)
.send();
}
```

License
----------------


The library is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

0 comments on commit b875f96

Please sign in to comment.