-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig-sample.yml
63 lines (45 loc) · 1.58 KB
/
config-sample.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# filename for csv file
csv: sample.csv
# Your OSDI API Token
osdi_api_token: <%= ENV['OSDI_API_TOKEN'] %>
# Your OSDI system's AEP URL
osdi_aep_url: https://actionnetwork.org/api/v2/
# Content Type for OSDI requests.
request_content_type: application/json #(default: application/json)
# Start at the following row
# offset: 2 # default 0
# Limit number of rows, good for testing. Additive to offset
#row_limit: 4 # default none
# Before doing upload, make sure the remote system has the needed tags created already and it not, abort.
verify_tags_first: true
# number of times to retry a given row. Useful for timeouts
max_retries: 5
# Log file
#log_file: output.log
# show detailed HTTP logs of requests
http_log: false
# just log OSDI signup helper objects
osdi_log: false
# the schema representing your CSV file structure
# For each field, set the column number with a zero based integer.
# Eg, the first column is column 0
schema:
email_address: 11
given_name: 2 #first name
family_name: 1 # last name
#mobile_phone: 3,
locality: 8 # city
region: 9 # state
postal_code: 10 # zip code
# set any column to be the specified custom field on the remote system
custom_fields:
favorite_color: 13
# the presence of any value in the specified column means that this row should be tagged with the specified tag name
tags:
volunteer: 12
#foobar: 13,
#volunteer_master: 14
# if your system does not natively support phone numbers, they can be inserted into custom fields named below
phone_custom_fields:
mobile_phone: mobile_phone
home_phone: home_phone