Java 类retrofit.http.Multipart 实例源码

项目:FlowGeek    文件:ServerAPI.java   
@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);
项目:msf_communique    文件:Interface.java   
@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);
项目:patrol-android    文件:PatrulatrulAPI.java   
@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);
项目:msf_communique    文件:Interface.java   
@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);
项目:msf_communique    文件:Interface.java   
@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);
项目:msf_communique    文件:Interface.java   
@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);
项目:msf_communique    文件:Interface.java   
/***
 * 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);
项目:msf_communique    文件:Interface.java   
@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);
项目:msf_communique    文件:Interface.java   
@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);
项目:msf_communique    文件:Interface.java   
@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);
项目:msf_communique    文件:Interface.java   
@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);
项目:msf_communique    文件:Interface.java   
@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);
项目:msf_communique    文件:Interface.java   
@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);
项目:msf_communique    文件:Interface.java   
@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);
项目:QDNews    文件:MeiziService.java   
@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);
项目:java-hod-client    文件:AuthenticationBackend.java   
@POST("/2/authenticate/developer")
@Multipart
Response authenticateDeveloper(
    @Header("apiKey") ApiKey apiKey,
    @Part("tenant") String tenant,
    @Part("email") String email
) throws HodErrorException;
项目:java-hod-client    文件:AuthenticationBackend.java   
@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;
项目:java-hod-client    文件:QueryProfileBackend.java   
@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;
项目:java-hod-client    文件:QueryProfileBackend.java   
@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;
项目:java-hod-client    文件:GroupsBackend.java   
@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;
项目:java-hod-client    文件:GroupsBackend.java   
@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;
项目:java-hod-client    文件:GroupsBackend.java   
@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;
项目:java-hod-client    文件:UserStoreUsersBackend.java   
@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;
项目:java-hod-client    文件:UserStoreUsersBackend.java   
@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;
项目:java-hod-client    文件:UserStoreUsersBackend.java   
@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;
项目:java-hod-client    文件:SentimentAnalysisBackend.java   
/**
 * 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;
项目:java-hod-client    文件:DeveloperBackend.java   
@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;
项目:java-hod-client    文件:QueryTextIndexBackend.java   
/**
 * 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;
项目:java-hod-client    文件:FindRelatedConceptsBackend.java   
/**
 * 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;
项目:java-hod-client    文件:FindSimilarBackend.java   
/**
 * 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;
项目:RSSTS    文件:SlackClient.java   
@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
);
项目:UPPlatform_Android_SDK    文件:RestApiInterface.java   
@Multipart
@POST("/nudge/api/{version}/users/@me/meals")
void createMealEvent(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);
项目:UPPlatform_Android_SDK    文件:RestApiInterface.java   
@Multipart
@POST("/nudge/api/{version}/meals/{xid}/partialUpdate")
void updateMealEvent(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @Path(UpPlatformSdkConstants.XID) String xid,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);
项目:UPPlatform_Android_SDK    文件:RestApiInterface.java   
@Multipart
@POST("/nudge/api/{version}/users/@me/generic_events")
void createCustomEvent(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);
项目:UPPlatform_Android_SDK    文件:RestApiInterface.java   
@Multipart
@POST("/nudge/api/{version}/generic_events/{xid}/partialUpdate")
void updateCustomEvent(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);
项目:UPPlatform_Android_SDK    文件:RestApiInterface.java   
@Multipart
@POST("/nudge/api/{version}/users/@me/workouts")
void createWorkoutEvent(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);
项目:UPPlatform_Android_SDK    文件:RestApiInterface.java   
@Multipart
@POST("/nudge/api/{version}/workouts/{xid}/partialUpdate")
void updateWorkoutEvent(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);
项目:UPPlatform_Android_SDK    文件:RestApiInterface.java   
@Multipart
@POST("/nudge/api/{version}/users/@me/sleeps")
void createSleepEvent(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);
项目:UPPlatform_Android_SDK    文件:RestApiInterface.java   
@Multipart
@POST("/nudge/api/{version}/users/@me/body_events")
void createBodyEvent(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);
项目:UPPlatform_Android_SDK    文件:RestApiInterface.java   
@Multipart
@POST("/nudge/api/{version}/users/@me/goals")
void createOrUpdateUsersGoals(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);