PHP code example of mrmarkfrench / silverpop-php-connector

1. Go to this page and download the library: Download mrmarkfrench/silverpop-php-connector library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mrmarkfrench / silverpop-php-connector example snippets






{
	"mrmarkfrench/silverpop-php-connector": "*"
	}
}

$ git clone https://github.com/mrmarkfrench/silverpop-php-connector

curl -s http://getcomposer.org/installer | php

echo '{
	"poser.json

php composer.phar install

curl https://raw.githubusercontent.com/mrmarkfrench/silverpop-php-connector/master/apiTest.php > apiTest.php

# Replace indicated values with your own credentials
echo '[silverpop]
baseUrl       = "http://api.pilot.silverpop.com"
client_id     = "YOUR_CLIENT_ID"
client_secret = "YOUR_CLIENT_SECRET"
refresh_token = "YOUR_REFRESH_TOKEN"
username      = "YOUR_USERNAME"
password      = "YOUR_PASSWORD"
notify_email  = "EMAIL_ADDRESS_TO_NOTIFY"
[sftp_config]
sftpUrl       = "YOUR_SFTP_URL.silverpop.com"
mail_from     = "YOUR_EMAIL_FROM"
mail_to       = "SEND_EMAIL_TO"
mail_cc       = ""
mail_bcc      = ""' > authData.ini

php apiTest.php