@Multipart @POST("/action/api/tweet_pub") Call<RespResult> publicTweet( @Part("uid") RequestBody uid, @Part("msg") RequestBody message, @Part("img\"; filename=\"image.png\" ") RequestBody image, @Part("amr") RequestBody voice);
@Multipart @PUT("/patients/{id}/") void updatePatient(@Path("id") long patientID, @Part("other_names") String firstName, @Part("last_name") String lastName, @Part("identifier") String identifier, @Part("birth_date") String dob, @Part("reference_health_centre ") String facility, @Part("sex") String sex, @Part("contact_number") String contact1, @Part("second_contact_number") String contact2, @Part("third_contact_number") String contact3, @Part("treatment_start_date") String txStart, @Part("location") String location, @Part("interim_outcome") String outcome, Callback<Users> callback);
@Multipart @Headers({"Content-Type: multipart/form-data", "Accept: application/json", "Accept-Encoding: gzip, deflate"}) @POST("/api/{userID}/violation/create") VideoAnswer uploadImage(@Part("photo") TypedFile photo, @EncodedPath("userID") String userID, @Part("latitude") double latitude, @Part("longitude") double longitude);
@Multipart @PUT("/appointments/{id}/") void updateAppointments(@Path("id") long appointmentID, @Part("patient") String patientId, @Part("owner") String owner, @Part("notes") String notes, @Part("appointment_date") String date, @Part("title") String appointmentType, @Part("end_time") String endTime, @Part("start_time") String startTime, Callback<Appointment> serverResponseCallback);
@Multipart @PUT("/enrollments/{id}/") void updateEnrollments(@Path("id") long enrollmentID, @Part("patient") String patient, @Part("comment") String comment, @Part("program") String program, @Part("date_enrolled") String date, Callback<Enrollment> serverResponseCallback);
@Multipart @PUT("/events/{id}/") void updateEvent(@Path("id") long eventID, @Part("name") String name, @Part("description") String description, @Part("event_date") String date, @Part("start_time") String startTime, @Part("end_time") String endTime, Callback<Events> serverResponseCallback);
/*** * section contains all the methods with endpoints to update information on the server */ @Multipart @PUT("/regimen/{id}/") void updateRegimen(@Path("id") long regimenId, @Part("patient") String patientId, @Part("notes") String notes, @Part("drugs") String[] drugs, @Part("date_started") String startDate, @Part("date_ended") String endDate, Callback<Regimen> serverResponseCallback);
@Multipart @PUT("/notifications/{id}/") void updateNotification(@Path("id") long notificationID, @Part("recipient") String recipientID, @Part("verb") String verb, @Part("unread") String unread, @Part("actor_object_id") String actor, Callback<Notifications> serverResponseCallback);
@Multipart @PUT("/outcome/{id}/") void updateOutcome(@Path("id") long outcomeID, @Part("patient") String patientID, @Part("outcome_type") String outcomeType, @Part("outcome_date") String outcomeDate, @Part("notes") String notes, Callback<Outcome> serverResponseCallback);
@Multipart @PUT("/adverseEventType/{id}/") void updateAdverseEventType(@Path("id") long adverseEventTypeID, @Part("name") String patientID, @Part("description") String admissionDate, @Part("emergency_contacts") String dischargeDate, Callback<AdverseEvent> serverResponseCallback);
@Multipart @PUT("/adverseEvents/{id}/") void updateAdverseEvent(@Path("id") long adverseEventID, @Part("patient") String patientID, @Part("adverse_event_type") String admissionDate, @Part("event_date") String dischargeDate, @Part("notes") String notes, Callback<AdverseEvent> serverResponseCallback);
@Multipart @PUT("/counselling/{id}/") void updateCounselling(@Path("id") long sessionID, @Part("patient") String patient, @Part("counselling_session_type") String sessionType, @Part("notes") String notes, Callback<Counselling> serverResponseCallback);
@Multipart @PUT("/admissions/{id}/") void updateAdmissions(@Path("id") long admissionID, @Part("patient") String patientID, @Part("admission_date") String admissionDate, @Part("discharge_date") String dischargeDate, @Part("health_centre") String healthCentre, @Part("notes") String notes, Callback<Admission> serverResponseCallback);
@Multipart @PUT("/medicalReport/{id}/") void updateMedicalReport(@Path("id") long reportID, @Part("title") String title, @Part("report_type") String reportType, @Part("patient") String patient, @Part("notes") String notes, Callback<MedicalRecord> serverResponseCallback);
@Headers({ "Host: a.4493.com", "User-Agent: 21", "Content-Type: text/plain; charset=UTF-8" }) @Multipart @POST("rest/") Observable<AlbumData> getAlbumData( @Part(value = "appkey",encoding="8bit") String appkey, @Part(value = "channel_id",encoding="8bit") String channelid, @Part(value = "crc",encoding="8bit") String crc , @Part(value = "page",encoding="8bit") int page, @Part(value = "pagesize",encoding="8bit") int pagesize , @Part(value = "ver",encoding="8bit") String ver, @Part(value = "api",encoding="8bit") String api, @Part(value = "market",encoding="8bit") String market, @Part(value = "version",encoding="8bit") String version,@Part(value = "keyword",encoding="8bit") String key);
@POST("/2/authenticate/developer") @Multipart Response authenticateDeveloper( @Header("apiKey") ApiKey apiKey, @Part("tenant") String tenant, @Part("email") String email ) throws HodErrorException;
@POST(COMBINED_PATH) @Multipart Response authenticateCombined( @Header("cmb_sso_tkn") AuthenticationToken<EntityType.CombinedSso, TokenType.Simple> combinedSsoToken, @Header("token") String signature, @Header("origin") String origin, @Query(ALLOWED_ORIGINS_PARAMETER) String allowedOrigin, @Part(NONCE_PARAMETER) String nonce, @Part(DOMAIN_PARAMETER) String domain, @Part(APPLICATION_PARAMETER) String name, @Part(USERSTORE_DOMAIN_PARAMETER) String userstoreDomain, @Part(USERSTORE_NAME_PARAMETER) String userstoreName, @Part(TOKEN_TYPE_PARAMETER) String tokenType ) throws HodErrorException;
@POST(URL + V2) @Multipart Response createQueryProfile( @Header(TOKEN_HEADER) AuthenticationToken<?, ?> token, @Path(PROFILE_VARIABLE) String name, @Part(INDEX_PART) String queryManipulationIndex, @PartMap Map<String, Object> params ) throws HodErrorException;
@PUT(URL + V1) @Multipart Response updateQueryProfile( @Header(TOKEN_HEADER) AuthenticationToken<?, ?> token, @Path(PROFILE_VARIABLE) ResourceIdentifier queryProfile, @Part(INDEX_PART) String queryManipulationIndex, @PartMap Map<String, Object> params ) throws HodErrorException;
@POST(BASE_PATH + V1) @Multipart Response create( @Header(TOKEN_HEADER) AuthenticationToken<?, ?> token, @Path(USER_STORE_VARIABLE) ResourceIdentifier userStore, @Part("group_name") String name, @PartMap Map<String, Object> hierarchyParameters ) throws HodErrorException;
@POST(BASE_PATH + "/{group}/user" + V1) @Multipart Response assignUser( @Header(TOKEN_HEADER) AuthenticationToken<?, ?> token, @Path(USER_STORE_VARIABLE) ResourceIdentifier userStore, @Path("group") String group, @Part("user_uuid") String userUuid ) throws HodErrorException;
@POST(BASE_PATH + "/link" + V1) @Multipart Response link( @Header(TOKEN_HEADER) AuthenticationToken<?, ?> token, @Path(USER_STORE_VARIABLE) ResourceIdentifier userStore, @Part("parent_group_name") String parent, @Part("child_group_name") String child ) throws HodErrorException;
@POST(BASE_PATH + V1) @Multipart Response create( @Header(TOKEN_HEADER) AuthenticationToken<?, ?> token, @Path(USER_STORE_VARIABLE) ResourceIdentifier userStore, @Part("user_email") String email, @Part("on_success") String onSuccess, @Part("on_error") String onError, @PartMap Map<String, Object> params ) throws HodErrorException;
@POST(USER_BASE_PATH + "/reset" + V1) @Multipart Response resetAuthentication( @Header(TOKEN_HEADER) AuthenticationToken<?, ?> token, @Path(USER_STORE_VARIABLE) ResourceIdentifier userStore, @Path(USER_UUID_VARIABLE) UUID userUuid, @Part("on_success") String onSuccess, @Part("on_error") String onError ) throws HodErrorException;
@PATCH(METADATA_BASE_PATH + V1) @Multipart Response addUserMetadata( @Header(TOKEN_HEADER) AuthenticationToken<?, ?> token, @Path(USER_STORE_VARIABLE) ResourceIdentifier userStore, @Path(USER_UUID_VARIABLE) UUID userUuid, @Part("metadata") List<Metadata<?>> metadata ) throws HodErrorException;
/** * Analyze the sentiment of the given file using the given token * @param token The token to use to authenticate the request * @param file The file containing the text to analyze * @param language The language of the text * @return The sentiment of the response */ @POST(URL) @Multipart Response analyzeSentimentForFile( @Header("token") AuthenticationToken<?, ?> token, @Part("file") TypedOutput file, @Part("language") SentimentAnalysisLanguage language ) throws HodErrorException;
@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;
/** * Query HP Haven OnDemand for documents using query text in a file using the given token * @param token The token to use to authenticate the request * @param file A file containing the query text * @param params Additional parameters to be sent as part of the request * @return A list of documents that match the query text */ @Multipart @POST(URL) Response queryTextIndexWithFile( @Header("token") AuthenticationToken<?, ?> token, @Part("file") TypedOutput file, @PartMap Map<String, Object> params ) throws HodErrorException;
/** * Query HP Haven OnDemand for documents using query text in a file using the given token * @param token The token to use to authenticate the request * @param file A file containing the query text * @param params Additional parameters to be sent as part of the request * @return A list of documents that match the query text */ @Multipart @POST(URL) Response findRelatedConceptsWithFile( @Header("token") AuthenticationToken<?, ?> token, @Part("file") TypedOutput file, @PartMap Map<String, Object> params ) throws HodErrorException;
/** * Finds similar documents to the text in a file using the given token * @param token The token to use to authenticate the request * @param file A file containing the query text * @param params Additional parameters to be sent as part of the request * @return A list of documents that are similar to the query text */ @Multipart @POST(URL) Response findSimilarDocumentsToFile( @Header("token") AuthenticationToken<?, ?> token, @Part("file") TypedOutput file, @PartMap Map<String, Object> params ) throws HodErrorException;
@Multipart @POST(SLACK_FILE_UPLOAD) void sendScreenShot( @Part("token") String token, @Part("title") String title, @Part("file") TypedFile screenShotFile, @Part("channels") String channels, Callback<JSONObject> callback );
@Multipart @POST("/nudge/api/{version}/users/@me/refreshToken") void getRefreshToken( @Path(UpPlatformSdkConstants.API_VERSION) String version, @Part("secret") String clientSecret, Callback<Object> response );
/** * <pre> * curl -k -X POST 'https://example.com/oauth2/token' -d 'code=aa5b25e58cb0ecbb1ddf5d671e769b04cabcdefg&state=8tory&grant_type=authorization_code&client_id=id&client_secret=secret' * </pre> */ @Multipart @POST("/token") void token( @Part("code") String code, @Part("client_id") String clientId, @Part("client_secret") String clientSecret, @Part("grant_type") String grantType, @Part("state") String state, Callback<Credential> callback );
@Multipart @POST("/token") Credential token( @Part("code") String code, @Part("client_id") String clientId, @Part("client_secret") String clientSecret, @Part("grant_type") String grantType, @Part("state") String state );
@Multipart @POST("/token") Observable<Credential> observeToken( @Part("code") String code, @Part("client_id") String clientId, @Part("client_secret") String clientSecret, @Part("grant_type") String grantType, @Part("state") String state );
/** * <pre> * curl -k -X POST 'https://example.com/oauth2/token' -d 'grant_type=password&client_id=id&client_secret=secret&state=state&username=foo&password=bar' * </pre> */ @Multipart @POST("/token") void token( @Part("client_id") String clientId, @Part("client_secret") String clientSecret, @Part("grant_type") String grantType, @Part("state") String state, @Part("username") String username, @Part("password") String password, Callback<Credential> callback );
@Multipart @POST("/token") Credential token( @Part("client_id") String clientId, @Part("client_secret") String clientSecret, @Part("grant_type") String grantType, @Part("state") String state, @Part("username") String username, @Part("password") String password );
@Multipart @POST("/token") Observable<Credential> observeToken( @Part("client_id") String clientId, @Part("client_secret") String clientSecret, @Part("grant_type") String grantType, @Part("state") String state, @Part("username") String username, @Part("password") String password );
@Multipart @PUT("/profile") void editProfile(@Part("authentication_token") TypedString token, @Part("photo") TypedFile photo, @Part("email") TypedString email, @Part("primary_technology") TypedString primaryTechnology, @Part("position") TypedString position, @Part("company") TypedString company, @Part("location") TypedString location, @Part("description") TypedString description, @Part("website") TypedString website, @Part("facebook_url") TypedString facebookUrl, @Part("twitter_handle") TypedString twitterHandle, @Part("technologies") TypedString technologies, Callback<Void> callback);
@Multipart @PUT("/profile") void editProfile(@Part("authentication_token") TypedString token, @Part("twitter_handle") TypedString twitterHandle, @Part("email") TypedString email, @Part("primary_technology") TypedString primaryTechnology, @Part("position") TypedString position, @Part("company") TypedString company, @Part("location") TypedString location, @Part("description") TypedString description, @Part("website") TypedString website, @Part("facebook_url") TypedString facebookUrl, Callback<EditProfileBaseResponse> callback);