/* API operations methods */

        public UploadCodeResult UploadCode(UploadCodeRequest uploadRequest, SortedDictionary <string, string> optionalParameters = null)
        {
            SortedDictionary <string, string> parameters = new SortedDictionary <string, string>();

            // TODO: define TEMP file name / folder
            parameters.Add("files", "files.zip");
            parameters.Merge(optionalParameters);

            ZipProject(uploadRequest.Files);

            var response = ExecuteRestRequest(Method.POST, "/code.json", parameters);

            // TODO: remove temp file

            return(new JsonDeserializer().Deserialize <UploadCodeResult>(response));
        }
Beispiel #2
0
        /* API operations methods */
        public UploadCodeResult UploadCode(UploadCodeRequest uploadRequest, SortedDictionary<string, string> optionalParameters = null)
        {
            SortedDictionary<string, string> parameters = new SortedDictionary<string, string>();
            // TODO: define TEMP file name / folder
            parameters.Add("files", "files.zip");
            parameters.Merge(optionalParameters);

            ZipProject(uploadRequest.Files);

            var response = ExecuteRestRequest(Method.POST, "/code.json", parameters);

            // TODO: remove temp file

            return new JsonDeserializer().Deserialize<UploadCodeResult>(response);
        }