com.uwetrottmann.trakt5.services.People Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trakt-java Show documentation
Show all versions of trakt-java Show documentation
trakt-java is a retrofit2 based wrapper around the trakt API v2.
package com.uwetrottmann.trakt5.services;
import com.uwetrottmann.trakt5.entities.Credits;
import com.uwetrottmann.trakt5.entities.Person;
import com.uwetrottmann.trakt5.enums.Extended;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
public interface People {
/**
* Returns a single person's details.
*
* @param personId trakt ID, trakt slug, or IMDB ID Example: bryan-cranston.
*/
@GET("people/{id}")
Call summary(
@Path("id") String personId,
@Query("extended") Extended extended
);
@GET("people/{id}/movies")
Call movieCredits(
@Path("id") String personId
);
@GET("people/{id}/shows")
Call showCredits(
@Path("id") String personId
);
}