Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#SavetoPDF').on('click', function() {
- $.ajax({
- url: "https://sender.blockspring.com/api_v2/blocks/761172049d80626f51e221bb40e9b4b6? api_key=731cdcfc88b680bdd6c8e4242677d39e",
- type: "POST",
- contentType: "application/json",
- data: JSON.stringify({ "html": "<html><body><p>Hello world - I love blockspring!</p><img src=\"http://s3.amazonaws.com/blockspring-static/kitten.jpg\" style=\"width: 300px;\"></img></body></html>"}),
- crossDomain: true
- }).done(function(response){
- console.log(response);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement