Download the PHP package convertloop/convertloop-php without Composer
On this page you can find all versions of the php package convertloop/convertloop-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download convertloop/convertloop-php
More information about convertloop/convertloop-php
Files in convertloop/convertloop-php
Package convertloop-php
Short Description A PHP client of the ConvertLoop API
License MIT
Informations about the package convertloop-php
ConvertLoop PHP API Client
A PHP client of the ConvertLoop REST API. You can sign up for a ConvertLoop account at http://convertloop.co.
Installation
Requirements
PHP 5.3.3 and later.
Composer
To install this library using Composer run the following command:
To use it, use Composer's autoload:
Getting Started
First, you need to create an instance of ConvertLoop\ConvertLoop
class passing your app_id
and api_key
:
You are now ready to start calling the API methods:
Creating or updating a person
You need to pass at least one of the following: pid
, user_id
or email
to identify a user. Use pid
when you are updating a guest of your site (you can obtain this value from the cookie dp_pid
). Use user_id
to match the id
of the user in your application.
Any key different to pid
, user_id
, email
, first_seen_at
, last_seen_at
, add_to_segments
, and remove_from_segments
will be treated as a custom attribute of the person.
You can add or remove people from a segment ussing the add_to_segments
and remove_from_segments
keys:
Tracking an event
You can track an event for any person:
If you don't specify the ocurred_at
key, the current time will be used. You can use the person
key to add custom attributes to that person, or add or remove that person to/from segments.
All versions of convertloop-php with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *