Commits

Martin Ostrovsky committed fe4d60d

added test image for c# test case

  • Participants
  • Parent commits bd28037

Comments (0)

Files changed (4)

File c#/RepustateClient.cs

 {
     class RepustateClient
     {
-        public static string API_KEY = "02e110464052e009f2f08f35e3655ef449380787";
+        public static string API_KEY = "YOUR_API_KEY";
         public static string DOMAIN = "http://api.repustate.com/v2/";
         public static string BASE_URL = DOMAIN + API_KEY;
 

File c#/TestRepustateClient.cs

 
 		    powerpointMap.Add("slide_1_title", "Title1");
 		    powerpointMap.Add("slide_1_notes", "Slide 1's Notes Data");
-            powerpointMap.Add("slide_1_image", ImageToBase64String(Image.FromFile("E:\\Corner\\Workspace\\repustate\\images\\1.jpg")));            
+            powerpointMap.Add("slide_1_image", ImageToBase64String(Image.FromFile("test_image.jpg")));            
 		
     		powerpointMap.Add("slide_2_title", "Slide Title Number 2");
     		powerpointMap.Add("slide_2_notes", "This is slide number two's notes section");
-    		powerpointMap.Add("slide_2_image", ImageToBase64String(Image.FromFile("E:\\Corner\\Workspace\\repustate\\images\\2.jpg")));
+    		powerpointMap.Add("slide_2_image", ImageToBase64String(Image.FromFile("test_image.jpg")));
     		
     		powerpointMap.Add("slide_3_title", "Slide Title Number 3");
     		powerpointMap.Add("slide_3_notes", "This is slide number three's notes section");
-    		powerpointMap.Add("slide_3_image", ImageToBase64String(Image.FromFile("E:\\Corner\\Workspace\\repustate\\images\\3.jpg")));
+    		powerpointMap.Add("slide_3_image", ImageToBase64String(Image.FromFile("test_image.jpg")));
     		
-            RepustateClient.savePowerpointSlides(powerpointMap, "E:\\Corner\\acsharp.ppt");
+            RepustateClient.savePowerpointSlides(powerpointMap, "acsharp.ppt");
 	    }
 
         public static string ImageToBase64String(Image image)

File c#/test_image.jpg

Added
New image

File java/RepustateClient.java

 
 public class RepustateClient 
 {
-	public static String API_KEY = "02e110464052e009f2f08f35e3655ef449380787";
+	public static String API_KEY = "YOUR_API_KEY";
 	public static String DOMAIN = "http://api.repustate.com/v2/";
 	public static String BASE_URL = DOMAIN + API_KEY;