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
#NOTE: Once the job is queued, it will get processed then complete
44
+
# We will send a response to the specified callback_url with the output photo download urls
45
+
```
46
+
21
47
## Usage
22
48
23
49
For all examples, assume:
@@ -148,26 +174,20 @@ api.list_photos()
148
174
api.get_photo(photo_id)
149
175
```
150
176
151
-
#### Upload photo
177
+
#### Upload job photo
152
178
153
179
This function handles validating a photo, creating a photo object and uploading it to your job/profile's s3 bucket. If the bucket upload process fails, it retries 3 times and if failures persist, the photo object is deleted.
154
180
155
181
```python
156
-
upload_photo(photo_path, model, model_id)
182
+
api.upload_job_photo(photo_path, job_id)
157
183
```
158
184
159
-
model can either be 'job' or 'profile'
160
-
161
-
model_id is the jobs/profiles respective id
162
-
163
-
```python
164
-
api.upload_photo('/path/to/photo', 'job', job_id)
165
-
```
185
+
#### Upload profile photo
166
186
167
-
OR
187
+
This function handles validating a background photo for a profile. Note: enable_extract and replace_background (profile attributes) MUST be true in order to create background photos. Follows the same upload process as upload_job_photo.
0 commit comments