2
2
3
3
## Address Api
4
4
5
- ### Retrieve
6
- ``` bash
7
- curl https://api.lob.com/v1/addresses/adr_fa85158b26c3eb7c \
8
- -u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc:
9
- ```
10
-
11
- ``` python
12
- with ApiClient(configuration) as api_client:
13
- api = AddressesApi(api_client)
14
-
15
- try :
16
- address = api.get(" adr_fa85158b26c3eb7c" )
17
- except ApiException as e:
18
- print (e)
19
- ```
20
-
21
-
22
-
23
-
24
5
25
6
26
7
@@ -56,7 +37,7 @@ address_editable = AddressEditable(
56
37
57
38
phone = " 5555555555" ,
58
39
address_line1 = " 2261 Market Street" ,
59
- address_line2 = " Ste 5668" ,
40
+ address_line2 = " STE 5668" ,
60
41
address_city = " San Francisco" ,
61
42
address_state = " CA" ,
62
43
address_zip = " 94114" ,
@@ -93,6 +74,24 @@ except ApiException as e:
93
74
```
94
75
95
76
77
+ ### Retrieve
78
+ ``` bash
79
+ curl https://api.lob.com/v1/addresses/adr_fa85158b26c3eb7c \
80
+ -u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc:
81
+ ```
82
+
83
+ ``` python
84
+ with ApiClient(configuration) as api_client:
85
+ api = AddressesApi(api_client)
86
+
87
+ try :
88
+ address = api.get(" adr_fa85158b26c3eb7c" )
89
+ except ApiException as e:
90
+ print (e)
91
+ ```
92
+
93
+
94
+
96
95
97
96
98
97
@@ -119,6 +118,26 @@ except ApiException as e:
119
118
120
119
121
120
121
+
122
+
123
+
124
+
125
+
126
+ ### Retrieve
127
+ ``` bash
128
+ curl https://api.lob.com/v1/addresses/adr_fa85158b26c3eb7c \
129
+ -u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc:
130
+ ```
131
+
132
+ ``` python
133
+ with ApiClient(configuration) as api_client:
134
+ api = AddressesApi(api_client)
135
+
136
+ try :
137
+ address = api.get(" adr_fa85158b26c3eb7c" )
138
+ except ApiException as e:
139
+ print (e)
140
+ ```
122
141
123
142
124
143
@@ -190,7 +209,7 @@ postcard_editable = PostcardEditable(
190
209
to = AddressEditable(
191
210
name = " Harry Zhang" ,
192
211
address_line1 = " 2261 Market Street" ,
193
- address_line2 = " Ste 5668" ,
212
+ address_line2 = " STE 5668" ,
194
213
address_city = " San Francisco" ,
195
214
address_state = " CA" ,
196
215
address_zip = " 94114" ,
@@ -287,7 +306,7 @@ self_mailer_editable = SelfMailerEditable(
287
306
to = AddressEditable(
288
307
name = " Harry Zhang" ,
289
308
address_line1 = " 2261 Market Street" ,
290
- address_line2 = " Ste 5668" ,
309
+ address_line2 = " STE 5668" ,
291
310
address_city = " San Francisco" ,
292
311
address_state = " CA" ,
293
312
address_zip = " 94114" ,
@@ -384,7 +403,7 @@ letter_editable = LetterEditable(
384
403
to = AddressEditable(
385
404
name = " Harry Zhang" ,
386
405
address_line1 = " 2261 Market Street" ,
387
- address_line2 = " Ste 5668" ,
406
+ address_line2 = " STE 5668" ,
388
407
address_city = " San Francisco" ,
389
408
address_state = " CA" ,
390
409
address_zip = " 94114" ,
@@ -487,7 +506,7 @@ check_editable = CheckEditable(
487
506
to = AddressDomestic(
488
507
name = " Harry Zhang" ,
489
508
address_line1 = " 2261 Market Street" ,
490
- address_line2 = " Ste 5668" ,
509
+ address_line2 = " STE 5668" ,
491
510
address_city = " San Francisco" ,
492
511
address_state = " CA" ,
493
512
address_zip = " 94114" ,
@@ -1134,6 +1153,26 @@ except ApiException as e:
1134
1153
1135
1154
1136
1155
1156
+ ### Delete
1157
+ ``` bash
1158
+ curl -X DELETE " https://api.lob.com/v1/campaigns/cmp_e05ee61ff80764b" \
1159
+ -u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc:
1160
+ ```
1161
+
1162
+ ``` python
1163
+ with ApiClient(configuration) as api_client:
1164
+ api = CampaignsApi(api_client)
1165
+
1166
+ try :
1167
+ deleted_resource = api.delete(" cmp_e05ee61ff80764b" )
1168
+ except ApiException as e:
1169
+ print (e)
1170
+ ```
1171
+
1172
+
1173
+
1174
+
1175
+
1137
1176
1138
1177
### Update
1139
1178
``` bash
@@ -1202,26 +1241,6 @@ except ApiException as e:
1202
1241
1203
1242
1204
1243
1205
-
1206
-
1207
-
1208
- ### Delete
1209
- ``` bash
1210
- curl -X DELETE " https://api.lob.com/v1/campaigns/cmp_e05ee61ff80764b" \
1211
- -u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc:
1212
- ```
1213
-
1214
- ``` python
1215
- with ApiClient(configuration) as api_client:
1216
- api = CampaignsApi(api_client)
1217
-
1218
- try :
1219
- deleted_resource = api.delete(" cmp_e05ee61ff80764b" )
1220
- except ApiException as e:
1221
- print (e)
1222
- ```
1223
-
1224
-
1225
1244
## Creatives Api
1226
1245
1227
1246
@@ -1411,12 +1430,17 @@ except ApiException as e:
1411
1430
``` bash
1412
1431
curl -X PATCH https://api.lob.com/v1/upl_71be866e430b11e9 \
1413
1432
-u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc: \
1414
- -d " state=Ready for Validation" \
1415
1433
```
1416
1434
1417
1435
``` python
1418
1436
upload_updatable = UploadUpdatable(
1419
- state = UploadState(" Ready for Validation" ),
1437
+ required_address_column_mapping = RequiredAddressColumnMapping(
1438
+ name = " recipient" ,
1439
+ address_line1 = " primary line" ,
1440
+ address_city = " city" ,
1441
+ address_state = " state" ,
1442
+ address_zip = " zip_code" ,
1443
+ ),
1420
1444
)
1421
1445
1422
1446
with ApiClient(configuration) as api_client:
@@ -1439,7 +1463,6 @@ curl --location --request POST https://api.lob.com/v1/uploads \
1439
1463
``` python
1440
1464
upload_writable = UploadWritable(
1441
1465
campaign_id = " cmp_e05ee61ff80764b" ,
1442
- column_mapping = { " firstName" : " first name" },
1443
1466
)
1444
1467
1445
1468
with ApiClient(configuration) as api_client:
0 commit comments