Skip to content

Latest commit

 

History

History
63 lines (45 loc) · 988 Bytes

README.md

File metadata and controls

63 lines (45 loc) · 988 Bytes

HubSpot-python CRM-imports sample app

Requirements

  1. Make sure you have Python 3.8+ installed.
  2. Configured .env file

Running

  1. Install dependencies
pip3 install -r requirements.txt
  1. Commands

Show all commands (get help)

python cli.py -h

Get imports

python cli.py -m get_page

Get an import by id

python cli.py  -m get_by_id -i [import_id]

Create an import

python cli.py -m create -f [filename] -c [columns_config]

Example:

python cli.py -m create -f import_emails.csv -c '[
    {
      "columnName": "First Name",
      "propertyName": "firstname",
      "columnObjectType": "CONTACT"
     },
    {
      "columnName": "Email",
      "propertyName": "email",
      "columnObjectType": "CONTACT" 
     }
     ]'

Cancel an import

python cli.py -m cancel -i [import_id]