本文整理了Java中retrofit.http.POST.<init>()
方法的一些代码示例,展示了POST.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。POST.<init>()
方法的具体详情如下:
包路径:retrofit.http.POST
类名称:POST
方法名:<init>
暂无
代码示例来源: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: 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: spinnaker/kayenta
@POST("/judge")
CanaryJudgeResult judge(@Body RemoteJudgeRequest body);
}
代码示例来源:origin: yigit/dev-summit-architecture-demo
@POST("new_post.json")
Call<NewPostResponse> sendPost(@Query("text") String text, @Query("client_id") String clientId,
// ultra secure API sending user id :p
@Query("user_id") long userId);
}
代码示例来源:origin: spinnaker/kayenta
@POST("/{ownerApp}/{configType}/{configName}")
Response post(@Path("ownerApp") String ownerApp,
@Path("configType") String configType,
@Path("configName") String configName,
@Body RequestBody config);
}
代码示例来源:origin: spinnaker/kayenta
/**
* Executes a signal flow program.
*
* @param accessToken The SignalFx API Access token associated with the organization that you are querying.
* @param startEpochMilli (Optional) start timestamp in milliseconds since epoch
* @param endEpochMilli (Optional) stop timestamp in milliseconds since epoch
* @param resolution (Optional) the minimum desired data resolution, in milliseconds
* @param maxDelay (Optional) desired maximum data delay, in milliseconds between 0 (for automatic maximum delay) and 900000
* @param immediate (Optional) whether to adjust the stop timestamp so that the computation doesn't wait for future data to be available
* @param program The signal flow program to execute
* @return The list of channel messages from the signal flow output
*/
@POST("/v2/signalflow/execute")
SignalFlowExecutionResult executeSignalFlowProgram(@Header("X-SF-TOKEN") String accessToken,
@Query("start") long startEpochMilli,
@Query("stop") long endEpochMilli,
@Query("resolution") long resolution,
@Query("maxDelay") long maxDelay,
@Query("immediate") boolean immediate,
@Body String program);
}
代码示例来源:origin: tomahawk-player/tomahawk-android
@POST("/relationships")
HatchetPlaylistEntries postRelationship(
@Header("Authorization") String accesstoken,
@Body TypedInput rawBody
);
代码示例来源:origin: tomahawk-player/tomahawk-android
@POST("/playbacklogEntries")
Response postPlaybackLogEntries(
@Header("Authorization") String accesstoken,
@Body TypedInput rawBody
);
代码示例来源:origin: tomahawk-player/tomahawk-android
@POST("/playlistEntries")
HatchetPlaylistEntries postPlaylistsPlaylistEntries(
@Header("Authorization") String accesstoken,
@Body TypedInput rawBody
);
代码示例来源: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: NightscoutFoundation/xDrip
@POST("General/AuthenticatePublisherAccount")
Call<String> authenticatePublisherAccount(@Query("sessionId") String sessionId,
@Query("serialNumber") String serialNumber,
@Body Map<String, String> body);
// maybe needs ?sessionId={YourSessionId}&serialNumber={YourdexcomSerialNumber}
代码示例来源:origin: NightscoutFoundation/xDrip
@POST("Publisher/DeleteContact")
@Headers({"Content-Length: 0"})
Call<ResponseBody> deleteContact(@Query("sessionId") String sessionId,
@Query("contactId") String contactId);
// needs ?sessionId={YourSessionId}&contactId={foll`owersContactId}
代码示例来源: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: NightscoutFoundation/xDrip
@POST("Publisher/CreateContact")
@Headers({"Content-Length: 0"})
Call<String> createContact(@Query("sessionId") String sessionId,
@Query("contactName") String contactName,
@Query("emailAddress") String emailAddress);
// needs ?sessionId={YourSessionId}&contactName={newcontactName}&emailAddress={FollowerEmail}
代码示例来源:origin: com.hp.autonomy.hod/java-hod-client
@POST("/2/developer/{" + DEVELOPER_UUID_VARIABLE + "}/authentication")
@Multipart
AddDeveloperAuthenticationResponse addAuthentication(
@Header("token") String signature,
@Path(DEVELOPER_UUID_VARIABLE) UUID developerUuid,
@Part(AUTH_MODE_PART) String mode
) throws HodErrorException;
代码示例来源:origin: spinnaker/halyard
@POST("/v1/config/deployments/{deploymentName}/providers/{providerName}/accounts/")
DaemonTask<Halconfig, Void> addAccount(
@Path("deploymentName") String deploymentName,
@Path("providerName") String providerName,
@Query("validate") boolean validate,
@Body Account account);
代码示例来源: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: 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: spinnaker/halyard
@POST("/v1/config/deployments/{deploymentName}/prep/")
DaemonTask<Halconfig, Object> prepDeployment(
@Path("deploymentName") String deploymentName,
@Query("validate") boolean validate,
@Query("serviceNames") List<String> serviceNames,
@Query("excludeServiceNames") List<String> excludeServiceNames,
@Body String _ignore);
代码示例来源:origin: spinnaker/halyard
@POST("/v1/config/deployments/{deploymentName}/deploy/")
DaemonTask<Halconfig, Object> deployDeployment(
@Path("deploymentName") String deploymentName,
@Query("validate") boolean validate,
@Query("deployOptions") List<DeployOption> deployOptions,
@Query("serviceNames") List<String> serviceNames,
@Query("excludeServiceNames") List<String> excludeServiceNames,
@Body String _ignore);
内容来源于网络,如有侵权,请联系作者删除!