Skip Navigation

Marketing Cloud API

control-j is the search shortcutj
Intro to Marketing Cloud APIs
REST API
SOAP Web Service API
SOAP API Performance
Get Started with the SOAP API
Work with SOAP Web Service API
Methods
Objects
Simple Development Scenarios
Supported Operations for Objects and Methods
Technical Articles
General
Administration
Asynchronous Processing
Automation Studio
Campaigns and Programs
Code Samples by Language
.NET Code Samples
Java Code Samples
PHP Code Samples
Data Extensions
Emails
Filters
Groups
Import Definition and Activity
Portfolio
Scheduled Messages
Send Definitions and Email Message Interactions
Subscriber Attributes
Subscriber Lists
Subscribers
Tracking
Triggered Sends
Marketing Cloud for Appexchange API Guide
API Best Practices and Use Cases
API Errors
SOAP Web Service API/Technical Articles/Code Samples by Language/PHP Code Samples

PHP Code Samples

This page contains code samples written to help PHP developers work with the Marketing Cloud SOAP API.

What Are PHP Code Samples

These code samples illustrate common actions a PHP developer might perform when working with the Marketing Cloud SOAP API.

Why Use PHP Code Samples

These code samples can help you understand how to perform certain actions in a PHP environment. These code samples can be modified or changed to match your needs.

Available PHP Code Samples

  • Add an Attribute
  • Connecting to the API using PHP
  • Perform a Data Extract with the SOAP API
  • Create a List
  • Create a Query Activity
  • Create a Subscriber
  • Create a Triggered Send Email Campaign Workflow
  • Create an Email
  • Create an Import Definition
  • Create, Retrieve, Update, and Delete Folders
  • Access Child Account Objects
  • Manage Data in Data Extensions
  • Manage Subscriber Status for One or All Lists
  • Manage Subscribers On Lists
  • Perform a Campaign
  • Refresh a Group
  • Retrieve Open Events Details
  • Retrieve Subscribers by Subscriber Key
  • Retrieve Subscribers Using ListID
  • Retrieve a List from an Account
  • Retrieve a Subscriber
  • Retrieve an Email
  • Retrieve an Item from Your Portfolio
  • Retrieve the SubscriberStatusEvent
  • Schedule an Email Send Definition
  • Send an Email Using a TriggeredSend Object
  • Start a Triggered Send Definition
  • Update Subscriber Attributes using the Update Method
  • Use Regular Expressions to Validate Email Addresses
  • Work with the SOAP API
Salesforce logo