All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.uwetrottmann.trakt5.services.People Maven / Gradle / Ivy

There is a newer version: 6.16.0
Show newest version
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
    );

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy