--
You received this message because you are subscribed to the Google Groups "drchrono Medical Healthcare API SDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drchrono-api...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
TypeError: Object of type 'bytes' is not JSON serializable See our tutorial: https://app.drchrono.com/api-docs/v2016_06/tutorial#uploading-documents
On Tue, Mar 13, 2018 at 9:51 PM <brama...@gmail.com> wrote:
@app.route('/files', methods=['POST', 'GET']) def upload_file(): # headers = {'Authorization': 'Bearer %s' %session['access_token']} headers = {'Authorization': 'Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'Content-Type':'application/json'} file = request.files['file'] filename = file.filename filepath = os.path.join(app.config['UPLOAD_FOLDER'], filename) with open(filepath, 'rb') as image_file: f = image_file.read() b = bytearray(f) photo = base64.b64encode(f) data = {'primary_insurance': {}} data['primary_insurance']['photo_front'] = photo api_url = "https://drchrono.com/api/patients/123456" chrono_response = requests.patch(url=api_url, json=data, headers=headers)TypeError: Object of type 'bytes' is not JSON serializableHow to upload the images here ? getting 400 error ?On Tuesday, March 13, 2018 at 4:26:19 PM UTC-7, Denis Malinovskiy wrote:Thanks for letting us know about this issue, I pushed a hotfix for the documentation popups, it'll be live in an hour.Then we'll be able to see what field should be used to upload the image.On Tue, Mar 13, 2018 at 12:20 AM <bramar...@gmail.com> wrote:Hi,--I'm trying to POST the insurance card image into the drchrono using /api/insurances but can't see the related field to upload the image in the documentation. Also I'm trying to visitbut giving error as shown below. Does the API support the image upload. AS we have the mechanism to scan the insurance card and get the details from the scanned image. Thank you
You received this message because you are subscribed to the Google Groups "drchrono Medical Healthcare API SDK" group.To unsubscribe from this group and stop receiving emails from it, send an email to drchrono-api...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
----Denis MalinovskiySoftware Engineer, drchrono
You received this message because you are subscribed to the Google Groups "drchrono Medical Healthcare API SDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drchro...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.