Make sure your libraries module is version 2.0 or above before you install or upgrade SendPulse. Also, you need to place SendPulse REST client (download) in your libraries folder (usually path/ sites/ all/ libraries).
Installing SendPulse module for Drupal
Navigate on your site to "Modules" → "Install new module." Click "Choose file." Browse to the location the module has been downloaded to your desktop. Click "install."
Then you should enable SendPulse module. Tick the box of the function you're going to use. There are two possible functions: ''SendPulse Mailing Lists,'' ''SendPulse Push Notifications.'' Save changes by clicking "Save configuration."
Configuration for SendPulse module
Select "Configuration" from the main menu and choose from the drop-down menu "Web services" → "SendPulse Settings." Here you need to enter your SendPulse API key for your SendPulse account.
If you don't have a SendPulse account, go to https://sendpulse.com/ and sign up for a new account. Once you have set up your account, visit "Account settings" and click API tab. Activate REST API and click "Save." After these steps, the API ID and Secret will be created.
Please copy ID and Secret and paste this data to the "SendPulse Settings" in Drupal.
For mass export users from Drupal to SendPulse in automatic mode, you should also tick a box "Automatically export users to SendPulse after their registration."
Settings for sending web pushes
Navigate to "Structure"→ "Content types" and click "Article".
Select "SendPulse Push Notifications settings."
Here you need to fill in all the settings for this node type.
Type the title and the text for your web push message and add navigation link. If you didn't specify the link, the website URL will be used. Set the notification lifetime, in seconds. If not set, the default time will be one day. Click the button "Save content type" to save all changes.
Let's create an article and see how web push notifications work.
Click → Content → Add content → Article.
Here you need to specify the title and the text body. In the tab below "SendPulse Push" tick a box "Push this node to subscribers."
After you submit this node and click "Save" it will be pushed to your subscribers.
In SendPulse statistic report in a tab "Web Push," you can see how many web pushes were delivered and how many subscribers clicked your web push.
Sending of single web push
Select "Configuration"→"Web services"→" SendPulse settings" → "Send single push."
Fill in all the fields: the title of a message, the text of a message, the link and time to live. In a way a navigation link isn’t specified the website URL will be used. If "Time to live" is not set, the default time will be 1 day.
Click "Send Push." Drupal will submit sending with a similar confirmation:
Managing email lists
You can create an email list in SendPulse and export it to Drupal.
Click the menu item "Mailing lists", create a new email list with a help of a button "New mailing list."
Then go to Drupal menu "Structure"→ "Mailing lists"→ "Synchronize users."
Drupal will submit it by showing the number of synchronized users. Now you should click "Running cron."
You can also add a mailing list to Drupal and transfer it to SendPulse. In order to do it click "Structure" → "Add mailing list."
Give a name to your new mailing list in Drupal and tick the box "Authenticated user," and click "Save mailing list." Now you can check this created mailing list in SendPulse.
Select "Configuration"→"People"→"Account settings" →"Manage fields."
Here you can add new fields. It can be gender, city, job position and other.
Then select a field type and click "Save."
You should specify the list of values. Click "Save field settings."
Then tick "Required field" and save settings.
These settings impact the way that data is stored in the database when creating a new account.
Mapping SendPulse mailing list variables to Drupal Fields
Select "Structure"→"Mailing lists". Choose mailing list and click "Edit."
Here you need to tick a box "Authenticated user."
Define which fields from Drupal (= Sources) map to which variables in SendPulse ( = Targets).
Save changes by clicking "Save mailing list." The mapped target fields will be updated after user export.
The target fields in SendPulse mailing list will be updated like on the screen below.
Start using SendPulse Module for Drupal now
Install the module
Last Updated: 2019-09-24