GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hellofresh/crossengage-python-client: Python client for Crossengage's API

This repository was archived by the owner on Sep 6, 2025. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

117 Commits
117 Commits

Folders and files

NameName
Last commit message
Last commit date
crossengage
crossengage
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
.whitesource
.whitesource
 
 
LICENSE.md
LICENSE.md
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
examples.py
examples.py
 
 
setup.py
setup.py
 
 
tox.ini
tox.ini
 
 

Repository files navigation

crossengage-python-client

Build Status

🚨Info 🚨: Project is deprecated and archived. Please fork archived repository to continue development on your own.

Python client for Crossengage's API

Library supports next methods:

User profile management

  • get_user(self, user) | v2
  • update_user(self, user) | v1
  • update_user_async(self, user) | v2
  • delete_user(self, user) | v1
  • delete_user_async(self, user) | v2
  • delete_user_by_xng_id(self, user) | v1
  • track_user_task(self, tracking_id) | v2

User attributes management

  • add_user_attribute(self, attribute_name, attribute_type, nested_type) | v1
  • add_nested_user_attribute(self, parent_name, attribute_name, attribute_type) | v1
  • list_user_attributes(self, offset, limit) | v1
  • delete_user_attribute(self, attribute_id) | v1

Bulk user management

  • batch_process(self, delete_list=[], update_list=[]) | v1
  • batch_process_async(self, delete_list=[], update_list=[]) | v2

Events management

  • send_events(self, events, email=None, user_id=None, business_unit=None) | v1

Opt-Out Management

  • get_user_opt_out_status(self, user_id) | v1
  • update_user_opt_out_status(self, user_id, channel_name) | v1
  • update_user_opt_in_status(self, user_id, channel_name) | v1

Owner

Alexander Zhilyaev

How to install

Make sure you have Python 2.7.11+ or Python 3.4+ installed and run:

$ git clone [email protected]:hellofresh/crossengage-python-client.git
$ cd crossengage-python-client
$ python setup.py install

How to use

from crossengage.client import CrossengageClient

client = CrossengageClient(client_token='YOUR_TOKEN')

# 1. Create / update new user and send
response = client.update_user(user={
    'id': '2',
    'email': '[email protected]',
    'firstName': 'First name',
    'lastName': 'Last name',
    'birthday': '1982-08-30',
    'createdAt': '2015-10-02T08:23:53Z',
    'gender': 'male',
})

if response['success']:
    print('Create / Update Successful!')
else:
    print(response['errors'])

For more examples, check examples.py.

How to test

To run the unit tests, make sure you have the nose module instaled and run the following from the repository root directory:

$ make setup && make test

About

Python client for Crossengage's API

Topics

crm-dataopen-sourcewiz-communications-crm-engine

Resources

Readme
MIT license
Activity
Custom properties

Stars

7 stars

Watchers

60 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.