本文整理汇总了Java中retrofit.http.Path类的典型用法代码示例。如果您正苦于以下问题:Java Path类的具体用法?Java Path怎么用?Java Path使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Path类属于retrofit.http包,在下文中一共展示了Path类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAccessTokenFromAuthCode
import retrofit.http.Path; //导入依赖的package包/类
@FormUrlEncoded
@POST("/{tenantid}/oauth2/v2.0/token")
Response getAccessTokenFromAuthCode(
@Path("tenantid") String tenantId,
@Field("client_id") String clientId,
@Field("client_secret") String clientSecret,
@Field("grant_type") String grantType,
@Field("code") String code,
@Field("redirect_uri") String redirectUrl
);
示例2: getMessages
import retrofit.http.Path; //导入依赖的package包/类
@GET("/v1.0/me/mailfolders/{folderid}/messages")
Response getMessages(
@Path("folderid") String folderId,
@Query("$orderby") String orderBy,
@Query("$select") String select,
@Query("$filter") String filter,
@Query("$top") Integer maxResults
);
示例3: comments
import retrofit.http.Path; //导入依赖的package包/类
/**
* Returns all top level comments for an episode. Most recent comments returned first.
*
* @param showId trakt ID, trakt slug, or IMDB ID. Example: "game-of-thrones".
* @param season Season number.
* @param episode Episode number.
*/
@GET("/shows/{id}/seasons/{season}/episodes/{episode}/comments")
List<Comment> comments(
@Path("id") String showId,
@Path("season") int season,
@Path("episode") int episode,
@Query("page") Integer page,
@Query("limit") Integer limit,
@EncodedQuery("extended") Extended extended
);
示例4: getItem
import retrofit.http.Path; //导入依赖的package包/类
@GET("/jokes/{id}")
Observable<ItemResponse> getItem(@Query("firstName") String firstName, @Query("lastName") String lastName, @Path("id") int id);
示例5: getAccessTokenFromRefreshToken
import retrofit.http.Path; //导入依赖的package包/类
@FormUrlEncoded
@POST("/{tenantid}/oauth2/v2.0/token")
Response getAccessTokenFromRefreshToken(
@Path("tenantid") String tenantId,
@Field("client_id") String clientId,
@Field("client_secret") String clientSecret,
@Field("grant_type") String grantType,
@Field("refresh_token") String code,
@Field("redirect_uri") String redirectUrl
);
示例6: comments
import retrofit.http.Path; //导入依赖的package包/类
/**
* Returns all top level comments for a movie. Most recent comments returned first.
*
* @param movieId trakt ID, trakt slug, or IMDB ID. Example: "tron-legacy-2010".
* @param page Number of page of results to be returned. If {@code null} defaults to 1.
* @param limit Number of results to return per page. If {@code null} defaults to 10.
*/
@GET("/movies/{id}/comments")
List<Comment> comments(
@Path("id") String movieId,
@Query("page") Integer page,
@Query("limit") Integer limit,
@EncodedQuery("extended") Extended extended
);
示例7: summary
import retrofit.http.Path; //导入依赖的package包/类
/**
* Returns a single person's details.
*
* @param personId trakt ID, trakt slug, or IMDB ID Example: bryan-cranston.
*/
@GET("/people/{id}")
Person summary(
@Path("id") String personId,
@Query("extended") Extended extended
);
示例8: listItems
import retrofit.http.Path; //导入依赖的package包/类
/**
* <b>OAuth Optional</b>
*
* <p> Get all items on a custom list. Items can be movies, shows, seasons, episodes, or people.
*/
@GET("/users/{username}/lists/{id}/items")
List<ListEntry> listItems(
@Path("username") String username,
@Path("id") String id,
@EncodedQuery("extended") Extended extended
) throws OAuthUnauthorizedException;
示例9: getItem
import retrofit.http.Path; //导入依赖的package包/类
@GET("/item/{id}.json")
Observable<Item> getItem(@Path("id") int id);
示例10: summary
import retrofit.http.Path; //导入依赖的package包/类
/**
* Returns a single movie's details.
*
* @param movieId trakt ID, trakt slug, or IMDB ID. Example: "tron-legacy-2010".
*/
@GET("/movies/{id}")
Movie summary(
@Path("id") String movieId,
@EncodedQuery("extended") Extended extended
);
示例11: getStationInfo
import retrofit.http.Path; //导入依赖的package包/类
@GET("/{id_station}")
void getStationInfo(@Path("id_station") String idStation, Callback<StationResponse> callback);
示例12: getFolder
import retrofit.http.Path; //导入依赖的package包/类
@GET("/v1.0/me/mailfolders/{folderid}")
Response getFolder(
@Path("folderid") String folderId
);
示例13: getVariable
import retrofit.http.Path; //导入依赖的package包/类
@GET("/v1/devices/{deviceID}/{variable}")
ReadObjectVariableResponse getVariable(@Path("deviceID") String deviceID,
@Path("variable") String variable);
示例14: getStringVariable
import retrofit.http.Path; //导入依赖的package包/类
@GET("/v1/devices/{deviceID}/{variable}")
ReadStringVariableResponse getStringVariable(@Path("deviceID") String deviceID,
@Path("variable") String variable);
示例15: getContactsPending
import retrofit.http.Path; //导入依赖的package包/类
@GET(USER_GET_CONTACTS_PENDING_SVC)
public Collection<MobileClient> getContactsPending(@Path(USER_ID) long userId);