/// <summary> /// The GetFileUploadURL operation generates and returns a temporary URL for the /// purposes of retrieving a file uploaded by a Worker as an answer to a FileUploadAnswer /// question for a HIT. /// </summary> /// <param name="request">A <see cref="GetFileUploadURLRequest"/> instance containing /// the request parameters</param> /// <returns> /// A <see cref="String"/> containing the upload URL /// </returns> /// <remarks> The temporary URL is generated the instant the GetFileUploadURL operation /// is called, and is valid for 60 seconds.</remarks> public string GetFileUploadURL(GetFileUploadURLRequest request) { GetFileUploadURLResponse response = (GetFileUploadURLResponse)(this.SendRequest(request)); return response.GetFileUploadURLResult[0].FileUploadURL; }
/// <summary> /// See <a href="http://docs.amazonwebservices.com/AWSMechTurk/2012-03-25/AWSMturkAPI/ApiReference_GetFileUploadURLOperation.html">online documentation for this operation.</a> /// </summary> /// <param name="assignmentId">The assignment id.</param> /// <param name="questionIdentifier">The question identifier.</param> /// <returns>A <see cref="String"/> instance</returns> public string GetFileUploadURL(string assignmentId, string questionIdentifier) { GetFileUploadURLRequest request = new GetFileUploadURLRequest(); request.AssignmentId = assignmentId; request.QuestionIdentifier = questionIdentifier; return Proxy.GetFileUploadURL(request); }