I have gone through the API documentation which is available on https://www.printfriendly.com/api/instructions. But am failed to integrate this ASP.NET Web forms.
The sample code was given there
curl https://api.printfriendly.com/v1/pdfs/create \
-u your_api_key: \
-d page_url=https://en.wikipedia.org/wiki/Eclipse
I have changed the code to ajax call
$.ajax({
url: 'https://api.printfriendly.com/v1/pdfs/create \\ -u c56bd01d6b5ddwer57ee5ae321f875fd1: \\',
type: 'GET',
data: { page_url: pageurl},
crossDomain: true,
dataType:"jsonp",// dataType: 'json',
//headers: {
// 'Access-Control-Allow-Origin': '*'
//},
success: function (data) {
console.log(data);
}
}
);
and am getting an error while executing this code.
Is there anyone having experience in working with this API. Please help me how can I integrate this into ASP.NET web form.