GithubHelp home page GithubHelp logo

getresponse-php-wrapper's People

Contributors

dipen10 avatar imshashank avatar robertstaddon avatar vantudor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

getresponse-php-wrapper's Issues

addContact() returns NULL

when i do

$response = $api->addContact($_GET['campaign_id'], 'some name', $_GET['email']);

var_dump($response); 

prints "NULL"

I can confirm the variables in the $_GET array are correct.

Multiple customs in set_contact_customs

Hi,

in set_contact_customs method, support for multivalue customs is missing. I googled a lot but I can't figure it out how to set multivalue custom. On official getreponse api doc, there is no example how to use it. I tried separators (; and ,), array but nothing worked. Is it possible to send example how to set multivalue customs?
Thanks

Name Attribute is optional but required inside the wrapper

If you try to add a contact without a $name gets you an "Invalid params" error from GetResponse.

Currently the wrapper uses the $name variable even if its not defined or empty.

See line 462:
$params = array('campaign' => $campaign, 'action' => $action, 'name' => $name, 'email' => $email, 'cycle_day' => $cycle_day);

I changed it into

if (!empty($name)) {
    $params = array('campaign' => $campaign, 'action' => $action, 'name' => $name, 'email' => $email, 'cycle_day' => $cycle_day);
} else {
    $params = array('campaign' => $campaign, 'action' => $action, 'email' => $email, 'cycle_day' => $cycle_day);
}

Now the parameter is optional and you won't get an error from GetResponse if you don't define it or when its empty when calling the function.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.