Create one PDF

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

fko
Posts: 61
Joined: Tue May 20, 2014 2:13 pm

Re: Create one PDF

Post by fko » Wed Jun 11, 2014 2:44 pm

Hi,

Thanks for the attached file...:-)

Yes, i knew that JSON was not code for LiveCode...The problem i had is that once i managed to make it work from Mandrill, i didn't know how to make the call from LiveCode...:-(

I was testing with what you sent me and with the options of the API Messages of Mandrill, and i tried to add one "Bcc"...

So, in your query i added this line just before the attachement part:

"bcc_address": "message.bcc_MyMail@gmail.com",

But it didn't work...:-(
Is it not correct this line?

Here is all the code of this query:

{
"key": "[THEKEY]",
"message": {
"text": "MIEUX",
"subject": "HELLO WORLD",
"from_email": "message.from_email@example.com",
"from_name": "Example Name",
"to": [
{
"email": "[ADDRESS]",
"type": "to"
}
],
"bcc_address": "message.bcc_MyMail@gmail.com",
"attachments":
[{"type":"application/pdf",
"name":"[FILENAME]",
"content":"[FILECONTENT]"}],
"headers": {
"Reply-To": "[ADDRESS]"
},
"images": []
},
"async": false,
"ip_pool": "Main Pool"
}

regards,
fko

scott_morrow
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 38
Joined: Tue Jun 27, 2006 8:35 pm
Contact:

Re: Create one PDF

Post by scott_morrow » Wed Jul 09, 2014 2:31 am

Thanks for demo stack showing how to get started with mandrill!
In the example stack, data is sent to the https mandrill url using "post"
Although I can use the same method from the on-rev server if I use an http url
How would you "post" to mandrill's https url from the on-rev server?

I'm thinking it can be done with "get" but if so, I haven't quite worked out how to correctly append the json data

I assume that libURL is not part of on-rev server (though the docs say it is) as libUrlSetSSLVerification "false" produces a "can't find handler" error

--
Scott Morrow
Elementary Software
...now with 20% less chalk dust!

fko
Posts: 61
Joined: Tue May 20, 2014 2:13 pm

Re: Create one PDF

Post by fko » Thu Jul 10, 2014 4:14 pm

Hi Scott,

I would like to help you, but my knowledge about this concret subject is quite zero...:-(

Even if you saw the code here, it is not belonging to me...I only adapted some few things...

How knows better than me and can help you more is "bangkok "...

regards,
fko

Post Reply