You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This endpoint allows you to parse a resume and make a profile object from it.
96
96
> 📘 **Real-time parsing**: To use the real-time parsing feature, you must have it enabled for the correponding source. In which case you just need to set`sync_parsing` to `1`.
97
-
- Open the file in`binary mode`
97
+
- Open the file in`binary mode` and parse it using this method without reference
98
98
```python
99
-
>>> with open("path/2/file", "rb") as f:
100
-
profile_file = f.read()
101
-
102
-
```
103
-
- Parse it using this method without reference:
104
-
```python
105
-
>>> response = client.profile.parsing.add_file(
106
-
source_key="source_key",
107
-
profile_file=profile_file,
108
-
sync_parsing=1,
109
-
sync_parsing_indexing=1,
110
-
webhook_parsing_sending=0,
111
-
tags=[{"name": "archive", "value": True}],
112
-
)
99
+
>>> with open("path/2/file", "rb") as profile_file:
100
+
... response = client.profile.parsing.add_file(
101
+
source_key="source_key",
102
+
profile_file=profile_file,
103
+
sync_parsing=1,
104
+
sync_parsing_indexing=1,
105
+
webhook_parsing_sending=0,
106
+
tags=[{"name": "archive", "value": True}],
107
+
)
113
108
```
114
109
115
110
- Or using a reference like this:
116
111
```python
117
-
>>> response = client.profile.parsing.add_file(
118
-
source_key="source_key",
119
-
reference="my_resume",
120
-
profile_file=profile_file,
121
-
sync_parsing=1,
122
-
sync_parsing_indexing=1,
123
-
webhook_parsing_sending=0,
124
-
tags=[{"name": "archive", "value": True}],
125
-
)
112
+
>>> with open("path/2/file", "rb") as profile_file:
0 commit comments