Welcome Guest, Not a member yet? Register   Sign In
Campaign Monitor V3 API Library
#1

[eluser]bugboy[/eluser]
Just thought i'd post my Campaign Monitor library for you to use.

Its hosted on Github : https://github.com/twelve20/CI-Campaign-Monitor

Hopefully it will be of some use.
#2

[eluser]Aken[/eluser]
I'd recommend adding a prefix to your configuration values, to prevent the variables from clashing with any other config values.

You also have a GoDaddy SSL certificate in your source code (libraries > cmonitor > .crt file) you'll likely want to remove (and possibly add a .gitignore to prevent it from being added again).

And I'd definitely recommend you credit the original authors. https://github.com/campaignmonitor/createsend-php
#3

[eluser]bugboy[/eluser]
Thanks for the feed back

The orginal authors have been kept intact if you look at the code and I've already referenced them on the github page.
You'll also find it's been approved by Campaign Monitor on there api wrapper page.
http://www.campaignmonitor.com/api/sampl...-wrappers/

I'll definitely add I prefix to the config values and gitignore to the .crt

this was just a quick post to let you guys know about it.

Got a few improvements and plans for it.
#4

[eluser]Aken[/eluser]
Good deal Smile
#5

[eluser]Typeslowly[/eluser]
Hi bugboy,

This will come in very useful, thank you for sharing.

I am getting a blank page when I visit the example. I have addeded my CM api key, autoload the config, and included my listid.

Have you experienced this? I have tried this with installations of CodeIgniter_2.0.0 and CodeIgniter_2.0.2 and pasted the files exactly as specified in the download.

Let me know if you have any questions.

Many Thanks.
#6

[eluser]bugboy[/eluser]
Ahh my mistake. I pushed to git hub but forgot to push the new config file.


All you need to do is add ci_ to each config key in you cmonitor config file.

eg

$config['api_key']

to

$congfi['ci_api_key']

This has also been pushed to github as well
#7

[eluser]Typeslowly[/eluser]
Have updated cmonitor.php but still blank screen?
#8

[eluser]bugboy[/eluser]
Hi

You don't need to autoload the config file as its done automatically for you.

Make sure your API key is correct and your list ID key as well.
#9

[eluser]Typeslowly[/eluser]
Hi Bugboy,

Thanks for your speedy response, working good now thanks.

:-)

Jason
#10

[eluser]bugboy[/eluser]
No Worries

I've been working on an updated version so once its ready i'll push it to github




Theme © iAndrew 2016 - Forum software by © MyBB