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 — crossengage-python-client/README.md at master · hellofresh/crossengage-python-client

This repository was archived by the owner on Sep 6, 2025. It is now read-only.

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
86 lines (64 loc) · 2.61 KB
/

README.md

Copy path

File metadata and controls

86 lines (64 loc) · 2.61 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

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

You are visitor 01402792 — 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.