Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
protogrid:json_api_endpoint_mailsend [2020-07-23 17:02] – [Example client-side jQuery function to send mail in web application] mhaprotogrid:json_api_endpoint_mailsend [2020-07-28 08:27] – [JSON API Endpoint mailsend] 85.1.6.98
Line 31: Line 31:
 <code json> <code json>
 { {
-  "errors": [], +   "errors" : [], 
-  "protogrid_environment_version": "1.3.9", +   "protogrid_environment_version" : "2.1.3", 
-  "result": +   "result": {"success":true}
-    "success": "true+
-  ]+
 } }
 </code> </code>
 +
  
 ==== Example client-side jQuery function to send mail in web application ==== ==== Example client-side jQuery function to send mail in web application ====
Line 44: Line 43:
  
 $.get("https://example.protogrid.com/api/v2/apps/example/mailsend?to=user@example.com&subject=Test&body=This%20is%20a%20testmessage", function(data, status){ $.get("https://example.protogrid.com/api/v2/apps/example/mailsend?to=user@example.com&subject=Test&body=This%20is%20a%20testmessage", function(data, status){
-    alert("Data: " + JSON.strinify(data));+    alert("Data: " + JSON.stringify(data));
   });   });
      
Line 54: Line 53:
   },   },
   function(data, status){   function(data, status){
-    alert("Data: " + JSON.strinify(data));+    alert("Data: " + JSON.stringify(data));
   });     });  
  
 </code> </code>
Print/export