@PUT("/v1/config/deployments/{deploymentName}/pubsubs/{pubsubName}/subscriptions/subscription/{subscriptionName}/") DaemonTask<Halconfig, Void> setSubscription( @Path("deploymentName") String deploymentName, @Path("pubsubName") String pubsubName, @Path("subscriptionName") String subscriptionName, @Query("validate") boolean validate, @Body Subscription subscription);
@POST("/api/valuestwo") void MediaUploadByte(@Body FileData fileData, Callback<String> response);
/** * <b>OAuth Required</b> * * <p> Add one or more items to a custom list. Items can be movies, shows, seasons, episodes, or people. */ @POST("/users/{username}/lists/{id}/items") SyncResponse addListItems( @Path("username") String username, @Path("id") String id, @Body SyncItems items ) throws OAuthUnauthorizedException;
/** * <b>OAuth Required</b> * * <p> Remove one or more items from a custom list. */ @POST("/users/{username}/lists/{id}/items/remove") SyncResponse deleteListItems( @Path("username") String username, @Path("id") String id, @Body SyncItems items ) throws OAuthUnauthorizedException;
@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, @Body String _ignore);
@PUT("/v1/config/deployments/{deploymentName}/providers/{providerName}/bakery/defaults/baseImage/{baseImageId}/") DaemonTask<Halconfig, Void> setBaseImage( @Path("deploymentName") String deploymentName, @Path("providerName") String providerName, @Path("baseImageId") String baseImageId, @Query("validate") boolean validate, @Body BaseImage baseImage);
@PUT("/v1/config/deployments/{deploymentName}/artifactProviders/{providerName}/artifactAccounts/account/{accountName}/") DaemonTask<Halconfig, Void> setArtifactAccount( @Path("deploymentName") String deploymentName, @Path("providerName") String providerName, @Path("accountName") String accountName, @Query("validate") boolean validate, @Body ArtifactAccount account);
@POST(PDAPIConfig.PD_USERS_PATH) void registerUserWithFacebook( @Body String emptyBody, @Query("user[facebook][access_token]") String facebookAccessToken, @Query("user[facebook][id]") String facebookUserID, @Query("user[unique_identifier]") String uid, Callback<PDUser> callback);
@POST(PDAPIConfig.PD_INIT_NON_SOCIAL_USER) void createNonSocialUser( @Body String emptyBody, @Query("unique_identifier") String uid, @Query("device_token") String deviceToken, @Query("platform") String platform, Callback<PDBasicResponse> callback);
@PUT("/stories/{id}") Observable<Story> updateStory(@Path("id") String id, @Body UpdateStoryRequestData data);
@POST("/oauth/token") public void getAccessToken(@Query("client_id") String client_id, @Query("client_secret") String client_secret, @Query("code") String code, @Body String unused, // can remove when retrofit releases this // fix: https://github // .com/square/retrofit/commit/19ac1e2c4551448184ad66c4a0ec172e2741c2ee Callback<AccessToken> callback);
@PUT("/collectors/{collectorId}") Response register(@Path("collectorId") String collectorId, @Body CollectorRegistrationRequest request);
@PUT("/system/collectors/{collectorId}") Response legacyRegister(@Path("collectorId") String collectorId, @Body CollectorRegistrationRequest request);
@POST("/get_usuario.php") void doLogin(@Body JsonObject data, Callback<LoginResponse> response);
@POST("/generate_new_password.php") void generateNewPassword(@Body JsonObject data, Callback<BaseResponse> response);
@POST("/get_all_estaciones_new.php") void getAllStations(@Body JsonObject data, Callback<TotemResponse> response);
@POST("/get_historial_rutas_usuario.php") void getAllUserRoutes(@Body JsonObject data, Callback<RouteResponse> response);
@POST("/get_datos_usuario.php") void getUserData(@Body JsonObject data, Callback<ProfileResponse> response);
@POST("/change_password.php") void changePassword(@Body JsonObject data, Callback<ChangePasswordResponse> response);
@POST("/get_estaciones_cercanas.php") void getNearestStations(@Body JsonObject data, Callback<SearchResponse> response);
@Headers("Content-Type: application/json") @PUT("/notifications/{id}/") void openedOneSignalPush(@Path("id") String id, @Body OneSignalBody data, Callback<OneSignalResponse> response);
@POST("/v1/devices/{deviceID}/{function}") CallFunctionResponse callFunction(@Path("deviceID") String deviceID, @Path("function") String function, @Body FunctionArgs args);
@POST("/v1/users") Response signUp(@Body SignUpInfo signUpInfo);
@POST("/v1/orgs/{orgSlug}/customers") Responses.LogInResponse signUpAndLogInWithCustomer(@Body SignUpInfo signUpInfo, @Path("orgSlug") String orgSlug);
@POST(SUB_SUBSCRIBE_SVC) RequestSubscriptionResult doSubscriptionByUsername( @Path(SUBSCRIBER_ID) long subId, @Body String pubUsername);
@POST(USER_GET_SVC) MobileClient getUser(@Body String gcmToken);
@POST(PUB_CONFIRM_SVC) boolean confirmSubscription( @Path(PUBLISHER_ID) long pubId, @Body SubscriptionResult subscriptionResult);
@POST(PUB_REVOKE_SVC) boolean revokeSubscription( @Path(PUBLISHER_ID) long pubId, @Body long subId);
@POST(PUB_ALERT_SVC) boolean notifyAlert( @Path(PUBLISHER_ID) long pubId, @Body GlucoseAlert glucose);
@POST(SUB_SUBSCRIBE_SVC) RequestSubscriptionResult doSubscriptionByUsername( @Path(SUBSCRIBER_ID) long subId, @Body String pubUsername, HttpServletResponse response);
@POST(USER_GET_SVC) public MobileClient getMobileClient(@Body String gcmToken, Principal p);
@POST(PUB_CONFIRM_SVC) boolean confirmSubscription( @Path(PUBLISHER_ID) long pubId, @Body SubscriptionResult subscriptionResult, HttpServletResponse response);
@POST(PUB_REVOKE_SVC) boolean revokeSubscription( @Path(PUBLISHER_ID) long pubId, @Body long subId, HttpServletResponse response);
@POST(PUB_ALERT_SVC) boolean notifyAlert( @Path(PUBLISHER_ID) long pubId, @Body GlucoseAlert glucoseAlert, HttpServletResponse response);
@POST(ALERT_SVC_PATH) LogicTupleEvent postAlert(@Body LogicTupleEvent alert);
/** * <b>OAuth Required</b> * * <p> User pauses a video */ @POST("/scrobble/pause") void pauseWatching( @Body Progress prog,Callback<Response> res ) throws OAuthUnauthorizedException;
/** * <b>OAuth Required</b> * * <p> Create a new custom list. The name is the only required field, but the other info is recommended to ask for. */ @POST("/users/{username}/lists") com.uwetrottmann.trakt.v2.entities.List createList( @Path("username") String username, @Body com.uwetrottmann.trakt.v2.entities.List list ) throws OAuthUnauthorizedException;
/** * <b>OAuth Required</b> * * <p> Update a custom list by sending 1 or more parameters. If you update the list name, the original slug will * still be retained so existing references to this list won't break. */ @PUT("/users/{username}/lists/{id}") com.uwetrottmann.trakt.v2.entities.List updateList( @Path("username") String username, @Path("id") String id, @Body com.uwetrottmann.trakt.v2.entities.List list ) throws OAuthUnauthorizedException;
@POST(Constants.GOOGLE_API_BASE_URL + "/upload/drive/v2/files") Call<DriveFile> uploadGooogleFile(@Query("uploadType") String uploadType, @Query("fields") String fields, @Header("Content-Type") String contentType, @Header("Content-Length") long length, @Header("Authorization") String authorization, @Body RequestBody data);
@PUT(Constants.GOOGLE_API_BASE_URL + "/drive/v2/files/{fileId}") Call<DriveFile> setFileFolder(@Path("fileId") String fileId, @Query("fields") String fields, @Header("Authorization") String authorization, @Body RequestBody data);