本文整理了Java中retrofit.http.Field.<init>()
方法的一些代码示例,展示了Field.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Field.<init>()
方法的具体详情如下:
包路径:retrofit.http.Field
类名称:Field
方法名:<init>
暂无
代码示例来源:origin: naman14/Timber
@POST(BASE)
@FormUrlEncoded
void getUserLoginInfo(@Field("method") String method, @Field("format") String format, @Field("api_key") String apikey, @Field("api_sig") String apisig, @Field("username") String username, @Field("password") String password, Callback<UserLoginInfo> callback);
代码示例来源:origin: naman14/Timber
@POST(BASE)
@FormUrlEncoded
void getScrobbleInfo(@Field("api_sig") String apisig, @Field("format") String format, @FieldMap Map<String, String> fields, Callback<ScrobbleInfo> callback);
代码示例来源:origin: Gitteroid/GitterJavaSDK
@POST("/login/oauth/token")
@FormUrlEncoded Observable<AccessTokenResponse> getAccessToken(
@Field("client_id") String clientId,
@Field("client_secret") String clientSecret,
@Field("code") String code,
@Field("redirect_uri") String redirectUri,
@Field("grant_type") String grantType
);
}
代码示例来源:origin: Gitteroid/GitterJavaSDK
@POST("/login/oauth/token")
@FormUrlEncoded
AccessTokenResponse getAccessToken(
@Field("client_id") String clientId,
@Field("client_secret") String clientSecret,
@Field("code") String code,
@Field("redirect_uri") String redirectUri,
@Field("grant_type") String grantType
);
}
代码示例来源:origin: particle-iot/spark-sdk-android
@FormUrlEncoded
@POST("/v1/devices/events")
SimpleResponse publishEvent(@Field("name") String eventName,
@Field("data") String eventData,
@Field("private") boolean isPrivate,
@Field("ttl") int timeToLive);
代码示例来源:origin: bkiers/retrofit-oauth
@POST("/o/oauth2/token")
@FormUrlEncoded
AccessToken refreshAccessToken(@Field("client_id") String clientId,
@Field("client_secret") String clientSecret,
@Field("refresh_token") String refreshToken,
@Field("grant_type") String grantType);
}
代码示例来源:origin: bkiers/retrofit-oauth
@POST("/o/oauth2/token")
@FormUrlEncoded
AccessToken getAccessToken(@Field("client_id") String clientId,
@Field("client_secret") String clientSecret,
@Field("code") String code,
@Field("grant_type") String grantType);
代码示例来源:origin: tomahawk-player/tomahawk-android
@FormUrlEncoded
@POST("/authentication/password")
HatchetAuthResponse login(
@Field("username") String username,
@Field("password") String password,
@Field("grant_type") String grant_type
);
代码示例来源:origin: tomahawk-player/tomahawk-android
@FormUrlEncoded
@POST("/registration/direct")
HatchetAuthResponse registerDirectly(
@Field("username") String username,
@Field("password") String password,
@Field("email") String email
);
代码示例来源:origin: particle-iot/spark-sdk-android
@FormUrlEncoded
@POST("/oauth/token")
Responses.LogInResponse logIn(@Field("grant_type") String grantType,
@Field("username") String username,
@Field("password") String password);
代码示例来源:origin: andyiac/githot
@Headers({
"Accept: application/json"
})
@FormUrlEncoded
@POST("/login/oauth/access_token")
Observable<AccessTokenResponse> getOAuthToken(@Field("client_id") String client_id,
@Field("client_secret") String client_secret, @Field("code") String code);
代码示例来源:origin: tomahawk-player/tomahawk-android
@FormUrlEncoded
@POST("/tokens/refresh/bearer")
HatchetAuthResponse getBearerAccessToken(
@Field("refresh_token") String refresh_token,
@Field("grant_type") String grant_type
);
代码示例来源:origin: particle-iot/spark-sdk-android
/**
* Newer versions of OkHttp <em>require</em> a body for POSTs, but just pass in
* a blank string for the body and all is well.
*/
@FormUrlEncoded
@POST("/v1/device_claims")
ClaimCodeResponse generateClaimCode(@Field("blank") String blankBody);
代码示例来源:origin: particle-iot/spark-sdk-android
@FormUrlEncoded
@POST("/v1/orgs/{orgName}/customers/reset_password")
@Deprecated
Response requestPasswordResetForCustomer(@Field("email") String email,
@Path("orgName") String orgName);
代码示例来源:origin: Gitteroid/GitterJavaSDK
@FormUrlEncoded
@PUT("/rooms/{roomId}/meta/welcome-message")
void setRoomWelcome(@Path("roomId") String roomId, @Field("welcomeMessage") String message,
Callback<WelcomeMessageContainer> callback);
}
代码示例来源:origin: Gitteroid/GitterJavaSDK
@FormUrlEncoded
@PUT("/rooms/{roomId}/chatMessages/{chatMessageId}")
void updateMessage(@Path("roomId") String roomId,
@Path("chatMessageId") String chatMessageId,
@Field("text") String text,
Callback<MessageResponse> callback);
代码示例来源:origin: Gitteroid/GitterJavaSDK
@FormUrlEncoded
@PUT("/rooms/{roomId}/chatMessages/{chatMessageId}")
MessageResponse updateMessage(@Path("roomId") String roomId,
@Path("chatMessageId") String chatMessageId,
@Field("text") String text);
代码示例来源:origin: Gitteroid/GitterJavaSDK
@FormUrlEncoded
@PUT("/rooms/{roomId}/chatMessages/{chatMessageId}")
Observable<MessageResponse> updateMessage(@Path("roomId") String roomId,
@Path("chatMessageId") String chatMessageId,
@Field("text") String text);
代码示例来源:origin: wearemakery/retrogram
@FormUrlEncoded
@POST("/media/{media_id}/comments")
public Comments postComment(
@Path("media_id") String mediaId,
@Field("text") String text,
@Query("access_token") String accessToken
);
代码示例来源:origin: wearemakery/retrogram
@FormUrlEncoded
@POST("/users/{user_id}/relationship")
public RelationshipResponse postRelationship(
@Path("user_id") String userId,
@Field("action") String action,
@Query("access_token") String accessToken);
内容来源于网络,如有侵权,请联系作者删除!